diff options
author | dheerajd-msys <dheeraj.dubey@msystechnologies.com> | 2018-12-06 11:56:30 +0530 |
---|---|---|
committer | Tim Smith <tsmith@chef.io> | 2018-12-19 17:15:40 -0800 |
commit | 5c440f248e22b41437da465d8876f7c139d81726 (patch) | |
tree | a4f8feac340339bcea8ae9b04cc5284d4ee780e4 /spec | |
parent | fcddc6f71e349ffee0eadefe009534b973a6a1e8 (diff) | |
download | chef-5c440f248e22b41437da465d8876f7c139d81726.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.rb | 7 |
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 |