summaryrefslogtreecommitdiff
path: root/spec/factories/deploy_tokens.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/factories/deploy_tokens.rb')
-rw-r--r--spec/factories/deploy_tokens.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/spec/factories/deploy_tokens.rb b/spec/factories/deploy_tokens.rb
index 017e866e69c..99486acc2ab 100644
--- a/spec/factories/deploy_tokens.rb
+++ b/spec/factories/deploy_tokens.rb
@@ -1,6 +1,9 @@
+# frozen_string_literal: true
+
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