testprogs: 'net ads keytab create' expected failures should now pass
authorNoel Power <noel.power@suse.com>
Fri, 16 Feb 2018 15:53:16 +0000 (15:53 +0000)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 2 Mar 2018 13:07:15 +0000 (14:07 +0100)
Following the commit to change the behaviour of 'net ads keytab create'
some tests previously failing should now pass.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
testprogs/blackbox/test_net_ads.sh

index 378b5a3..f83ce01 100755 (executable)
@@ -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