mirror of
https://github.com/samba-team/samba.git
synced 2024-12-22 13:34:15 +03:00
test samba-tool group listmembers: test listing contacts as group members
Make sure that contacts are listed as group members, even if the --hide-expired option is used. Expect failure. Fix follows up. BUG: https://bugzilla.samba.org/show_bug.cgi?id=14692 Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Rowland penny <rpenny@samba.org>
This commit is contained in:
parent
6fcde09f09
commit
86f2b8dab1
1
selftest/knownfail.d/samba4.blackbox.group
Normal file
1
selftest/knownfail.d/samba4.blackbox.group
Normal file
@ -0,0 +1 @@
|
||||
^samba4.blackbox.group.py
|
@ -132,6 +132,15 @@ testit_expect_failure "group addmembers contact failure" $PYTHON $samba_tool gro
|
||||
# test add contact with --object-types=all
|
||||
testit "group addmembers contact object-type all" $PYTHON $samba_tool group addmembers $CONFIG dsg testcontact --object-types=all
|
||||
|
||||
# test listing contacts as group members
|
||||
testit_grep "group listmembers contact" "^testcontact" $PYTHON $samba_tool group listmembers $CONFIG dsg
|
||||
|
||||
# test listing contacts as group members
|
||||
# Make sure that the test contact is listed, because it does not have the
|
||||
# accountExpires attribute and can not expire.
|
||||
testit_grep "group listmembers contact hide-expired" "^testcontact" $PYTHON $samba_tool group listmembers $CONFIG dsg --hide-expired
|
||||
testit_grep "group listmembers contact hide-disabled" "^testcontact" $PYTHON $samba_tool group listmembers $CONFIG dsg --hide-disabled
|
||||
|
||||
# test remove contact with --object-types=all
|
||||
testit "group removemembers contact object-type all" $PYTHON $samba_tool group removemembers $CONFIG dsg testcontact --object-types=all
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user