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:
Diffstat (limited to 'spec/presenters')
-rw-r--r--spec/presenters/clusters/cluster_presenter_spec.rb2
-rw-r--r--spec/presenters/group_clusterable_presenter_spec.rb18
-rw-r--r--spec/presenters/instance_clusterable_presenter_spec.rb12
-rw-r--r--spec/presenters/project_clusterable_presenter_spec.rb18
-rw-r--r--spec/presenters/projects/security/configuration_presenter_spec.rb2
5 files changed, 2 insertions, 50 deletions
diff --git a/spec/presenters/clusters/cluster_presenter_spec.rb b/spec/presenters/clusters/cluster_presenter_spec.rb
index 49126ed8e5f..6570ab56ed0 100644
--- a/spec/presenters/clusters/cluster_presenter_spec.rb
+++ b/spec/presenters/clusters/cluster_presenter_spec.rb
@@ -121,7 +121,7 @@ RSpec.describe Clusters::ClusterPresenter do
it do
is_expected.to include('clusters-path': clusterable_presenter.index_path,
'dashboard-endpoint': clusterable_presenter.metrics_dashboard_path(cluster),
- 'documentation-path': help_page_path('user/project/clusters/index', anchor: 'monitoring-your-kubernetes-cluster'),
+ 'documentation-path': help_page_path('user/infrastructure/clusters/manage/clusters_health'),
'add-dashboard-documentation-path': help_page_path('operations/metrics/dashboards/index.md', anchor: 'add-a-new-dashboard-to-your-project'),
'empty-getting-started-svg-path': match_asset_path('/assets/illustrations/monitoring/getting_started.svg'),
'empty-loading-svg-path': match_asset_path('/assets/illustrations/monitoring/loading.svg'),
diff --git a/spec/presenters/group_clusterable_presenter_spec.rb b/spec/presenters/group_clusterable_presenter_spec.rb
index f6389ba723e..0b8a7cb5003 100644
--- a/spec/presenters/group_clusterable_presenter_spec.rb
+++ b/spec/presenters/group_clusterable_presenter_spec.rb
@@ -37,36 +37,18 @@ RSpec.describe GroupClusterablePresenter do
it { is_expected.to eq(group_clusters_path(group)) }
end
- describe '#new_path' do
- subject { presenter.new_path }
-
- it { is_expected.to eq(new_group_cluster_path(group)) }
- end
-
describe '#connect_path' do
subject { presenter.connect_path }
it { is_expected.to eq(connect_group_clusters_path(group)) }
end
- describe '#authorize_aws_role_path' do
- subject { presenter.authorize_aws_role_path }
-
- it { is_expected.to eq(authorize_aws_role_group_clusters_path(group)) }
- end
-
describe '#create_user_clusters_path' do
subject { presenter.create_user_clusters_path }
it { is_expected.to eq(create_user_group_clusters_path(group)) }
end
- describe '#create_gcp_clusters_path' do
- subject { presenter.create_gcp_clusters_path }
-
- it { is_expected.to eq(create_gcp_group_clusters_path(group)) }
- end
-
describe '#cluster_status_cluster_path' do
subject { presenter.cluster_status_cluster_path(cluster) }
diff --git a/spec/presenters/instance_clusterable_presenter_spec.rb b/spec/presenters/instance_clusterable_presenter_spec.rb
index 3e871bf7ba5..52379091b4e 100644
--- a/spec/presenters/instance_clusterable_presenter_spec.rb
+++ b/spec/presenters/instance_clusterable_presenter_spec.rb
@@ -9,24 +9,12 @@ RSpec.describe InstanceClusterablePresenter do
let(:cluster) { create(:cluster, :provided_by_gcp, :instance) }
let(:instance) { cluster.instance }
- describe '#create_aws_clusters_path' do
- subject { described_class.new(instance).create_aws_clusters_path }
-
- it { is_expected.to eq(create_aws_admin_clusters_path) }
- end
-
describe '#connect_path' do
subject { described_class.new(instance).connect_path }
it { is_expected.to eq(connect_admin_clusters_path) }
end
- describe '#authorize_aws_role_path' do
- subject { described_class.new(instance).authorize_aws_role_path }
-
- it { is_expected.to eq(authorize_aws_role_admin_clusters_path) }
- end
-
describe '#clear_cluster_cache_path' do
subject { presenter.clear_cluster_cache_path(cluster) }
diff --git a/spec/presenters/project_clusterable_presenter_spec.rb b/spec/presenters/project_clusterable_presenter_spec.rb
index bd4319c9411..dfe4a191ae5 100644
--- a/spec/presenters/project_clusterable_presenter_spec.rb
+++ b/spec/presenters/project_clusterable_presenter_spec.rb
@@ -37,12 +37,6 @@ RSpec.describe ProjectClusterablePresenter do
it { is_expected.to eq(project_clusters_path(project)) }
end
- describe '#new_path' do
- subject { presenter.new_path }
-
- it { is_expected.to eq(new_project_cluster_path(project)) }
- end
-
describe '#connect_path' do
subject { presenter.connect_path }
@@ -55,24 +49,12 @@ RSpec.describe ProjectClusterablePresenter do
it { is_expected.to eq(new_cluster_docs_project_clusters_path(project)) }
end
- describe '#authorize_aws_role_path' do
- subject { presenter.authorize_aws_role_path }
-
- it { is_expected.to eq(authorize_aws_role_project_clusters_path(project)) }
- end
-
describe '#create_user_clusters_path' do
subject { presenter.create_user_clusters_path }
it { is_expected.to eq(create_user_project_clusters_path(project)) }
end
- describe '#create_gcp_clusters_path' do
- subject { presenter.create_gcp_clusters_path }
-
- it { is_expected.to eq(create_gcp_project_clusters_path(project)) }
- end
-
describe '#cluster_status_cluster_path' do
subject { presenter.cluster_status_cluster_path(cluster) }
diff --git a/spec/presenters/projects/security/configuration_presenter_spec.rb b/spec/presenters/projects/security/configuration_presenter_spec.rb
index 779d6b88fd5..05e5a9d4f1d 100644
--- a/spec/presenters/projects/security/configuration_presenter_spec.rb
+++ b/spec/presenters/projects/security/configuration_presenter_spec.rb
@@ -263,7 +263,7 @@ RSpec.describe Projects::Security::ConfigurationPresenter do
end
it 'includes a link to CI pipeline docs' do
- expect(html_data[:latest_pipeline_path]).to eq(help_page_path('ci/pipelines'))
+ expect(html_data[:latest_pipeline_path]).to eq(help_page_path('ci/pipelines/index'))
end
context 'when gathering feature data' do