Commit b9d06907 authored by Thong Kuah's avatar Thong Kuah

Fix QA spec sharing project in the wrong context

In CE we can only have one cluster per project, so create a new project
for each case of rbac disabled and enabled.
parent b83be503
......@@ -10,6 +10,8 @@ module QA
Page::Main::Login.act { sign_in_using_credentials }
end
[true, false].each do |rbac|
context "when rbac is #{rbac ? 'enabled' : 'disabled'}" do
before(:all) do
login
......@@ -36,11 +38,7 @@ module QA
end
Page::Project::Show.act { wait_for_push }
end
[true, false].each do |rbac|
context "when rbac is #{rbac ? 'enabled' : 'disabled'}" do
before(:all) do
# Create and connect K8s cluster
@cluster = Service::KubernetesCluster.new(rbac: rbac).create!
kubernetes_cluster = Resource::KubernetesCluster.fabricate! do |cluster|
......
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