forked from rodjek/rspec-puppet
-
Notifications
You must be signed in to change notification settings - Fork 18
Open
Labels
Description
Describe the Bug
Testing trusted external data as described in https://github.com/puppetlabs/rspec-puppet/?tab=readme-ov-file#specifying-trusted-external-data doesn't work
Expected Behavior
It works :yay:
Steps to Reproduce
Steps to reproduce the behavior:
pdk new module foo --skip-interview && cd foopdk new function barsed -i 's,\$value \* 2,fail("Trusted external data is: ${trusted['external']}"),' functions/bar.ppsed -i 's,# with your expectations,let(:trusted_external_data) { {'foo' => 'bar'} },g' spec/functions/bar_spec.rbpdk test unit
=> See the output, grep for Trusted external data is: {}
Environment
- PDK Version:
3.3.0 - Puppet Version:
8.8.1 - rspec-puppet Version:
5.0.0 - OS Version:
MacOS 15.1.1
Additional Context
Add any other context about the problem here.