diff options
author | Dylan Griffith <dyl.griffith@gmail.com> | 2019-01-03 16:41:53 +0300 |
---|---|---|
committer | Dylan Griffith <dyl.griffith@gmail.com> | 2019-01-04 13:49:13 +0300 |
commit | 9275e1dfbfbb5cdeeb72ca429a5323c1d471af39 (patch) | |
tree | 5f761d6fc3f03ed29af8e35f3da81fb82f126129 /qa | |
parent | 147f740730b63dbdd4c457bb3a783510d225d73b (diff) |
Make RBAC enabled default for new clusters
Many changes were also made to tests that expected this to default to
false.
Diffstat (limited to 'qa')
-rw-r--r-- | qa/qa/page/base.rb | 4 | ||||
-rw-r--r-- | qa/qa/page/project/operations/kubernetes/add_existing.rb | 4 | ||||
-rw-r--r-- | qa/qa/resource/kubernetes_cluster.rb | 2 |
3 files changed, 7 insertions, 3 deletions
diff --git a/qa/qa/page/base.rb b/qa/qa/page/base.rb index 5788dceaaae..0a48f4c0e7f 100644 --- a/qa/qa/page/base.rb +++ b/qa/qa/page/base.rb @@ -92,6 +92,10 @@ module QA find_element(name).set(true) end + def uncheck_element(name) + find_element(name).set(false) + end + def click_element(name) find_element(name).click end diff --git a/qa/qa/page/project/operations/kubernetes/add_existing.rb b/qa/qa/page/project/operations/kubernetes/add_existing.rb index f3ab636ecc1..ffd5b36e1ae 100644 --- a/qa/qa/page/project/operations/kubernetes/add_existing.rb +++ b/qa/qa/page/project/operations/kubernetes/add_existing.rb @@ -33,8 +33,8 @@ module QA click_on 'Add Kubernetes cluster' end - def check_rbac! - check_element :rbac_checkbox + def uncheck_rbac! + uncheck_element :rbac_checkbox end end end diff --git a/qa/qa/resource/kubernetes_cluster.rb b/qa/qa/resource/kubernetes_cluster.rb index 96c8843fb99..d67e5f6da20 100644 --- a/qa/qa/resource/kubernetes_cluster.rb +++ b/qa/qa/resource/kubernetes_cluster.rb @@ -29,7 +29,7 @@ module QA page.set_api_url(@cluster.api_url) page.set_ca_certificate(@cluster.ca_certificate) page.set_token(@cluster.token) - page.check_rbac! if @cluster.rbac + page.uncheck_rbac! unless @cluster.rbac page.add_cluster! end |