Commit 4a5b7b8f authored by Sanad Liaquat's avatar Sanad Liaquat

Merge branch 'add_monitor_app_to_deploy' into 'master'

Use Express template for auto devops app

See merge request gitlab-org/gitlab!38683
parents 5974ecb7 d54bb8b5
...@@ -8,6 +8,7 @@ module QA ...@@ -8,6 +8,7 @@ module QA
@project = Resource::Project.fabricate_via_api! do |project| @project = Resource::Project.fabricate_via_api! do |project|
project.name = 'monitoring-project' project.name = 'monitoring-project'
project.auto_devops_enabled = true project.auto_devops_enabled = true
project.template_name = 'express'
end end
deploy_project_with_prometheus deploy_project_with_prometheus
...@@ -83,7 +84,7 @@ module QA ...@@ -83,7 +84,7 @@ module QA
%w[ %w[
CODE_QUALITY_DISABLED TEST_DISABLED LICENSE_MANAGEMENT_DISABLED CODE_QUALITY_DISABLED TEST_DISABLED LICENSE_MANAGEMENT_DISABLED
SAST_DISABLED DAST_DISABLED DEPENDENCY_SCANNING_DISABLED SAST_DISABLED DAST_DISABLED DEPENDENCY_SCANNING_DISABLED
CONTAINER_SCANNING_DISABLED PERFORMANCE_DISABLED CONTAINER_SCANNING_DISABLED PERFORMANCE_DISABLED SECRET_DETECTION_DISABLED
].each do |key| ].each do |key|
Resource::CiVariable.fabricate_via_api! do |resource| Resource::CiVariable.fabricate_via_api! do |resource|
resource.project = @project resource.project = @project
...@@ -103,16 +104,9 @@ module QA ...@@ -103,16 +104,9 @@ module QA
cluster_settings.install_prometheus = true cluster_settings.install_prometheus = true
end end
Resource::Repository::ProjectPush.fabricate! do |push| Resource::Pipeline.fabricate_via_api! do |pipeline|
push.project = @project pipeline.project = @project
push.directory = Pathname end.visit!
.new(__dir__)
.join('../../../../fixtures/auto_devops_rack')
push.commit_message = 'Create AutoDevOps compatible Project for Monitoring'
end
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline)
Page::Project::Pipeline::Show.perform do |pipeline| Page::Project::Pipeline::Show.perform do |pipeline|
pipeline.click_job('build') pipeline.click_job('build')
......
...@@ -9,6 +9,7 @@ module QA ...@@ -9,6 +9,7 @@ module QA
@project = Resource::Project.fabricate_via_api! do |project| @project = Resource::Project.fabricate_via_api! do |project|
project.name = 'monitoring-project' project.name = 'monitoring-project'
project.auto_devops_enabled = true project.auto_devops_enabled = true
project.template_name = 'express'
end end
deploy_project_with_prometheus deploy_project_with_prometheus
...@@ -55,7 +56,7 @@ module QA ...@@ -55,7 +56,7 @@ module QA
%w[ %w[
CODE_QUALITY_DISABLED TEST_DISABLED LICENSE_MANAGEMENT_DISABLED CODE_QUALITY_DISABLED TEST_DISABLED LICENSE_MANAGEMENT_DISABLED
SAST_DISABLED DAST_DISABLED DEPENDENCY_SCANNING_DISABLED SAST_DISABLED DAST_DISABLED DEPENDENCY_SCANNING_DISABLED
CONTAINER_SCANNING_DISABLED PERFORMANCE_DISABLED CONTAINER_SCANNING_DISABLED PERFORMANCE_DISABLED SECRET_DETECTION_DISABLED
].each do |key| ].each do |key|
Resource::CiVariable.fabricate_via_api! do |resource| Resource::CiVariable.fabricate_via_api! do |resource|
resource.project = @project resource.project = @project
...@@ -75,16 +76,9 @@ module QA ...@@ -75,16 +76,9 @@ module QA
cluster_settings.install_prometheus = true cluster_settings.install_prometheus = true
end end
Resource::Repository::ProjectPush.fabricate! do |push| Resource::Pipeline.fabricate_via_api! do |pipeline|
push.project = @project pipeline.project = @project
push.directory = Pathname end.visit!
.new(__dir__)
.join('../../../../../fixtures/auto_devops_rack')
push.commit_message = 'Create AutoDevOps compatible Project for Monitoring'
end
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:click_on_latest_pipeline)
Page::Project::Pipeline::Show.perform do |pipeline| Page::Project::Pipeline::Show.perform do |pipeline|
pipeline.click_job('build') pipeline.click_job('build')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment