The proposed change will update the behaviour of the template test_spec.rb.erb used to auto-generate class spec tests.
Conditions for setting :node:
To ensure onceover resolves trusted[certname] correctly when compiling a catalog, check for presence of the key trusted[certname] in the factset:
If present, assign the value to :node
If absent, default :node to the localhost FQDN (no change)
rspec-puppet - specifying trusted facts dictates "the standard trusted fact keys (certname, domain, and hostname) are derived from the value of
:node
".The proposed change will update the behaviour of the template
test_spec.rb.erb
used to auto-generate class spec tests.Conditions for setting
:node
: To ensure onceover resolves trusted[certname] correctly when compiling a catalog, check for presence of the keytrusted[certname]
in the factset::node
:node
to the localhost FQDN (no change)See https://github.com/puppetlabs/rspec-puppet#specifying-trusted-facts
Issues: Fixes #289.