Commit 9985486e authored by ddavison's avatar ddavison

Pare down create_project_with_auto_devops_spec

For now only test RBAC disabled
Remove superfluous statements that waste time
Signed-off-by: default avatarddavison <ddavison@gitlab.com>
parent 3395eacb
......@@ -11,8 +11,7 @@ module QA
end
describe 'Auto DevOps support', :orchestrated, :kubernetes, :quarantine do
[true, false].each do |rbac|
context "when rbac is #{rbac ? 'enabled' : 'disabled'}" do
context 'when rbac is enabled' do
before(:all) do
login
......@@ -39,7 +38,7 @@ module QA
end
# Create and connect K8s cluster
@cluster = Service::KubernetesCluster.new(rbac: rbac).create!
@cluster = Service::KubernetesCluster.new(rbac: true).create!
Resource::KubernetesCluster.fabricate! do |cluster|
cluster.project = @project
cluster.cluster = @cluster
......@@ -48,22 +47,12 @@ module QA
cluster.install_prometheus = true
cluster.install_runner = true
end
@project.visit!
Page::Project::Menu.perform(&:click_ci_cd_settings)
Page::Project::Settings::CICD.perform do |p|
p.enable_auto_devops
end
end
after(:all) do
@cluster&.remove!
end
before do
login
end
it 'runs auto devops' do
@project.visit!
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
......@@ -126,7 +115,6 @@ module QA
push.file_content = 'new file contents'
end
@project.visit!
Page::Project::Menu.perform(&:click_ci_cd_pipelines)
Page::Project::Pipeline::Index.perform(&:go_to_latest_pipeline)
......@@ -153,8 +141,6 @@ module QA
end
Page::Project::Job::Show.perform do |job|
expect(job).to be_successful(timeout: 1200)
job.click_element(:pipeline_path)
end
Page::Project::Menu.perform(&:click_operations_environments)
......@@ -172,7 +158,6 @@ module QA
end
end
end
end
describe 'Auto DevOps', :smoke do
it 'enables AutoDevOps by default' do
......
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