Sha256: d6add074458384fb36f6e6ecaf94d44513df3395d14853ebc276e91c8f5c8d1f
Contents?: true
Size: 968 Bytes
Versions: 10
Compression:
Stored size: 968 Bytes
Contents
require 'tmpdir' require 'fileutils' module Gitlab module QA module Scenario module Test module Omnibus class Upgrade < Scenario::Template def perform(image = 'CE', *rspec_args) ce_release = QA::Release.new(image) if ce_release.ee? raise ArgumentError, 'Only CE can be upgraded to EE!' end Docker::Volumes.new.with_temporary_volumes do |volumes| Scenario::Test::Instance::Image .perform(ce_release, *rspec_args) do |scenario| scenario.volumes = volumes end Scenario::Test::Instance::Image .perform(ce_release.to_ee, *rspec_args) do |scenario| scenario.volumes = volumes scenario.seed_admin_token = false end end end end end end end end end
Version data entries
10 entries across 10 versions & 1 rubygems