Sha256: 63d34142d06091e4715687538899cc02d21f5c078412f8f75755203e7d0e38ce

Contents?: true

Size: 671 Bytes

Versions: 5

Compression:

Stored size: 671 Bytes

Contents

require 'git_utils'
require 'r10k_utils'
require 'master_manipulator'
test_name 'CODEMGMT-90 - C62420 - Invalid Command Line Argument'

#Init
git_environments_path = '/root/environments'
last_commit = git_last_commit(master, git_environments_path)

#Verification
error_message_regex = /error/

#Teardown
teardown do
  clean_up_r10k(master, last_commit, git_environments_path)
end

#Tests
step 'Attempt to Deploy via r10k'
on(master, 'r10k deploy environment NONEXISTENTENV -v', :acceptable_exit_codes => [0, 1, 2]) do |result|
  expect_failure('expected to fail due to RK-21') do
    assert_match(/error/, result.stderr.downcase, 'Expected message not found!')
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
r10k-2.0.3 integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb
r10k-2.0.2 integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb
r10k-2.0.1 integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb
r10k-2.0.0 integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb
r10k-1.5.1 integration/tests/command_line/negative/neg_invalid_cmd_line_arg.rb