Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/qa
diff options
context:
space:
mode:
authorBrett Walker <bwalker@gitlab.com>2018-02-08 17:02:44 +0300
committerBrett Walker <bwalker@gitlab.com>2018-02-08 17:02:44 +0300
commit4c45c106a32adedad5dd6c18fe6131ab6e873a68 (patch)
tree206205357f010ed5f79fc077fac3b22fedb723da /qa
parentbb2478c205932429e7e519aaaf2d9b655aecf860 (diff)
don't check against a hardcoded user name
and use an invalid user name that is random so we know it's invalid
Diffstat (limited to 'qa')
-rw-r--r--qa/qa/specs/features/api/users_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/qa/specs/features/api/users_spec.rb b/qa/qa/specs/features/api/users_spec.rb
index 9d039590a0e..d4ff4ebbc9a 100644
--- a/qa/qa/specs/features/api/users_spec.rb
+++ b/qa/qa/specs/features/api/users_spec.rb
@@ -14,7 +14,7 @@ module QA
end
scenario 'submit request with a valid user name' do
- get request.url, { params: { username: 'root' } }
+ get request.url, { params: { username: Runtime::User.name } }
expect_status(200)
expect(json_body).to be_an Array
@@ -23,7 +23,7 @@ module QA
end
scenario 'submit request with an invalid user name' do
- get request.url, { params: { username: 'invalid' } }
+ get request.url, { params: { username: SecureRandom.hex(10) } }
expect_status(200)
expect(json_body).to be_an Array