diff options
author | Chris Baumbauer <cab@cabnetworks.net> | 2018-12-13 07:39:44 -0800 |
---|---|---|
committer | Chris Baumbauer <cab@cabnetworks.net> | 2019-01-04 14:53:39 -0800 |
commit | 47cb5a2641e840bca4f7fc15d93d78b2a6fca306 (patch) | |
tree | 06c84ec084ff71d952cb44582ad8a15bf1723c30 /spec/features | |
parent | b97b85c37e77e5d37705cb2d3a60161896585420 (diff) | |
download | gitlab-ce-47cb5a2641e840bca4f7fc15d93d78b2a6fca306.tar.gz |
Require Knative to be installed only on an RBAC kubernetes cluster
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/projects/clusters/applications_spec.rb | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/spec/features/projects/clusters/applications_spec.rb b/spec/features/projects/clusters/applications_spec.rb index 8918a7b7b9c..fab9e035d53 100644 --- a/spec/features/projects/clusters/applications_spec.rb +++ b/spec/features/projects/clusters/applications_spec.rb @@ -70,6 +70,34 @@ describe 'Clusters Applications', :js do end end + context 'when user installs Knative' do + before do + create(:clusters_applications_helm, :installed, cluster: cluster) + end + + context 'on an abac cluster' do + let(:cluster) { create(:cluster, :provided_by_gcp, :rbac_disabled, projects: [project])} + + it 'should show info block and not be installable' do + page.within('.js-cluster-application-row-knative') do + expect(page).to have_css('.bs-callout-info') + expect(page.find(:css, '.js-cluster-application-install-button')['disabled']).to eq('true') + end + end + end + + context 'on an rbac cluster' do + let(:cluster) { create(:cluster, :provided_by_gcp, projects: [project])} + + it 'should not show callout block and be installable' do + page.within('.js-cluster-application-row-knative') do + expect(page).not_to have_css('.bs-callout-info') + expect(page).to have_css('.js-cluster-application-install-button:not([disabled])') + end + end + end + end + context 'when user installs Cert Manager' do before do allow(ClusterInstallAppWorker).to receive(:perform_async) |