5 Usage: blackbox_group.sh PREFIX
13 .
`dirname $0`/..
/..
/..
/testprogs
/blackbox
/subunit.sh
18 CONFIG
="--configfile=$PREFIX/etc/smb.conf"
20 #creation of two test subjects
21 testit
"addspn" $net spn add FOO
/bar Administrator
$CONFIG
22 testit
"delspn" $net spn delete FOO
/bar
$CONFIG
23 testit
"readdspn" $net spn add FOO
/bar Administrator
$CONFIG
24 testit_expect_failure
"failexistingspn" $net spn add FOO
/bar Guest
$CONFIG
25 testit
"existingspnforce" $net spn add
--force FOO
/bar Guest
$CONFIG
26 testit_expect_failure
"faildelspnnotgooduser" $net spn delete FOO
/bar krbtgt
$CONFIG
27 testit_expect_failure
"faildelspnmoreoneuser" $net spn delete FOO
/bar
$CONFIG
28 testit
"deluserspn" $net spn delete FOO
/bar Guest
$CONFIG
29 testit
"dellastuserspn" $net spn delete FOO
/bar
$CONFIG
30 testit_expect_failure
"faildelspn" $net spn delete FOO
/bar
$CONFIG
31 testit_expect_failure
"failaddspn" $net spn add FOO
/bar nonexistinguser
$CONFIG