diff options
author | Brett Walker <brett@digitalmoksha.com> | 2018-01-23 10:23:23 +0000 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-01-23 10:23:23 +0000 |
commit | b8b9e9eb8e3f285bc3040f3dc425deeada585aae (patch) | |
tree | 87934fbe6b2b2b66be25888152bcbcd4af82e970 /qa/qa/runtime/env.rb | |
parent | fcfda3ef82992e5f56573dffb56b2a5896c24aff (diff) | |
download | gitlab-ce-b8b9e9eb8e3f285bc3040f3dc425deeada585aae.tar.gz |
Add ability to drive the API in QA specs
Diffstat (limited to 'qa/qa/runtime/env.rb')
-rw-r--r-- | qa/qa/runtime/env.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/qa/qa/runtime/env.rb b/qa/qa/runtime/env.rb index d5c28e9a7db..56944e8b641 100644 --- a/qa/qa/runtime/env.rb +++ b/qa/qa/runtime/env.rb @@ -3,6 +3,7 @@ module QA module Env extend self + # set to 'false' to have Chrome run visibly instead of headless def chrome_headless? (ENV['CHROME_HEADLESS'] =~ /^(false|no|0)$/i) != 0 end @@ -10,6 +11,11 @@ module QA def running_in_ci? ENV['CI'] || ENV['CI_SERVER'] end + + # specifies token that can be used for the api + def personal_access_token + ENV['PERSONAL_ACCESS_TOKEN'] + end end end end |