New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need help with testing registry entries #389
Comments
@dandunckelman I think that the wsus_client may have some tests that use registry and do verification with rspec-puppet. |
@dandunckelman Also, you may consider joining the slack community - https://slack.puppet.com (We have a #windows channel!) |
Here are the specs for wsus that check registry items - https://github.com/puppetlabs/puppetlabs-wsus_client/blob/master/spec/classes/init_spec.rb |
@ferventcoder thanks for finding that spec for me (I probably should've dug around the other windows-related modules). I'll jump on slack ASAP (thx for the tip). Unfortunately, my failure occurs when ensuring the require relationship:
and the tests in the wsus_client module doesn't check for those relationships. I'll dig thru the other Windows modules to see if I can find a match for my failure. Thanks |
Could be a limitation in rspec-puppet not dealing well with backslashes. |
@DavidS ^^ |
Hi @dandunckelman , I've tried to reproduce the error you're seeing with your code, the current registry module's master, the current rspec-puppet master, and puppet 4.4.1, and failed. Can you specify more details on your environment? |
@DavidS thanks. I'm glad to hear it works as expected in the latest/greatest. Here's more info about my environment:
Please let me know if you'd like any other info. Thanks |
I wonder if I have hit the same issue. I have the following test.
The above test produces the following error.
|
I'm struggling to get testing to work w/ the https://github.com/puppetlabs/puppetlabs-registry module.
I have a manifest that helps setup Chrome as the default browser on Windows 2012, which contains this:
And a test like this:
which results in this failure:
The line number, 41, is referring to
I've also tried these:
And both give errors like this:
Unfortunately, I must have the backslashes in the manifest, otherwise it won't work when applied on a node. So this issue is isolated to the test of this particular module (as far as I can tell).
Any help is greatly appreciated. Thanks
The text was updated successfully, but these errors were encountered: