summaryrefslogtreecommitdiff
path: root/spec/services
diff options
context:
space:
mode:
authorAlessio Caiazza <acaiazza@gitlab.com>2017-11-07 15:26:14 +0100
committerAlessio Caiazza <acaiazza@gitlab.com>2017-11-07 17:12:41 +0100
commit8ec618a6ede619d9f75279f03c03b24d106c79c7 (patch)
tree7fe8501fb56edf3f33febe5c0d39019160715293 /spec/services
parent760a154a032319a90e15dcf4d54ec1c1cdde9e1c (diff)
downloadgitlab-ce-8ec618a6ede619d9f75279f03c03b24d106c79c7.tar.gz
Add Helm InstallCommand
Diffstat (limited to 'spec/services')
-rw-r--r--spec/services/clusters/applications/install_service_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/services/clusters/applications/install_service_spec.rb b/spec/services/clusters/applications/install_service_spec.rb
index 408f7e4354e..054a49ffedf 100644
--- a/spec/services/clusters/applications/install_service_spec.rb
+++ b/spec/services/clusters/applications/install_service_spec.rb
@@ -12,7 +12,7 @@ describe Clusters::Applications::InstallService do
context 'when there are no errors' do
before do
- expect(helm_client).to receive(:install).with(application)
+ expect(helm_client).to receive(:install).with(application.install_command)
allow(ClusterWaitForAppInstallationWorker).to receive(:perform_in).and_return(nil)
end
@@ -33,7 +33,7 @@ describe Clusters::Applications::InstallService do
context 'when k8s cluster communication fails' do
before do
error = KubeException.new(500, 'system failure', nil)
- expect(helm_client).to receive(:install).with(application).and_raise(error)
+ expect(helm_client).to receive(:install).with(application.install_command).and_raise(error)
end
it 'make the application errored' do