summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authordheerajd-msys <dheeraj.dubey@msystechnologies.com>2018-12-06 11:56:30 +0530
committerdheerajd-msys <dheeraj.dubey@msystechnologies.com>2018-12-06 11:56:30 +0530
commitf273dd0734b2f87a4dcb43ab78e356f071abf142 (patch)
tree974595d637bd6db7b085692df9c00252b45d8153 /spec
parent2caee61cd53ae728846faa0d464b196b75d050b1 (diff)
downloadchef-f273dd0734b2f87a4dcb43ab78e356f071abf142.tar.gz
test case for special character in pfx_password
Signed-off-by: dheerajd-msys <dheeraj.dubey@msystechnologies.com>
Diffstat (limited to 'spec')
-rw-r--r--spec/unit/resource/windows_certificate.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/unit/resource/windows_certificate.rb b/spec/unit/resource/windows_certificate.rb
index 97e404a2d5..95d465e4a8 100644
--- a/spec/unit/resource/windows_certificate.rb
+++ b/spec/unit/resource/windows_certificate.rb
@@ -73,4 +73,11 @@ describe Chef::Resource::WindowsCertificate do
resource.pfx_password "foo"
expect(resource.sensitive).to be_truthy
end
+
+ it "doesn't raise error if pfx_password contains special characters" do
+ resource.pfx_password "chef$123"
+ resource.source "C:\\certs\\test-cert.pfx"
+ resource.store_name "MY"
+ expect { resource.action :create }.not_to raise_error
+ end
end