mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
ctdb-tests: Create 49.winbind.sh
Contains testing support used only by tests for 49.winbind event script. Signed-off-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
parent
f33f4b3a23
commit
a51e4ea042
32
ctdb/tests/eventscripts/scripts/49.winbind.sh
Normal file
32
ctdb/tests/eventscripts/scripts/49.winbind.sh
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
setup_winbind ()
|
||||||
|
{
|
||||||
|
setup_ctdb
|
||||||
|
|
||||||
|
service_name="winbind"
|
||||||
|
|
||||||
|
if [ "$1" != "down" ] ; then
|
||||||
|
|
||||||
|
debug "Marking Winbind service as up and managed by CTDB"
|
||||||
|
|
||||||
|
service "winbind" force-started
|
||||||
|
|
||||||
|
export CTDB_MANAGES_WINBIND="yes"
|
||||||
|
|
||||||
|
export FAKE_WBINFO_FAIL="no"
|
||||||
|
|
||||||
|
else
|
||||||
|
debug "Marking Winbind service as down and not managed by CTDB"
|
||||||
|
|
||||||
|
service "winbind" force-stopped
|
||||||
|
|
||||||
|
export CTDB_MANAGES_WINBIND=""
|
||||||
|
|
||||||
|
export FAKE_WBINFO_FAIL="yes"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
wbinfo_down ()
|
||||||
|
{
|
||||||
|
debug "Making wbinfo commands fail"
|
||||||
|
FAKE_WBINFO_FAIL="yes"
|
||||||
|
}
|
@ -605,39 +605,6 @@ samba_setup_fake_threads ()
|
|||||||
SAMBA_STACK_TRACES="$_out"
|
SAMBA_STACK_TRACES="$_out"
|
||||||
}
|
}
|
||||||
|
|
||||||
setup_winbind ()
|
|
||||||
{
|
|
||||||
setup_ctdb
|
|
||||||
|
|
||||||
service_name="winbind"
|
|
||||||
|
|
||||||
if [ "$1" != "down" ] ; then
|
|
||||||
|
|
||||||
debug "Marking Winbind service as up and managed by CTDB"
|
|
||||||
|
|
||||||
service "winbind" force-started
|
|
||||||
|
|
||||||
export CTDB_MANAGES_WINBIND="yes"
|
|
||||||
|
|
||||||
export FAKE_WBINFO_FAIL="no"
|
|
||||||
|
|
||||||
else
|
|
||||||
debug "Marking Winbind service as down and not managed by CTDB"
|
|
||||||
|
|
||||||
service "winbind" force-stopped
|
|
||||||
|
|
||||||
export CTDB_MANAGES_WINBIND=""
|
|
||||||
|
|
||||||
export FAKE_WBINFO_FAIL="yes"
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
wbinfo_down ()
|
|
||||||
{
|
|
||||||
debug "Making wbinfo commands fail"
|
|
||||||
FAKE_WBINFO_FAIL="yes"
|
|
||||||
}
|
|
||||||
|
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
# NFS fakery
|
# NFS fakery
|
||||||
|
Loading…
Reference in New Issue
Block a user