Skip to content

Fix group permissions during LDAP tests

Mark Lapierre requested to merge qa-fix-ldap-group-permissions into master

What does this MR do?

Create the sandbox group with appropriate permissions before the LDAP group sync test starts so that in subsequent tests the LDAP user has permission to the group.

This also restores the original (most likely nil) env personal access token, so that subsequent tests don't perform API calls as the root user while logged in and performing other actions as a non-root LDAP user.

Without this change groups would be created by the root user, so when the LDAP user tried to push, it would not be permitted.

What are the relevant issue numbers?

Closes https://gitlab.com/gitlab-org/quality/nightly/issues/58

Does this MR meet the acceptance criteria?

Merge request reports