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
path: root/spec
diff options
context:
space:
mode:
authorMatija Čupić <matteeyah@gmail.com>2018-06-07 15:58:09 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-06-07 15:58:09 +0300
commit637b90db6edbd13d15289bf0d8d2c442d05442f0 (patch)
tree7c9291f141b7d49ae149bc4b7f617cf092eff8c5 /spec
parent616dd00abbd09e6ef550e2eb877ae9fe2b28812b (diff)
Add spec for continuous deploy strategy
Diffstat (limited to 'spec')
-rw-r--r--spec/models/project_auto_devops_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/models/project_auto_devops_spec.rb b/spec/models/project_auto_devops_spec.rb
index 040e76e28fc..f9ee9fe98bd 100644
--- a/spec/models/project_auto_devops_spec.rb
+++ b/spec/models/project_auto_devops_spec.rb
@@ -82,6 +82,19 @@ describe ProjectAutoDevops do
end
end
+ context 'when deploy_strategy is continuous' do
+ let(:domain) { 'example.com' }
+
+ before do
+ auto_devops.deploy_strategy = 'continuous'
+ end
+
+ it do
+ expect(auto_devops.predefined_variables.map { |var| var[:key] })
+ .not_to include("STAGING_ENABLED", "INCREMENTAL_ROLLOUT_ENABLED")
+ end
+ end
+
def domain_variable
{ key: 'AUTO_DEVOPS_DOMAIN', value: 'example.com', public: true }
end