Sha256: 60b55e83d6fb77543ed84bf8096d40c237627be37c72f7d84e409d3bbdfc261e

Contents?: true

Size: 875 Bytes

Versions: 12

Compression:

Stored size: 875 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)
              previous_release = Release.new(from_release).previous_stable
              current_release = Release.new(to_release || from_release)

              Docker::Volumes.new.with_temporary_volumes do |volumes|
                Scenario::Test::Instance::Image
                  .perform(previous_release) do |scenario|
                  scenario.volumes = volumes
                end

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
gitlab-qa-2.8.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.7.3 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.7.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.7.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.7.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.6.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.5.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.4.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.3.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.2.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.1.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.0.0 lib/gitlab/qa/scenario/test/omnibus/update.rb