1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/ctdb/tests/eventscripts/stubs
Martin Schwenke af93ae1a54 ctdb-tests: New function ctdb_set_pnn() to change PNN
ctdb_get_pnn() incorrectly caches to the same file regardless of what
node is selected via FAKE_CTDB_PNN.

Instead, set the PNN using new function ctdb_get_pnn(), which also
makes CTDB_VARDIR point to a node-specific subdirectory.  This means
that ctdb_get_pnn() will correctly cache to the node-specific
directory.

Fake tickle and TDB files/directories used by the ctdb stub need to be
the same across all PNNs, so change these to use
$EVENTSCRIPTS_TESTS_VAR_DIR instead of node-specific $CTDB_VARDIR.

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
2015-04-27 03:32:10 +02:00
..
ctdb ctdb-tests: New function ctdb_set_pnn() to change PNN 2015-04-27 03:32:10 +02:00
date tests/eventscripts: New tests for 00.ctdb "init" event 2013-06-20 13:01:10 +10:00
ethtool Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
exportfs Tests - eventscripts exportfs stub should splits lines 2011-08-30 16:51:55 +10:00
free tests/eventscripts: Tests for memory checking in 00.ctdb 2013-09-11 15:34:42 +10:00
id ctdb-tests: Unit tests for statd-callout 2015-03-04 10:42:27 +01:00
ip ctdb-eventscripts: Make 11.natgw stateful 2015-03-16 06:41:06 +01:00
iptables Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
kill Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
killall Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
multipath tests/eventscripts: New tests for 20.multipathd 2013-10-22 14:34:04 +11:00
net Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
netstat eventscripts: kill_tcp_connections() should send connections to stdin 2013-07-29 15:53:06 +10:00
nmap Tests - eventscripts - nmap and netstat stubs can pretend they weren't found 2011-08-30 16:51:55 +10:00
pidof ctdb-scripts: Dump stack traces for hung mountd, rquotad, statd processes 2014-11-18 04:17:10 +01:00
pkill Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
ps tests/eventscripts: Tests for memory checking in 00.ctdb 2013-09-11 15:34:42 +10:00
rm ctdb-scripts: Add a 'rm' stub so statd-callout tests work correctly 2015-03-05 04:46:06 +01:00
rpc.lockd Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
rpc.mountd Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
rpc.rquotad Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
rpc.statd Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
rpcinfo ctdb-tests: Switch to tcp check in rpcinfo stub 2015-03-27 09:16:50 +01:00
service Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00
sleep Tests - eventscripts - stop timeouts waiting for backgrounded testparm 2011-08-30 16:51:55 +10:00
smnotify ctdb-tests: Unit tests for statd-callout 2015-03-04 10:42:27 +01:00
tdbdump tests/eventscripts: New tests for 00.ctdb "init" event 2013-06-20 13:01:10 +10:00
tdbtool ctdb-tests: Avoid early exits in scripts that appear on tail of a pipe 2015-03-20 16:26:36 +01:00
testparm eventscripts: Rewrite the smb.conf cache file handling 2013-10-29 17:14:55 +11:00
wbinfo Tests: eventscripts and onnode tests use stubs/ subdirectory instead of bin/. 2011-08-08 13:38:07 +10:00