Sha256: c217fac03078889d6a2aa15ea947b39e081c3a5cdd1b2ecfc73193171536e92f

Contents?: true

Size: 1002 Bytes

Versions: 116

Compression:

Stored size: 1002 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 = 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.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

116 entries across 116 versions & 1 rubygems

Version Path
gitlab-qa-7.25.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.25.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.6 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.5 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.4 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.3 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.2 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.24.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.23.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.23.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.22.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.22.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.21.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.21.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.20.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.19.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.18.1 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.18.0 lib/gitlab/qa/scenario/test/omnibus/update.rb
gitlab-qa-7.17.1 lib/gitlab/qa/scenario/test/omnibus/update.rb