summaryrefslogtreecommitdiff
path: root/spec/models/clusters/applications/knative_spec.rb
diff options
context:
space:
mode:
authorThong Kuah <tkuah@gitlab.com>2019-04-12 17:42:48 +1200
committerStan Hu <stanhu@gmail.com>2019-04-29 22:55:11 -0700
commit44eec56834b7f524a2bf99d0f5e1571b52576d72 (patch)
treecb7b15114b011992fbfb6c428b712d5c679c9fee /spec/models/clusters/applications/knative_spec.rb
parent3c8df0c944f0b23f9ee8b6b08a0a355b00456dd9 (diff)
downloadgitlab-ce-44eec56834b7f524a2bf99d0f5e1571b52576d72.tar.gz
Expose can_uninstall in cluster_status.json
Only prometheus can be uninstalled atm, the rest will be dealt with later. Presumption is that new application types will have uninstallation implmemented at the same time.
Diffstat (limited to 'spec/models/clusters/applications/knative_spec.rb')
-rw-r--r--spec/models/clusters/applications/knative_spec.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/spec/models/clusters/applications/knative_spec.rb b/spec/models/clusters/applications/knative_spec.rb
index 405b5ad691c..d5974f47190 100644
--- a/spec/models/clusters/applications/knative_spec.rb
+++ b/spec/models/clusters/applications/knative_spec.rb
@@ -39,6 +39,12 @@ describe Clusters::Applications::Knative do
end
end
+ describe '#can_uninstall?' do
+ subject { knative.can_uninstall? }
+
+ it { is_expected.to be_falsey }
+ end
+
describe '#schedule_status_update with external_ip' do
let(:application) { create(:clusters_applications_knative, :installed) }