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

Remove clientX facts from solaris factsets #167

Merged
merged 1 commit into from
Feb 5, 2021

Conversation

alexjfisher
Copy link
Member

@alexjfisher alexjfisher commented Feb 5, 2021

These are facts normally set by the puppet agent.
https://puppet.com/docs/puppet/5.5/lang_facts_and_builtin_vars.html#puppet-agent-facts

clientversion, clientcert have dedicated handling in rspec-puppet to
set them correctly.
https://github.com/rodjek/rspec-puppet/blob/f2e05f4a480a0d859121f5cab2dc5a70eb82d10a/lib/rspec-puppet/support.rb#L245

I found that the hardcoded values leads to a mismatch between the
puppet version being tested and the value of clientversion.

Specifically, it caused testing a module using concat with Puppet 5 to
explode here
(Deferred is not a valid type until Puppet 6).

These facts are not present in any other fact files.

These are facts normally set by the puppet agent.
https://puppet.com/docs/puppet/5.5/lang_facts_and_builtin_vars.html#puppet-agent-facts

`clientversion`, `clientcert` have dedicated handling in rspec-puppet to
set them correctly.
https://github.com/rodjek/rspec-puppet/blob/f2e05f4a480a0d859121f5cab2dc5a70eb82d10a/lib/rspec-puppet/support.rb#L245

I found that the hardcoded values leads to a mismatch between the
puppet version being tested and the value of `clientversion`.

Specifically, it caused testing a module using concat with Puppet 5 to
explode [here](https://github.com/puppetlabs/puppetlabs-concat/blob/b98de457a364908417b454f906a3ad5224bb04b9/manifests/fragment.pp#L47)
(`Deferred` is not a valid type until Puppet 6).
@mcanevet mcanevet merged commit 1442bc4 into voxpupuli:master Feb 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants