BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
0862bff8
Commit
0862bff8
authored
Feb 09, 2018
by
Grzegorz Bizon
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'qa-allow-setting-sandbox-group' into 'master'
Allow using a different sandbox group for QA See merge request gitlab-org/gitlab-ce!17000
parents
9ca361db
4061d291
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
23 additions
and
3 deletions
+23
-3
README.md
qa/README.md
+8
-0
env.rb
qa/qa/runtime/env.rb
+12
-0
namespace.rb
qa/qa/runtime/namespace.rb
+1
-1
user.rb
qa/qa/runtime/user.rb
+2
-2
No files found.
qa/README.md
View file @
0862bff8
...
...
@@ -70,6 +70,14 @@ If you need to authenticate as a different user, you can provide the
GITLAB_USERNAME=jsmith GITLAB_PASSWORD=password bin/qa Test::Instance 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`
:
```
GITLAB_USERNAME=jsmith GITLAB_PASSWORD=password GITLAB_SANDBOX_NAME=jsmith-qa-sandbox bin/qa Test::Instance https://gitlab.example.com
```
All
[
supported environment variables are here
](
https://gitlab.com/gitlab-org/gitlab-qa#supported-environment-variables
)
.
[
GDK
]:
https://gitlab.com/gitlab-org/gitlab-development-kit/
qa/qa/runtime/env.rb
View file @
0862bff8
...
...
@@ -16,6 +16,18 @@ module QA
def
personal_access_token
ENV
[
'PERSONAL_ACCESS_TOKEN'
]
end
def
user_username
ENV
[
'GITLAB_USERNAME'
]
end
def
user_password
ENV
[
'GITLAB_PASSWORD'
]
end
def
sandbox_name
ENV
[
'GITLAB_SANDBOX_NAME'
]
end
end
end
end
qa/qa/runtime/namespace.rb
View file @
0862bff8
...
...
@@ -16,7 +16,7 @@ module QA
end
def
sandbox_name
'gitlab-qa-sandbox'
Runtime
::
Env
.
sandbox_name
||
'gitlab-qa-sandbox'
end
end
end
...
...
qa/qa/runtime/user.rb
View file @
0862bff8
...
...
@@ -4,11 +4,11 @@ module QA
extend
self
def
name
ENV
[
'GITLAB_USERNAME'
]
||
'root'
Runtime
::
Env
.
user_username
||
'root'
end
def
password
ENV
[
'GITLAB_PASSWORD'
]
||
'5iveL!fe'
Runtime
::
Env
.
user_password
||
'5iveL!fe'
end
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment