rspec-puppet: compile matcher fails when checking classes targeting windows on posix.
We’re trying to use the compile matcher on all of our role classes. Our puppetmaster serves windows and linux nodes. each node definition has one role class assigned.
when trying to compile a windows role, on a ci linux or dev osx machine. there’s inevitably a File resource with a path of the form: C:\foo.txt rspec-puppet fails to compile the class because File paths must be fully qualified, not 'C:\foo.txt'
Any guidance on how to resolve this would be greatly appreciated.
for those interested I’ve created a sample project which illustrates the issue:
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Reactions: 1
- Comments: 22 (1 by maintainers)
Commits related to this issue
- Make Windows path work on fake Windows Added a hack to override Puppet's OS detection, based on the `kernel` fact, as set in the test. Normally Puppet assumes (in some places where it doesn't have ac... — committed to drrb/rspec-puppet-windows-issue by drrb 10 years ago
- Commented out test issue Due to `https://github.com/rodjek/rspec-puppet/issues/192` we need to remove one of the tests. — committed to beergeek/make_noop by deleted user 8 years ago
- test on windows but only a little bit https://github.com/rodjek/rspec-puppet/issues/192 — committed to GeoffWilliams/puppet-screen by GeoffWilliams 7 years ago
+1, same issue here.