Pre-seed GitLab instance used in pipeline with admin personal access token
Problem
In qa-master
pipelines we create personal access token for test users via browser ui since admin token is not available for API creation.
Proposal
--seed-db
option is introduced in gitlab-org/gitlab-qa!896 (merged) for gitlab-qa
to allow us pre-seed GitLab instance with test data used in e2e test pipeline.
We should utilize this option to seed the personal access token for admin(root) user and store the value, so that it can be leveraged in the API calls to create token for other test user accounts.
Steps
-
Add create_admin_token
step and scripts ingitlab-qa
-
refactor existing e2e tests with PersonalAccessToken
creation
Edited by Chloe Liu