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.
1 parent b92e4d3 commit 198eec9Copy full SHA for 198eec9
spec/integration/application/apply_spec.rb
@@ -755,5 +755,19 @@ def bogus()
755
.and output(/Notify\[runs before file\]/).to_stdout
756
.and output(/Validation of File.* failed: You cannot specify more than one of content, source, target/).to_stderr
757
end
758
+
759
+ it "applies deferred sensitive file content" do
760
+ manifest = <<~END
761
+ file { '#{deferred_file}':
762
+ ensure => file,
763
+ content => Deferred('new', [Sensitive, "hello\n"])
764
+ }
765
+ END
766
+ apply.command_line.args = ['-e', manifest]
767
+ expect {
768
+ apply.run
769
+ }.to exit_with(0)
770
+ .and output(/ensure: changed \[redacted\] to \[redacted\]/).to_stdout
771
+ end
772
773
0 commit comments