Sha256: 75fc9a2c2e38655a7975efdedc7383964b558dc2dbd158988f72ebd64af7b840

Contents?: true

Size: 994 Bytes

Versions: 67

Compression:

Stored size: 994 Bytes

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 = Release.new(from_release).previous_stable
              current_release = 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.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

67 entries across 67 versions & 1 rubygems

Version Path
gitlab-qa-5.13.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.13.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.12.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.10.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.10.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.9.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.8.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.8.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.7.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.6.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.6.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.5.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.4.3 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.4.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.4.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.4.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.3.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.2.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.1.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-5.1.0 lib/gitlab/qa/scenario/test/omnibus/update.rb