Class: Gitlab::QA::Scenario::Test::Instance::Image

Inherits:
Gitlab::QA::Scenario::Template show all
Defined in:
lib/gitlab/qa/scenario/test/instance/image.rb

Direct Known Subclasses

RelativeUrl, RepositoryStorage

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Gitlab::QA::Scenario::Template

perform

Constructor Details

#initializeImage

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

Parameters:

  • value

    the value to set the attribute volumes to.



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