Skip to content

Commit

Permalink
fixup! Use mapping for LDAP sync/prune w/ Openshift group
Browse files Browse the repository at this point in the history
  • Loading branch information
enj committed Sep 12, 2017
1 parent 3ae8e34 commit 110b644
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/extended/ldap_groups.sh
Original file line number Diff line number Diff line change
Expand Up @@ -217,6 +217,12 @@ for (( i=0; i<${#schema[@]}; i++ )); do
oc adm groups prune --sync-config=sync-config.yaml --confirm
compare_and_cleanup valid_all_ldap_sync_prune.yaml

echo -e "\tTEST: Sync all LDAP groups from LDAP server using whitelist file, then prune OpenShift groups using the same whitelist file"
oc adm groups sync --whitelist=ldapgroupuids.txt --sync-config=sync-config-user-defined.yaml --confirm
os::cmd::expect_success_and_text 'oc get group -o jsonpath={.items[*].metadata.name}' 'firstgroup secondgroup thirdgroup'
oc adm groups prune --whitelist=ldapgroupuids.txt --sync-config=sync-config-user-defined.yaml --confirm
os::cmd::expect_success_and_text 'oc get group -o name | wc -l' '0'

# PAGING
echo -e "\tTEST: Sync all LDAP groups from LDAP server using paged queries"
oc adm groups sync --sync-config=sync-config-paging.yaml --confirm
Expand Down

0 comments on commit 110b644

Please sign in to comment.