Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-07-22 03:10:34 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-07-22 03:10:34 +0300
commit0e6d9b66698db1e2e14e784fa9c601922e3f1a2c (patch)
treede82b854f1af5218d4ce0e880d119b7032541111 /spec/controllers
parent6333a892f50d882f007497fd5512a740ba1020e5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/settings/ci_cd_controller_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/controllers/projects/settings/ci_cd_controller_spec.rb b/spec/controllers/projects/settings/ci_cd_controller_spec.rb
index a1dbd27f49a..63c870eb133 100644
--- a/spec/controllers/projects/settings/ci_cd_controller_spec.rb
+++ b/spec/controllers/projects/settings/ci_cd_controller_spec.rb
@@ -325,6 +325,14 @@ RSpec.describe Projects::Settings::CiCdController, feature_category: :continuous
end
end
+ context 'when changing forward_deployment_rollback_allowed' do
+ let(:params) { { ci_cd_settings_attributes: { forward_deployment_rollback_allowed: false } } }
+
+ it 'changes forward deployment rollback allowed' do
+ expect { subject }.to change { project.reload.ci_forward_deployment_rollback_allowed }.from(true).to(false)
+ end
+ end
+
context 'when max_artifacts_size is specified' do
let(:params) { { max_artifacts_size: 10 } }