summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-08-27 22:34:02 +0000
committerMark Lapierre <mlapierre@gitlab.com>2019-08-27 22:34:02 +0000
commit6d0fdaaac532f6d478572134f4a19675bedaed49 (patch)
treeeb552fe012a4a3da121212043d500ae8fade8779 /qa
parentd4ae5cd7727f0ae83a7011d4af6f1ebede5fcb71 (diff)
parent7049b3b6316a8f8974bc349d5db537a2d796d662 (diff)
downloadgitlab-ce-6d0fdaaac532f6d478572134f4a19675bedaed49.tar.gz
Merge branch 'sh-document-qa-admin-account-docs' into 'master'
Document setting admin credentials in QA tests See merge request gitlab-org/gitlab-ce!32271
Diffstat (limited to 'qa')
-rw-r--r--qa/README.md11
1 files changed, 11 insertions, 0 deletions
diff --git a/qa/README.md b/qa/README.md
index 16e5e730a6b..dede3cd2473 100644
--- a/qa/README.md
+++ b/qa/README.md
@@ -105,6 +105,17 @@ If you need to authenticate as a different user, you can provide the
GITLAB_USERNAME=jsmith GITLAB_PASSWORD=password bundle exec bin/qa Test::Instance::All https://gitlab.example.com
```
+Some QA tests require logging in as an admin user. By default, the QA
+tests will use the the same `root` user seeded by the GDK.
+
+If you need to authenticate with different admin credentials, you can
+provide the `GITLAB_ADMIN_USERNAME` and `GITLAB_ADMIN_PASSWORD`
+environment variables:
+
+```
+GITLAB_ADMIN_USERNAME=admin GITLAB_ADMIN_PASSWORD=myadminpassword GITLAB_USERNAME=jsmith GITLAB_PASSWORD=password bundle exec bin/qa Test::Instance::All https://gitlab.example.com
+```
+
If your user doesn't have permission to default sandbox group
`gitlab-qa-sandbox`, you could also use another sandbox group by giving
`GITLAB_SANDBOX_NAME`: