-
-
Notifications
You must be signed in to change notification settings - Fork 52
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
File resource is trying to load Windows provider on a non-Windows computer #68
Comments
glennsarti
added a commit
to glennsarti/puppetlabs-puppet_agent
that referenced
this issue
Feb 26, 2018
Previously many tests in classes/puppet_agent_spec.rb were not running on Windows due to a bug in rspec-puppet-facts. However in v1.9.0 of the gem it now adds better windows support, but the puppet_agent_spec.rb began running tests for Windows which then failed. This commit modifies the test fixtures and logic to only test things which make sense on Windows. Also voxpupuli/rspec-puppet-facts#68 meant that the order of the testing had to be determinstic, ensuring that Windows platforms were tested last.
glennsarti
added a commit
to glennsarti/puppetlabs-puppet_agent
that referenced
this issue
Feb 26, 2018
Previously many tests in classes/puppet_agent_spec.rb were not running on Windows due to a bug in rspec-puppet-facts. However in v1.9.0 of the gem it now adds better windows support, but the puppet_agent_spec.rb began running tests for Windows which then failed. This commit modifies the test fixtures and logic to only test things which make sense on Windows. Also voxpupuli/rspec-puppet-facts#68 meant that the order of the testing had to be determinstic, ensuring that Windows platforms were tested last.
@glennsarti is this still an issue or was it fixed by MODULES-6686 ? |
Wasn't really fixed MODULES-6686. It just added a bunch of guards. In particular, there's still a workaround in place for this issue |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
With v1.9.0 having better Windows support, it has exposed a possible issue with loading providers.
In the puppet_agent module, running https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/spec/classes/puppet_agent_spec.rb with v 1.8.0 of rspec-puppet-facts gem, they pass correctly.
When I run with v1.9.0 I get errrors such as;
Note that it's trying to load the Windows File resource provider.
So what I did was run ONLY ubuntu-16.04-x86_64 tests and they pass. If the Windows tests run prior they fail with error above.
It appears that the first invocation is determining the default provider.
To test this I changed:
https://github.com/puppetlabs/puppetlabs-puppet_agent/blob/master/spec/classes/puppet_agent_spec.rb#L75
to (ubuntu only)
to (windows -> windows -> ubuntu)
Environment:
Docker on Windows
Linux bdf55e700bbe 4.9.60-linuxkit-aufs #1 SMP Mon Nov 6 16:00:12 UTC 2017 x86_64 GNU/Linux
Puppet facts
The text was updated successfully, but these errors were encountered: