summaryrefslogtreecommitdiffstats
path: root/ctdb/tests/onnode
Commit message (Collapse)AuthorAgeFilesLines
* tools/onnode: Fix healthy/ok node handlingMartin Schwenke2013-10-293-17/+16
| | | | | | | | | | | | | | | | | | | | | | | This bit-rotted a long time ago when the "ThisNode" column was added to "ctdb -Y status" output. The fake "ctdb -Y status" output in the test was never updated to reflect this change. Instead of making sure that all columns are "0", just check that they're not "1". This implicitly ignores "Y" and "N" in this "ThisNode" column without having to do anything else clever. Also update associated tests. The main "ctdb ok" test had a duplicate opening line for a here document, which was tickled by this change. This fixes samba bz#8122. Signed-off-by: Martin Schwenke <martin@meltin.net> onnode test fixup Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 01a46205c3a3d6609dc0b0324319b89667dffa32)
* tests: Unit tests should use $TEST_VAR_DIRMartin Schwenke2012-04-271-1/+1
| | | | | | | | | This directory is already guaranteed to be absolute, so no check is needed. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 78f6f209eb15102f4e8baa9106583df0ef4bb693)
* tests: Make run_tests -X more flexible - it now works with onnodeMartin Schwenke2012-04-272-9/+12
| | | | | | | | | Hardcoding "sh -x" is suboptimal because some scripts, like onnode, require bash. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 246809af64c03d26288abff5907ed46614e72b15)
* tests: Update README files and add new README files where missingMartin Schwenke2012-04-271-7/+7
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit bef03b32f8ec114a64c55b25951aeeb939d87b33)
* tests: More unit test factoring/rationalisation and bug fixesMartin Schwenke2012-04-181-21/+14
| | | | | | | | | | | | | | | | | Move some options from eventscripts/run_tests.sh to scripts/run_tests. Remove the former. Move some functions from eventscripts/scripts/local.sh to scripts/unit.sh. Both of these are modified during move so they are no longer eventscript-specific. Tweak */local.sh so that the new functions in unit.sh are used. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 7ff485687891732074c9fc9998502ca197663d02)
* tests/onnode - Restructure according to new conventionMartin Schwenke2012-04-1616-66/+20
| | | | | | Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 4c87888b2a559c0d1f285919a42de450a537a02f)
* Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/.Martin Schwenke2011-08-035-7/+7
| | | | | | | | | | | | | | This sets up a more useful convention and avoids future .gitignore problems. Resolved conflict while cherry-picking this: Don't take the eventscripts files for this branch. We'll put them elsewhere. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit a9879e37d4e3bb714ef6c0c4144c6949daec0b53)
* Tests: onnode tests changed to use a simple define_test() function.Martin Schwenke2011-08-0315-14/+24
| | | | | | | | This makes global changes easier. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit 3af086398fecb5f7c501190f9620b9c7b201f0ca)
* Tests: add initial onnode testsMartin Schwenke2011-08-0321-0/+873
Add some simple tests for the onnode command. These use fake ssh and ctdb commands that are added to $PATH. The infrastructure used is quite flexible and would allow more complex tests to be written. As-is, these tests expose some bugs in the an older version of onnode that is included so it can be used to validate some of the tests. Signed-off-by: Martin Schwenke <martin@meltin.net> (This used to be ctdb commit f7f9d0943474cb2de7832d7ca95210ea9e9c772b)