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-4.7.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.7.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.6.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.5.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.4.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.3.3 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.3.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.2.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.2.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.2.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.1.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.0.5 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.0.4 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.0.3 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.0.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.0.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-4.0.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-3.3.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-3.2.3 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-3.2.2 lib/gitlab/qa/scenario/test/omnibus/update.rb