diff options
author | Amit Rathi <amit.juschill@gmail.com> | 2018-12-07 19:10:03 +0300 |
---|---|---|
committer | Amit Rathi <amit.juschill@gmail.com> | 2018-12-07 19:10:03 +0300 |
commit | 1cdcf4026529a26480d801e2b8417ecaba627b9e (patch) | |
tree | a9136a106091d5beba8fd76ea4b0b8ce05a07008 /spec/services/clusters/applications | |
parent | a445aa0a9267f191fab1c46d438b42fbec549da5 (diff) |
Allows user to override default issuer email for cert manager
Diffstat (limited to 'spec/services/clusters/applications')
-rw-r--r-- | spec/services/clusters/applications/create_service_spec.rb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/services/clusters/applications/create_service_spec.rb b/spec/services/clusters/applications/create_service_spec.rb index 0bd7719345e..1a2ca23748a 100644 --- a/spec/services/clusters/applications/create_service_spec.rb +++ b/spec/services/clusters/applications/create_service_spec.rb @@ -31,6 +31,31 @@ describe Clusters::Applications::CreateService do subject end + context 'cert manager application' do + let(:params) do + { + application: 'cert_manager', + email: 'test@example.com' + } + end + + before do + allow_any_instance_of(Clusters::Applications::ScheduleInstallationService).to receive(:execute) + end + + it 'creates the application' do + expect do + subject + + cluster.reload + end.to change(cluster, :application_cert_manager) + end + + it 'sets the email' do + expect(subject.email).to eq('test@example.com') + end + end + context 'jupyter application' do let(:params) do { |