Closed kyle-williams-1 closed 6 years ago
I may need a some time and/or help getting the tests to expect warning instead of an error.
Thanks for the contribution!
Try changing the following in spec/classes/init_spec.rb
raise_error(Puppet::Error
to
raise_error(Puppet::Warning
I'm not familiar with using warning()
though I bet some permutation of the above should work.
It looks like testing for warnings is a bit more complex. There is some discussion about this and an open issue.
https://github.com/rodjek/rspec-puppet/issues/108 https://github.com/rodjek/rspec-puppet/issues/310
I'm going to work on an alternative that doesn't test warnings. (possibly just removing the tests all together)
I'm not sure if I did this right. I'm very new to rspec.
@kyle-williams-1 could you please squash your commits and I'll be happy to merge.
@ghoneycutt Thanks. Hopefully that did it!
Released in v2.9.0
This module works on some non-supported operating systems. While I understand all OS cannot be support, it would be nice to not have a hard failure. Instead, I've updated the code to warn. This would be very helpful for those aging or even new systems that aren't supported yet.