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>2022-09-19 03:13:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-09-19 03:13:54 +0300
commitf764c2fd9e05c90155ade99e3247556cce0c7412 (patch)
treee63a14d8aebbc5d10287d5ea1303167910970ef2 /spec/features/clusters
parentcd25acd9f7534c41e43a0b122acd751633be3196 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/clusters')
-rw-r--r--spec/features/clusters/create_agent_spec.rb9
1 files changed, 5 insertions, 4 deletions
diff --git a/spec/features/clusters/create_agent_spec.rb b/spec/features/clusters/create_agent_spec.rb
index c44741b756b..b19e57c550c 100644
--- a/spec/features/clusters/create_agent_spec.rb
+++ b/spec/features/clusters/create_agent_spec.rb
@@ -12,10 +12,11 @@ RSpec.describe 'Cluster agent registration', :js do
allow(Gitlab::Kas).to receive(:internal_url).and_return('kas.example.internal')
allow_next_instance_of(Gitlab::Kas::Client) do |client|
- allow(client).to receive(:list_agent_config_files).and_return([
- double(agent_name: 'example-agent-1', path: '.gitlab/agents/example-agent-1/config.yaml'),
- double(agent_name: 'example-agent-2', path: '.gitlab/agents/example-agent-2/config.yaml')
- ])
+ allow(client).to receive(:list_agent_config_files).and_return(
+ [
+ double(agent_name: 'example-agent-1', path: '.gitlab/agents/example-agent-1/config.yaml'),
+ double(agent_name: 'example-agent-2', path: '.gitlab/agents/example-agent-2/config.yaml')
+ ])
allow(client).to receive(:get_connected_agents).and_return([])
end