summaryrefslogtreecommitdiff
path: root/qa/spec
diff options
context:
space:
mode:
authorMark Lapierre <mlapierre@gitlab.com>2019-03-28 08:15:14 +0000
committerRémy Coutable <remy@rymai.me>2019-03-28 08:15:14 +0000
commit35c55576855c5d71c30d5e87a08d91da74442930 (patch)
tree58faae6e47d1a28f3ac02c79426f5073342e6f82 /qa/spec
parentd762302e31b2b8763062a1ac69d8b5ebe41f6ee3 (diff)
downloadgitlab-ce-35c55576855c5d71c30d5e87a08d91da74442930.tar.gz
Allow token env var from gitlab-qa
gitlab-qa accepts an env var named GITLAB_QA_ACCESS_TOKEN, but here we only accepted PERSONAL_ACCESS_TOKEN. This change replaces PERSONAL_ACCESS_TOKEN with GITLAB_QA_ACCESS_TOKEN
Diffstat (limited to 'qa/spec')
-rw-r--r--qa/spec/runtime/env_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/qa/spec/runtime/env_spec.rb b/qa/spec/runtime/env_spec.rb
index fc51f45c3a1..04085efe2ce 100644
--- a/qa/spec/runtime/env_spec.rb
+++ b/qa/spec/runtime/env_spec.rb
@@ -90,13 +90,13 @@ describe QA::Runtime::Env do
described_class.instance_variable_set(:@personal_access_token, nil)
end
- context 'when PERSONAL_ACCESS_TOKEN is set' do
+ context 'when GITLAB_QA_ACCESS_TOKEN is set' do
before do
- stub_env('PERSONAL_ACCESS_TOKEN', 'a_token')
+ stub_env('GITLAB_QA_ACCESS_TOKEN', 'a_token_too')
end
it 'returns specified token from env' do
- expect(described_class.personal_access_token).to eq 'a_token'
+ expect(described_class.personal_access_token).to eq 'a_token_too'
end
end