Class: Gitlab::QA::Scenario::Test::Instance::Image
- Inherits:
-
Gitlab::QA::Scenario::Template
- Object
- Gitlab::QA::Scenario::Template
- Gitlab::QA::Scenario::Test::Instance::Image
- Defined in:
- lib/gitlab/qa/scenario/test/instance/image.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#volumes ⇒ Object
writeonly
Sets the attribute volumes.
Instance Method Summary collapse
-
#initialize ⇒ Image
constructor
A new instance of Image.
- #perform(release, *rspec_args) ⇒ Object
Methods inherited from Gitlab::QA::Scenario::Template
Constructor Details
#initialize ⇒ Image
Returns a new instance of Image.
9 10 11 |
# File 'lib/gitlab/qa/scenario/test/instance/image.rb', line 9 def initialize @volumes = {} end |
Instance Attribute Details
#volumes=(value) ⇒ Object (writeonly)
Sets the attribute volumes
7 8 9 |
# File 'lib/gitlab/qa/scenario/test/instance/image.rb', line 7 def volumes=(value) @volumes = value end |
Instance Method Details
#perform(release, *rspec_args) ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/gitlab/qa/scenario/test/instance/image.rb', line 13 def perform(release, *rspec_args) Component::Gitlab.perform do |gitlab| gitlab.release = release gitlab.volumes = @volumes gitlab.network = 'test' gitlab.instance do Component::Specs.perform do |specs| specs.suite = 'Test::Instance::All' specs.release = gitlab.release specs.network = gitlab.network specs.args = [gitlab.address, *rspec_args] end end end end |