Skip to content
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

Windows path for source causes bad URI errors #750

Open
treydock opened this issue May 11, 2019 · 4 comments
Open

Windows path for source causes bad URI errors #750

treydock opened this issue May 11, 2019 · 4 comments
Labels

Comments

@treydock
Copy link
Contributor

It seems that passing in a file source of something like C:\ca.pem will fail but only fails with it { is_expected.to compile }, the actual test of the file resource have no issue.

Source: https://github.com/treydock/sensu-puppet/blob/master/spec/classes/ssl_spec.rb

For now that spec skips compile test for Windows to avoid failures that aren't really failures.

Error:

1) sensu::ssl on windows-2008 R2-x86_64 with default values for all parameters should compile into a catalogue without dependency cycles
     Failure/Error: it { should compile }
       error during compilation: Parameter source failed on File[sensu_ssl_ca]: Failed to convert 'C:\ProgramData\ca.crt' to URI: bad component(expected absolute path component): C:%5CProgramData%5Cca.crt (file: /home/treydock/git/sensu-puppet/spec/fixtures/modules/sensu/manifests/ssl.pp, line: 26)
     # ./spec/classes/ssl_spec.rb:11:in `block (5 levels) in <top (required)>

This is with rspec-puppet 2.7.3

@nick-markowski
Copy link

Hey @rodjek I'm having this issue with 2.7.8. Any chance it could be evaluated?

@ronca71
Copy link

ronca71 commented Dec 14, 2020

the same here with 2.8.0

@benjamin-robertson
Copy link

benjamin-robertson commented Jun 2, 2021

Still have this issue with version 2.8.0 and 2.9.0 and all 2.7.* versions.

If I revert back to 2.6.15 the issue is fixed. It appears to have been reintroduced into 2.7.*

@rnelson0
Copy link

Still experiencing this with version 2.11.1 from PDK version 2.4.0

error during compilation: Parameter source failed on File[SQLAgentSupportFolder]: Failed to convert 'C:\puppet_enforced\sql\scripts\sqlserver' to URI: bad component(expected absolute path component):

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

6 participants