Update unit test to support Sensitive data type
authorScott Brimhall <36291478+suchpuppet@users.noreply.github.com>
Wed, 18 Nov 2020 16:27:41 +0000 (10:27 -0600)
committerGitHub <noreply@github.com>
Wed, 18 Nov 2020 16:27:41 +0000 (10:27 -0600)
spec/classes/apt_spec.rb

index 84c65745bd19d81f78154cde5ba5dbf33d2cd4f9..03ca86f52f6c3d4e7f974531907829d48269c230 100644 (file)
@@ -365,7 +365,7 @@ machine apt.example.com login aptlogin password supersecret
                                                                    group: 'root',
                                                                    mode: '0600',
                                                                    notify: 'Class[Apt::Update]',
-                                                                   content: auth_conf_content)
+                                                                   content: sensitive(auth_conf_content))
           }
         end