We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6927735 + b0eaff9 commit 3576c2eCopy full SHA for 3576c2e
docs/_includes/catalogue_matchers.md
@@ -126,6 +126,12 @@ undefined parameters at once by chaining the `without` method to the
126
it { is_expected.to contain_service('apache').without(['restart', 'status']) }
127
{% endhighlight %}
128
129
+It can be tested that a Sensitive value of resource parameter passed to template is present as expected.
130
+
131
+{% highlight ruby %}
132
+it { is_expected.to contain_file('/etc/mysecret.conf').with_content(sensitive(%r{^Token==MySecretTokenValue$})) }
133
+{% endhighlight %}
134
135
### Test resource parameter values for uniqueness
136
137
Use the `have_unique_values_for_all` matcher to test a specific resource parameter
0 commit comments