Sha256: 6aa03a764f67352cff12e667f9caced06847f2aaf39d1c2b31f0580be2df759f

Contents?: true

Size: 664 Bytes

Versions: 30

Compression:

Stored size: 664 Bytes

Contents

require 'git_utils'
require 'r10k_utils'
require 'master_manipulator'
test_name 'CODEMGMT-90 - C63461 - Specify Invalid Command-line Deployment Flag'

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

#Verification
error_message_regex = /deploy: illegal option/

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

#Tests
step 'Attempt to Deploy via r10k'
on(master, "#{r10k_fqp} deploy -w environment -v", :acceptable_exit_codes => 1) do |result|
  assert_match(error_message_regex, result.stderr, 'Expected message not found!')
end

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
r10k-2.5.0 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.4.3 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.4.1 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.4.0 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.3.0 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.2.2 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.2.1 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.2.0 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.1.1 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb
r10k-2.1.0 integration/tests/command_line/negative/neg_invalid_cli_dep_flag.rb