diff options
Diffstat (limited to 'ctdb/tests/UNIT/eventscripts/scripts/49.winbind.sh')
-rw-r--r-- | ctdb/tests/UNIT/eventscripts/scripts/49.winbind.sh | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/ctdb/tests/UNIT/eventscripts/scripts/49.winbind.sh b/ctdb/tests/UNIT/eventscripts/scripts/49.winbind.sh new file mode 100644 index 0000000..bbe1de2 --- /dev/null +++ b/ctdb/tests/UNIT/eventscripts/scripts/49.winbind.sh @@ -0,0 +1,28 @@ +setup() +{ + # shellcheck disable=SC2034 + # Used in expected output + service_name="winbind" + + if [ "$1" != "down" ]; then + + debug "Marking Winbind service as up and managed by CTDB" + + service "winbind" force-started + + export FAKE_WBINFO_FAIL="no" + + else + debug "Marking Winbind service as down and not managed by CTDB" + + service "winbind" force-stopped + + export FAKE_WBINFO_FAIL="yes" + fi +} + +wbinfo_down() +{ + debug "Making wbinfo commands fail" + FAKE_WBINFO_FAIL="yes" +} |