Sha256: 8062db29ef98cb0a00b94628de761793081b276a22ba46e796b4b5e6eea58d9e

Contents?: true

Size: 968 Bytes

Versions: 6

Compression:

Stored size: 968 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|
                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) do |scenario|
                  scenario.volumes = volumes
                end
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
gitlab-qa-2.12.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.11.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.10.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.10.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.9.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-2.8.1 lib/gitlab/qa/scenario/test/omnibus/update.rb