Skip to content

Commit

Permalink
Description: authconfig test fails as samba is not supported
Browse files Browse the repository at this point in the history
Fix: Excluded samba related tests in authconfig test script

signed-off by:spoorthy<[email protected]>
  • Loading branch information
spoorthy committed Apr 11, 2018
1 parent 3bf86ff commit 5e9bffa
Showing 1 changed file with 25 additions and 25 deletions.
50 changes: 25 additions & 25 deletions linux-tools/authconfig/authconfig-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -213,32 +213,32 @@ function test_winbind()
tc_pass_or_fail $? "test --disablewinbindauth failed"

#Test smbsecurity types
local smb_security_types="user server domain ads"
for types in $smb_security_types; do
tc_register "test --smbsecurity $types"
authconfig --smbsecurity=$types --update 1>$stdout 2>$stderr
authconfig --test 1>$stdout 2>$stderr
grep "SMB security" $stdout | grep -q "$types"
tc_pass_or_fail $? "test --smbsecurity $types failed"
done

tc_register "test --smbrealm"
authconfig --smbrealm="TEST.COM" --update 1>$stdout 2>$stderr
authconfig --test 1>$stdout 2>$stderr
grep "SMB realm" $stdout | grep -q "TEST.COM"
tc_pass_or_fail $? "test --smbrealm failed"

tc_register "test --smbserver"
authconfig --smbserver=localhost --update 1>$stdout 2>$stderr
authconfig --test 1>$stdout 2>$stderr
grep "SMB servers" $stdout | grep -q "localhost"
tc_pass_or_fail $? "test --smbserver failed"
#local smb_security_types="user server domain ads"
#for types in $smb_security_types; do
# tc_register "test --smbsecurity $types"
# authconfig --smbsecurity=$types --update 1>$stdout 2>$stderr
# authconfig --test 1>$stdout 2>$stderr
# grep "SMB security" $stdout | grep -q "$types"
# tc_pass_or_fail $? "test --smbsecurity $types failed"
#done

#tc_register "test --smbrealm"
#authconfig --smbrealm="TEST.COM" --update 1>$stdout 2>$stderr
#authconfig --test 1>$stdout 2>$stderr
#grep "SMB realm" $stdout | grep -q "TEST.COM"
#tc_pass_or_fail $? "test --smbrealm failed"

#tc_register "test --smbserver"
#authconfig --smbserver=localhost --update 1>$stdout 2>$stderr
#authconfig --test 1>$stdout 2>$stderr
#grep "SMB servers" $stdout | grep -q "localhost"
#tc_pass_or_fail $? "test --smbserver failed"

tc_register "test --smbworkgroup"
authconfig --smbworkgroup="TESTGROUP" --update 1>$stdout 2>$stderr
authconfig --test 1>$stdout 2>$stderr
grep "SMB workgroup" $stdout | grep -q "TESTGROUP"
tc_pass_or_fail $? "test --smbworkgroup failed"
#tc_register "test --smbworkgroup"
#authconfig --smbworkgroup="TESTGROUP" --update 1>$stdout 2>$stderr
#authconfig --test 1>$stdout 2>$stderr
#grep "SMB workgroup" $stdout | grep -q "TESTGROUP"
#tc_pass_or_fail $? "test --smbworkgroup failed"
}

function test_hesiod()
Expand Down

0 comments on commit 5e9bffa

Please sign in to comment.