File tree 1 file changed +6
-0
lines changed
1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -217,6 +217,12 @@ for (( i=0; i<${#schema[@]}; i++ )); do
217
217
oc adm groups prune --sync-config=sync-config.yaml --confirm
218
218
compare_and_cleanup valid_all_ldap_sync_prune.yaml
219
219
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
+
220
226
# PAGING
221
227
echo -e " \tTEST: Sync all LDAP groups from LDAP server using paged queries"
222
228
oc adm groups sync --sync-config=sync-config-paging.yaml --confirm
You can’t perform that action at this time.
0 commit comments