Sha256: 03649cc852da6b2a6398adf6ba3291481022eb13563e006ddb688c2eecf14969
Contents?: true
Size: 822 Bytes
Versions: 5
Compression:
Stored size: 822 Bytes
Contents
require 'git_utils' require 'r10k_utils' require 'master_manipulator' test_name 'CODEMGMT-84 - C59270 - Attempt to Deploy with Missing r10k Configuration File' #Init r10k_config_path = get_r10k_config_file_path(master) r10k_config_bak_path = "#{r10k_config_path}.bak" #Verification error_message_regex = /Error while running.*R10K\:\:Deployment.*No configuration file given/ #Teardown teardown do step 'Restore Original "r10k" Config' on(master, "mv #{r10k_config_bak_path} #{r10k_config_path}") end #Setup step 'Backup Current "r10k" Config' on(master, "mv #{r10k_config_path} #{r10k_config_bak_path}") #Tests step 'Attempt to Deploy via r10k' on(master, 'r10k deploy environment -v', :acceptable_exit_codes => 1) do |result| assert_match(error_message_regex, result.stderr, 'Expected message not found!') end
Version data entries
5 entries across 5 versions & 1 rubygems