diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-12 00:08:47 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-12 00:08:47 +0300 |
commit | 23790cda2b4145294d71591515acfe892d4c99a7 (patch) | |
tree | 0efc35c3f6ae5830953f09929e77569e9082104b /spec/models | |
parent | 413b7041032d2bf34d95cdc1d2375dbf2dbf4163 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/environment_spec.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/spec/models/environment_spec.rb b/spec/models/environment_spec.rb index d20069d15e0..9d4699cb91e 100644 --- a/spec/models/environment_spec.rb +++ b/spec/models/environment_spec.rb @@ -16,6 +16,7 @@ RSpec.describe Environment, :use_clean_rails_memory_store_caching, feature_categ it { is_expected.to be_kind_of(ReactiveCaching) } it { is_expected.to nullify_if_blank(:external_url) } it { is_expected.to nullify_if_blank(:kubernetes_namespace) } + it { is_expected.to nullify_if_blank(:flux_resource_path) } it { is_expected.to belong_to(:project).required } it { is_expected.to belong_to(:merge_request).optional } @@ -37,6 +38,7 @@ RSpec.describe Environment, :use_clean_rails_memory_store_caching, feature_categ it { is_expected.to validate_length_of(:external_url).is_at_most(255) } it { is_expected.to validate_length_of(:kubernetes_namespace).is_at_most(63) } + it { is_expected.to validate_length_of(:flux_resource_path).is_at_most(255) } describe 'validation' do it 'does not become invalid record when external_url is empty' do |