summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2019-04-15 10:10:59 +1000
committerStan Hu <stanhu@gmail.com>2019-04-29 22:55:12 -0700
commiteae0fc2bcd6f7e2e183a922321ace3380c329adc (patch)
treea6be5f1d6bc5a84f88cee5044aa8f06c8f640c47
parentabb530a61958518f6e0c739406f34c558c504206 (diff)
downloadgitlab-ce-eae0fc2bcd6f7e2e183a922321ace3380c329adc.tar.gz
Remove xit test for uninstall group cluster app
-rw-r--r--spec/controllers/groups/clusters/applications_controller_spec.rb60
1 files changed, 0 insertions, 60 deletions
diff --git a/spec/controllers/groups/clusters/applications_controller_spec.rb b/spec/controllers/groups/clusters/applications_controller_spec.rb
index acb9405d1a6..16a63536ea6 100644
--- a/spec/controllers/groups/clusters/applications_controller_spec.rb
+++ b/spec/controllers/groups/clusters/applications_controller_spec.rb
@@ -144,64 +144,4 @@ describe Groups::Clusters::ApplicationsController do
it_behaves_like 'a secure endpoint'
end
end
-
- describe 'DELETE destroy' do
- subject do
- delete :destroy, params: params.merge(group_id: group)
- end
-
- let!(:application) { create(:clusters_applications_cert_managers, :installed, cluster: cluster) }
- let(:application_name) { application.name }
- let(:params) { { application: application_name, id: cluster.id } }
- let(:worker_class) { Clusters::Applications::UninstallWorker }
-
- describe 'functionality' do
- let(:user) { create(:user) }
-
- before do
- group.add_maintainer(user)
- sign_in(user)
- end
-
- context "when cluster and app exists" do
- xit "schedules an application update" do
- expect(worker_class).to receive(:perform_async).with(application.name, application.id).once
-
- is_expected.to have_http_status(:no_content)
-
- expect(cluster.application_cert_manager).to be_scheduled
- end
- end
-
- context 'when cluster do not exists' do
- before do
- cluster.destroy!
- end
-
- it { is_expected.to have_http_status(:not_found) }
- end
-
- context 'when application is unknown' do
- let(:application_name) { 'unkwnown-app' }
-
- it { is_expected.to have_http_status(:not_found) }
- end
-
- context 'when application is already scheduled' do
- before do
- application.make_scheduled!
- end
-
- xit { is_expected.to have_http_status(:bad_request) }
- end
- end
-
- describe 'security' do
- before do
- allow(worker_class).to receive(:perform_async)
- end
-
- it_behaves_like 'a secure endpoint'
- end
- end
end