diff options
author | João Cunha <j.a.cunha@gmail.com> | 2019-07-16 16:11:10 +0000 |
---|---|---|
committer | Kamil Trzciński <ayufan@ayufan.eu> | 2019-07-16 16:11:10 +0000 |
commit | bd31c4be0d7cfcb0c2cc887a66c313c592ce8e88 (patch) | |
tree | 562be9be26b3bfdcba69e0ea1400f772a149e96b /spec/services/clusters | |
parent | cca71da16ac12d3df787de3f3a0cd60d30649a1d (diff) | |
download | gitlab-ce-bd31c4be0d7cfcb0c2cc887a66c313c592ce8e88.tar.gz |
Enable GitLabb runner to be uninstalled from cluster
- Set as uninstallable app
- Update docs
- Adjust specs
Diffstat (limited to 'spec/services/clusters')
-rw-r--r-- | spec/services/clusters/applications/check_uninstall_progress_service_spec.rb | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb b/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb index 9ab83d913f5..a948b442441 100644 --- a/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb +++ b/spec/services/clusters/applications/check_uninstall_progress_service_spec.rb @@ -41,7 +41,7 @@ describe Clusters::Applications::CheckUninstallProgressService do end end - context 'when application is installing' do + context 'when application is uninstalling' do RESCHEDULE_PHASES.each { |phase| it_behaves_like 'a not yet terminated installation', phase } context 'when installation POD succeeded' do @@ -56,6 +56,12 @@ describe Clusters::Applications::CheckUninstallProgressService do service.execute end + it 'runs application post_uninstall' do + expect(application).to receive(:post_uninstall).and_call_original + + service.execute + end + it 'destroys the application' do expect(worker_class).not_to receive(:perform_in) |