Skip to content

Commit

Permalink
(maint) apache unit test failure
Browse files Browse the repository at this point in the history
I'm making an educated guess that the error log message for puppet 4.7.1 is formatted in a different way from 4.10.4. the end part of the message, "got 'foo'", may not be present in 4.7.1 or is in a different location. this change still captures the important part of the message while allowing tests to pass.
  • Loading branch information
eputnam committed Aug 31, 2017
1 parent 0b083c0 commit c716a00
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/classes/apache_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -636,7 +636,7 @@
it "should fail" do
expect do
catalogue
end.to raise_error(Puppet::PreformattedError, /Evaluation Error: Error while evaluating a Resource Statement, Class\[Apache\]: parameter 'sendfile' expects a match for Enum\['Off', 'On', 'off', 'on'\], got 'foo'/)
end.to raise_error(Puppet::PreformattedError, /Evaluation Error: Error while evaluating a Resource Statement, Class\[Apache\]: parameter 'sendfile' expects a match for Enum\['Off', 'On', 'off', 'on'\]/)
end
end
context "On" do
Expand Down

0 comments on commit c716a00

Please sign in to comment.