Commit f0c66eda authored by Stan Hu's avatar Stan Hu

Merge branch 'fix-geo-no-setup-workflow' into 'master'

[QA] Fix the 'no setup' workflow in Geo scenario

See merge request gitlab-org/gitlab-ee!7996
parents e3dd2680 34424b18
...@@ -17,6 +17,10 @@ module QA ...@@ -17,6 +17,10 @@ module QA
attribute :geo_skip_setup?, '--without-setup' attribute :geo_skip_setup?, '--without-setup'
def perform(options, *rspec_options) def perform(options, *rspec_options)
# Alias QA::Runtime::Scenario.gitlab_address to @address since
# some components depends on QA::Runtime::Scenario.gitlab_address.
QA::Runtime::Scenario.define(:gitlab_address, QA::Runtime::Scenario.geo_primary_address)
unless options[:geo_skip_setup?] unless options[:geo_skip_setup?]
Geo::Primary.act do Geo::Primary.act do
add_license add_license
...@@ -45,10 +49,6 @@ module QA ...@@ -45,10 +49,6 @@ module QA
def initialize def initialize
@address = QA::Runtime::Scenario.geo_primary_address @address = QA::Runtime::Scenario.geo_primary_address
@name = QA::Runtime::Scenario.geo_primary_name @name = QA::Runtime::Scenario.geo_primary_name
# Alias QA::Runtime::Scenario.gitlab_address to @address since
# some components depends on QA::Runtime::Scenario.gitlab_address.
QA::Runtime::Scenario.define(:gitlab_address, @address)
end end
def add_license def add_license
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment