rodjek / rspec-puppet

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

allow regex for sensitive values #817

Open jduepmeier opened 4 years ago

jduepmeier commented 4 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?