diff options
author | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-04-24 11:06:49 +0300 |
---|---|---|
committer | Grzegorz Bizon <grzegorz@gitlab.com> | 2018-04-24 11:06:49 +0300 |
commit | 92cb6d63543c75ec39570699ffbe958845472da9 (patch) | |
tree | 167eb079481ecec3d6d483145d23c8f27c4b96ba /spec/factories | |
parent | 8a726a0842f4a8e5b86d2a44c7c16219632f4249 (diff) | |
parent | 82d66ac96d03a4caf6d4c3c86c51009e2a4fe9fb (diff) |
Merge branch '44447-expose-deploy-token-to-ci-cd' into 'master'
Expose Deploy Token info as environment variables to CI/CD jobs
Closes #44447
See merge request gitlab-org/gitlab-ce!18414
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/deploy_tokens.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/deploy_tokens.rb b/spec/factories/deploy_tokens.rb index 5fea4a9d5a6..017e866e69c 100644 --- a/spec/factories/deploy_tokens.rb +++ b/spec/factories/deploy_tokens.rb @@ -10,5 +10,13 @@ FactoryBot.define do trait :revoked do revoked true end + + trait :gitlab_deploy_token do + name DeployToken::GITLAB_DEPLOY_TOKEN_NAME + end + + trait :expired do + expires_at { Date.today - 1.month } + end end end |