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