summaryrefslogtreecommitdiff
path: root/spec/factories/deploy_tokens.rb
diff options
context:
space:
mode:
authorEtienne BaquƩ <ebaque@gitlab.com>2019-07-19 13:44:30 -0400
committerStan Hu <stanhu@gmail.com>2019-08-26 19:39:48 -0700
commit84d6dcbe5040b9f0475f6b2155800617e397db94 (patch)
treeef11e13dc897795a74b8824c2bf0096ce1ed4ecc /spec/factories/deploy_tokens.rb
parenta6b60fee67f6ea4d22ab5cb34901d0707829eec0 (diff)
downloadgitlab-ce-84d6dcbe5040b9f0475f6b2155800617e397db94.tar.gz
Updated call to find deploy token
Diffstat (limited to 'spec/factories/deploy_tokens.rb')
-rw-r--r--spec/factories/deploy_tokens.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/factories/deploy_tokens.rb b/spec/factories/deploy_tokens.rb
index a96258f5cbe..99486acc2ab 100644
--- a/spec/factories/deploy_tokens.rb
+++ b/spec/factories/deploy_tokens.rb
@@ -2,7 +2,8 @@
FactoryBot.define do
factory :deploy_token do
- token { 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