Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-03-02 03:11:26 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-03-02 03:11:26 +0300
commit30b8ad35feb7efb0587f44d8e7b371490634ee1c (patch)
treeebd11699a7e27c6e01aaa8d9ba72e64fe356ae61 /spec/factories/clusters
parent11b7785066d3e81916cbf653f4eb6568148f7e01 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/factories/clusters')
-rw-r--r--spec/factories/clusters/agent_tokens.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/factories/clusters/agent_tokens.rb b/spec/factories/clusters/agent_tokens.rb
index 6f92f2217b3..c49d197c3cd 100644
--- a/spec/factories/clusters/agent_tokens.rb
+++ b/spec/factories/clusters/agent_tokens.rb
@@ -5,5 +5,7 @@ FactoryBot.define do
association :agent, factory: :cluster_agent
token_encrypted { Gitlab::CryptoHelper.aes256_gcm_encrypt(SecureRandom.hex(50)) }
+
+ sequence(:name) { |n| "agent-token-#{n}" }
end
end