diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 00:06:26 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2019-10-02 00:06:26 +0000 |
commit | 587794b4b8a6e919e77ee4abe8215fa291e6a91d (patch) | |
tree | 380d6578d1ab5902bb521071128bafd4f70472ef /spec/factories/deploy_tokens.rb | |
parent | e0bd3a45d9dc6c74cac1a33ea8c03d6d8334249b (diff) | |
download | gitlab-ce-587794b4b8a6e919e77ee4abe8215fa291e6a91d.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/deploy_tokens.rb')
-rw-r--r-- | spec/factories/deploy_tokens.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/factories/deploy_tokens.rb b/spec/factories/deploy_tokens.rb index 99486acc2ab..42ed66ac191 100644 --- a/spec/factories/deploy_tokens.rb +++ b/spec/factories/deploy_tokens.rb @@ -2,20 +2,20 @@ FactoryBot.define do factory :deploy_token do - token nil - token_encrypted { Gitlab::CryptoHelper.aes256_gcm_encrypt( SecureRandom.hex(50) ) } + token { nil } + token_encrypted { Gitlab::CryptoHelper.aes256_gcm_encrypt(SecureRandom.hex(50)) } sequence(:name) { |n| "PDT #{n}" } - read_repository true - read_registry true - revoked false + read_repository { true } + read_registry { true } + revoked { false } expires_at { 5.days.from_now } trait :revoked do - revoked true + revoked { true } end trait :gitlab_deploy_token do - name DeployToken::GITLAB_DEPLOY_TOKEN_NAME + name { DeployToken::GITLAB_DEPLOY_TOKEN_NAME } end trait :expired do |