From ebe9a86eadca37313dd85d9b317197bb7fa2b7e5 Mon Sep 17 00:00:00 2001 From: Noel Power Date: Fri, 16 Feb 2018 15:53:16 +0000 Subject: testprogs: 'net ads keytab create' expected failures should now pass Following the commit to change the behaviour of 'net ads keytab create' some tests previously failing should now pass. Signed-off-by: Noel Power Reviewed-by: Jeremy Allison Reviewed-by: Andreas Schneider --- testprogs/blackbox/test_net_ads.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testprogs') diff --git a/testprogs/blackbox/test_net_ads.sh b/testprogs/blackbox/test_net_ads.sh index 378b5a37075..f83ce01aae6 100755 --- a/testprogs/blackbox/test_net_ads.sh +++ b/testprogs/blackbox/test_net_ads.sh @@ -131,7 +131,7 @@ found_ad=$($net_tool ads setspn list -U$DC_USERNAME%$DC_PASSWORD | grep $service found_keytab=$($net_tool ads keytab list -U$DC_USERNAME%$DC_PASSWORD --option="kerberosmethod=dedicatedkeytab" --option="dedicatedkeytabfile=$dedicated_keytab_file" | grep $service | wc -l) # test after create that a spn that exists in the keytab but shouldn't # be written to the AD. -testit_expected_failure "test spn service doensn't exist in AD but is present in keytab file after keytab create" test $found_ad -eq 0 -a $found_keytab -gt 1 || failed=`expr $failed + 1` +testit "test spn service doensn't exist in AD but is present in keytab file after keytab create" test $found_ad -eq 0 -a $found_keytab -gt 1 || failed=`expr $failed + 1` # SPN parser is very basic but does detect some illegal combination -- cgit v1.2.1