Sha256: 4c504aa34967e198d23c1e58d5848c287b1ea256c689855110afa580b1d2fa66
Contents?: true
Size: 1.38 KB
Versions: 9
Compression:
Stored size: 1.38 KB
Contents
module Gitlab module QA module Scenario module Test module Instance ## # Base class to be used to define deployment environment scenarios # class DeploymentBase < Scenario::Template def initialize @suite = 'Test::Instance::All' end def perform(release_name = nil, *args) # EE_LICENSE variable should be unset otherwise the existing license may be accidentially replaced Runtime::Env.require_no_license! release = if release_name.nil? || release_name.start_with?('--') deployment_component.release else Release.new(release_name) end args.unshift(release_name) if release_name&.start_with?('--') Component::Specs.perform do |specs| specs.suite = @suite specs.release = release specs.args = non_rspec_args.push(*args) end end def non_rspec_args [deployment_component::ADDRESS] end def deployment_component raise NotImplementedError, 'Please define the Component for the deployment environment associated with this scenario.' end end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems