From 8eee62462d9ca50c9844d24a9ed04e3077d15eb7 Mon Sep 17 00:00:00 2001 From: Grant Young Date: Thu, 27 Jun 2019 09:40:14 +0100 Subject: Fix qa api client class so it stores root's token as env var again Incoming changes to support specific users stopped storing the token as an env var for the default root user meaning tests had to recreate it everytime. --- qa/qa/runtime/api/client.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qa/qa/runtime/api/client.rb b/qa/qa/runtime/api/client.rb index 5506da3e9f6..663be27a849 100644 --- a/qa/qa/runtime/api/client.rb +++ b/qa/qa/runtime/api/client.rb @@ -20,7 +20,7 @@ module QA # you can set the environment variable GITLAB_QA_ACCESS_TOKEN # to use a specific access token rather than create one from the UI # unless a specific user has been passed - @user.nil? && Runtime::Env.personal_access_token ? Runtime::Env.personal_access_token : create_personal_access_token + @user.nil? ? Runtime::Env.personal_access_token ||= create_personal_access_token : create_personal_access_token end end -- cgit v1.2.1