Skip to content

Commit

Permalink
Merge pull request puppetlabs-toy-chest#117 from Iristyle/ticket/mast…
Browse files Browse the repository at this point in the history
…er/MODULES-2244-update-waitfor-tests

(MODULES-2244) Update acceptance tests

Tests passed!
  • Loading branch information
Ryan Gard committed Oct 20, 2015
2 parents fb69742 + 5a3fce1 commit c3f5ff8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
# Tests
agents.each do |agent|
step 'Attempt to Apply Manifest'
on(agent, puppet('apply'), :stdin => dsc_manifest, :acceptable_exit_codes => 0) do |result|
expect_failure('Expected to fail because of MODULES-2504') do
assert_match(error_msg, result.stderr, 'Expected error was not detected!')
end
on(agent, puppet('apply'), :stdin => dsc_manifest, :acceptable_exit_codes => 1) do |result|
assert_match(error_msg, result.stderr, 'Expected error was not detected!')
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
# Tests
agents.each do |agent|
step 'Attempt to Apply Manifest'
on(agent, puppet('apply'), :stdin => dsc_manifest, :acceptable_exit_codes => 0) do |result|
expect_failure('Expected to fail because of MODULES-2504') do
assert_match(error_msg, result.stderr, 'Expected error was not detected!')
end
on(agent, puppet('apply'), :stdin => dsc_manifest, :acceptable_exit_codes => 1) do |result|
assert_match(error_msg, result.stderr, 'Expected error was not detected!')
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
# Tests
agents.each do |agent|
step 'Attempt to Apply Manifest'
on(agent, puppet('apply'), :stdin => dsc_manifest, :acceptable_exit_codes => 0) do |result|
expect_failure('Expected to fail because of MODULES-2504') do
assert_match(error_msg, result.stderr, 'Expected error was not detected!')
end
on(agent, puppet('apply'), :stdin => dsc_manifest, :acceptable_exit_codes => 1) do |result|
assert_match(error_msg, result.stderr, 'Expected error was not detected!')
end
end

0 comments on commit c3f5ff8

Please sign in to comment.