diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-18 13:50:51 +0300 |
commit | db384e6b19af03b4c3c82a5760d83a3fd79f7982 (patch) | |
tree | 34beaef37df5f47ccbcf5729d7583aae093cffa0 /spec/services/environments/create_service_spec.rb | |
parent | 54fd7b1bad233e3944434da91d257fa7f63c3996 (diff) |
Add latest changes from gitlab-org/gitlab@16-3-stable-eev16.3.0-rc42
Diffstat (limited to 'spec/services/environments/create_service_spec.rb')
-rw-r--r-- | spec/services/environments/create_service_spec.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/services/environments/create_service_spec.rb b/spec/services/environments/create_service_spec.rb index c7d32f9111a..db427f3a8cd 100644 --- a/spec/services/environments/create_service_spec.rb +++ b/spec/services/environments/create_service_spec.rb @@ -14,7 +14,7 @@ RSpec.describe Environments::CreateService, feature_category: :environment_manag describe '#execute' do subject { service.execute } - let(:params) { { name: 'production', external_url: 'https://gitlab.com', tier: :production, kubernetes_namespace: 'default' } } + let(:params) { { name: 'production', external_url: 'https://gitlab.com', tier: :production, kubernetes_namespace: 'default', flux_resource_path: 'path/to/flux/resource' } } it 'creates an environment' do expect { subject }.to change { ::Environment.count }.by(1) @@ -28,6 +28,7 @@ RSpec.describe Environments::CreateService, feature_category: :environment_manag expect(response.payload[:environment].external_url).to eq('https://gitlab.com') expect(response.payload[:environment].tier).to eq('production') expect(response.payload[:environment].kubernetes_namespace).to eq('default') + expect(response.payload[:environment].flux_resource_path).to eq('path/to/flux/resource') end context 'with a cluster agent' do |