Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 110b644

Browse files
committedSep 12, 2017
fixup! Use mapping for LDAP sync/prune w/ Openshift group
1 parent 3ae8e34 commit 110b644

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
 

Diff for: ‎test/extended/ldap_groups.sh

+6
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,12 @@ for (( i=0; i<${#schema[@]}; i++ )); do
217217
oc adm groups prune --sync-config=sync-config.yaml --confirm
218218
compare_and_cleanup valid_all_ldap_sync_prune.yaml
219219

220+
echo -e "\tTEST: Sync all LDAP groups from LDAP server using whitelist file, then prune OpenShift groups using the same whitelist file"
221+
oc adm groups sync --whitelist=ldapgroupuids.txt --sync-config=sync-config-user-defined.yaml --confirm
222+
os::cmd::expect_success_and_text 'oc get group -o jsonpath={.items[*].metadata.name}' 'firstgroup secondgroup thirdgroup'
223+
oc adm groups prune --whitelist=ldapgroupuids.txt --sync-config=sync-config-user-defined.yaml --confirm
224+
os::cmd::expect_success_and_text 'oc get group -o name | wc -l' '0'
225+
220226
# PAGING
221227
echo -e "\tTEST: Sync all LDAP groups from LDAP server using paged queries"
222228
oc adm groups sync --sync-config=sync-config-paging.yaml --confirm

0 commit comments

Comments
 (0)
Please sign in to comment.