Skip to content

Commit

Permalink
Revert "(MODULES-2506) Fix Failing Tests"
Browse files Browse the repository at this point in the history
This reverts commit 8f5b737.

This should now properly validate that WaitFor* resources are missing
  • Loading branch information
Iristyle committed Oct 19, 2015
1 parent fb69742 commit 5a3fce1
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 5a3fce1

Please sign in to comment.