Sha256: 7f86a79e1937b41bfadea9b05c4c9cf529b55f6b2e7800349bb91e7744e4b664

Contents?: true

Size: 1.03 KB

Versions: 11

Compression:

Stored size: 1.03 KB

Contents

require 'tmpdir'
require 'fileutils'

module Gitlab
  module QA
    module Scenario
      module Test
        module Omnibus
          class Update < Scenario::Template
            def perform(from_release, to_release = nil, *rspec_args)
              previous_release = QA::Release.new(from_release).previous_stable
              current_release = QA::Release.new(to_release || from_release)

              Docker::Volumes.new.with_temporary_volumes do |volumes|
                Component::Gitlab.perform do |gitlab|
                  gitlab.release = previous_release
                  gitlab.volumes = volumes
                  gitlab.network = 'test'
                  gitlab.seed_admin_token = false
                  gitlab.launch_and_teardown_instance
                end

                Scenario::Test::Instance::Image
                  .perform(current_release, *rspec_args) do |scenario|
                  scenario.volumes = volumes
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
gitlab-qa-7.34.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.33.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.32.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.31.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.30.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.29.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.29.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.27.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.27.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.27.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.26.0 lib/gitlab/qa/scenario/test/omnibus/update.rb