1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
samba-mirror/ctdb/tests/tool
Martin Schwenke e3a7178511 ctdb-tools: Change ctdb CLI to have a single "lvs" command
This simply calls out to the wrapper, so that commands are changed as
follows:

  ctdb lvsmaster -> ctdb lvs master
  ctdb lvs       -> ctdb lvs list

This provides a simple, extensible interface and means that "ctdb lvs
status" is also available.

Unit tests are streamlined so that there is a single test for each
CTDB state.  Each test does "master", "list" and "status" sub-tests.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2016-04-15 05:57:18 +02:00
..
scripts ctdb-tool: Change ctdb lvs/lvsmaster CLI commands to use ctdb_lvs helper 2016-04-15 05:57:18 +02:00
stubs ctdb-tests: Test ctdb CLI tool via a stub 2016-01-25 07:18:25 +01:00
func.parse_nodestring.001.sh tests/tool - Restructure according to new convention 2012-04-16 15:06:48 +10:00
func.parse_nodestring.002.sh tests/tool - Restructure according to new convention 2012-04-16 15:06:48 +10:00
func.parse_nodestring.003.sh ctdb-tests: Make the fake log timestamp string easy to modify 2014-10-06 12:34:32 +02:00
README tests/tool: Remove references in libctdb in file and function names 2013-10-04 15:15:35 +10:00
stubby.getcapabilities.001.sh ctdb-tools: Drop support for setting and viewing NAT gateway capability 2016-01-25 07:18:25 +01:00
stubby.getcapabilities.002.sh ctdb-tools: Drop support for setting and viewing NAT gateway capability 2016-01-25 07:18:25 +01:00
stubby.getcapabilities.003.sh ctdb-tests: Make the fake log timestamp string easy to modify 2014-10-06 12:34:32 +02:00
stubby.getcapabilities.004.sh ctdb-tools: Drop support for setting and viewing NAT gateway capability 2016-01-25 07:18:25 +01:00
stubby.listnodes.001.sh ctdb-tools: Reimplement read_nodes_file() using ctdb_get_nodes_file() 2015-03-23 12:23:12 +01:00
stubby.listnodes.002.sh ctdb-tests: Add "ctdb listnodes" and "ctdb xpnn" stub tests 2014-03-23 04:20:14 +01:00
stubby.lvs.001.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.002.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.003.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.004.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.005.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.006.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.007.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.lvs.008.sh ctdb-tools: Change ctdb CLI to have a single "lvs" command 2016-04-15 05:57:18 +02:00
stubby.natgwlist.001.sh tests/tool: New tests for natgwlist, getcapabilities, lvs, lvsmaster 2012-09-28 17:05:34 +10:00
stubby.natgwlist.002.sh tests/tool: New tests for natgwlist, getcapabilities, lvs, lvsmaster 2012-09-28 17:05:34 +10:00
stubby.natgwlist.003.sh tests/tool: New tests for natgwlist, getcapabilities, lvs, lvsmaster 2012-09-28 17:05:34 +10:00
stubby.natgwlist.004.sh tests/tool: New tests for natgwlist, getcapabilities, lvs, lvsmaster 2012-09-28 17:05:34 +10:00
stubby.natgwlist.005.sh tests/tool: New tests for natgwlist, getcapabilities, lvs, lvsmaster 2012-09-28 17:05:34 +10:00
stubby.natgwlist.006.sh ctdb/tools: Update ctdb CLI tool to call ctdb_natgw 2016-01-25 07:18:25 +01:00
stubby.natgwlist.007.sh ctdb/tools: Update ctdb CLI tool to call ctdb_natgw 2016-01-25 07:18:25 +01:00
stubby.natgwlist.008.sh ctdb-tools-ctdb: Drop disconnected nodes when filtering by capability 2014-04-14 03:52:40 +02:00
stubby.nodestatus.001.sh tests/tool - Restructure according to new convention 2012-04-16 15:06:48 +10:00
stubby.nodestatus.002.sh ctdb-tests: Do not test "ctdb nodestatus -n all" 2015-10-23 03:43:26 +02:00
stubby.recover.001.sh ctdb-tests: Add tests for "ctdb reloadips" and "ctdb recover" 2015-03-16 09:18:55 +01:00
stubby.reloadips.001.sh ctdb-tests: Add tests for "ctdb reloadips" and "ctdb recover" 2015-03-16 09:18:55 +01:00
stubby.reloadips.002.sh ctdb-tests: Add tests for "ctdb reloadips" and "ctdb recover" 2015-03-16 09:18:55 +01:00
stubby.reloadips.003.sh ctdb-tests: Add tests for "ctdb reloadips" and "ctdb recover" 2015-03-16 09:18:55 +01:00
stubby.reloadnodes.001.sh ctdb-tools: Sanity check changes before processing "reloadnodes" 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.002.sh ctdb-tests: Add "ctdb reloadnodes" unit tests 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.003.sh ctdb-tests: Add "ctdb reloadnodes" unit tests 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.011.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.012.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.013.sh ctdb-tests: Add unit tests for "reloadnodes" sanity checking 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.014.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.015.sh ctdb-tests: Add unit tests for "reloadnodes" sanity checking 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.016.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.017.sh ctdb-tests: Add unit tests for "reloadnodes" sanity checking 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.018.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.019.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.020.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.021.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.022.sh ctdb-tests: Add unit tests for "reloadnodes" sanity checking 2015-03-23 12:23:12 +01:00
stubby.reloadnodes.023.sh ctdb-tools: Use a broadcast to connected nodes for "reloadnodes" 2015-03-23 15:04:00 +01:00
stubby.reloadnodes.024.sh ctdb-tests: Add "ctdb reloadnodes" test for "node remains deleted" 2015-04-07 07:43:12 +02:00
stubby.status.001.sh tests/tool - Restructure according to new convention 2012-04-16 15:06:48 +10:00
stubby.status.002.sh tests/tool - Restructure according to new convention 2012-04-16 15:06:48 +10:00
stubby.xpnn.001.sh ctdb-tests: Add "ctdb listnodes" and "ctdb xpnn" stub tests 2014-03-23 04:20:14 +01:00
stubby.xpnn.002.sh ctdb-tests: Add "ctdb listnodes" and "ctdb xpnn" stub tests 2014-03-23 04:20:14 +01:00
stubby.xpnn.003.sh ctdb-tools: Reimplement read_nodes_file() using ctdb_get_nodes_file() 2015-03-23 12:23:12 +01:00

Unit tests for the ctdb tool (i.e. tools/ctdb).

Test case filenames can take 2 forms:

* func.<some_function>.NNN.sh

  Run <some_function> in the ctdb tool code using the
  ctdb_tool_functest test program.  This test program uses test stubs
  for CTDB client functions.

* stubby.<command>.NNN.sh

  Run the ctdb_tool_stubby test program with <command> as the 1st
  argument - subsequent are passed to simple_test().  ctdb_tool_stubby
  is linked against the test stubs for CTDB client functions.

To add tests here you may need to add appropriate test stubs.