Class: Gitlab::QA::Scenario::Test::Instance::SecureVersion

Inherits:
Gitlab::QA::Scenario::Template show all
Includes:
Gitlab::QA::Support::Shellout
Defined in:
lib/gitlab/qa/scenario/test/instance/secure_version.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Gitlab::QA::Support::Shellout

shell

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

perform

Constructor Details

#initializeSecureVersion

Returns a new instance of SecureVersion.



13
14
15
16
17
18
19
20
21
22
# File 'lib/gitlab/qa/scenario/test/instance/secure_version.rb', line 13

def initialize
  @volumes = {}
  @seed_admin_token = true
  @pipeline_ops = Component::PipelineOps.new
  @runner_ops = Component::RunnerOps.new
  @importer = Component::ProjectImporter.new(
    ENV.fetch('PROJECT_URL', nil),
    ENV.fetch('PROJECT_NAME', nil))
  @license_ops = Component::LicenseOps.new
end

Instance Attribute Details

#seed_admin_token=(value) ⇒ Object (writeonly)

Sets the attribute seed_admin_token

Parameters:

  • value

    the value to set the attribute seed_admin_token to.



11
12
13
# File 'lib/gitlab/qa/scenario/test/instance/secure_version.rb', line 11

def seed_admin_token=(value)
  @seed_admin_token = value
end

#volumes=(value) ⇒ Object (writeonly)

Sets the attribute volumes

Parameters:

  • value

    the value to set the attribute volumes to.



11
12
13
# File 'lib/gitlab/qa/scenario/test/instance/secure_version.rb', line 11

def volumes=(value)
  @volumes = value
end

Instance Method Details

#perform(release, *_rspec_args) ⇒ Object



24
25
26
27
28
29
# File 'lib/gitlab/qa/scenario/test/instance/secure_version.rb', line 24

def perform(release, *_rspec_args)
  Component::Gitlab.perform do |gitlab|
    setup_gitlab(gitlab, release)
    execute_gitlab_operations(gitlab)
  end
end