rodjek / rspec-puppet

RSpec tests for your Puppet manifests
http://rspec-puppet.com
MIT License
364 stars 203 forks source link

allow regex for sensitive values #817

Open jduepmeier opened 3 years ago

jduepmeier commented 3 years ago

I want to test a sensitive value with a regex pattern:

is_expected.to contain_file('/namevar').with({
  content: sensitive(%r{.+-blubb-.+}}),
})

Is it possible to allow this?