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:
authorMatija Čupić <matteeyah@gmail.com>2018-06-02 00:47:38 +0300
committerMatija Čupić <matteeyah@gmail.com>2018-06-02 00:58:39 +0300
commit39412d0a163625bd91632267a1dd36c1ebb23906 (patch)
treef4c063a0f54fdc777965d326f89b6f1c51aa172d /spec/models/project_auto_devops_spec.rb
parent5e9687a198f205131d8e65c747f6b4ac2ae092f1 (diff)
Add deploy strategy related predefined variables
Diffstat (limited to 'spec/models/project_auto_devops_spec.rb')
-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 1bfc6befb4b..37cd1f571e5 100644
--- a/spec/models/project_auto_devops_spec.rb
+++ b/spec/models/project_auto_devops_spec.rb
@@ -69,6 +69,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] })
+ .to include("STAGING_ENABLED", "INCREMENTAL_ROLLOUT_ENABLED")
+ end
+ end
+
def domain_variable
{ key: 'AUTO_DEVOPS_DOMAIN', value: 'example.com', public: true }
end