Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Modify tests to fit renamed run_keytool_command

  • Loading branch information...
commit 05cd1180246f09d036628686c64ad70e1f37e6f3 1 parent 3e529fc
@reidmv reidmv authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 spec/unit/puppet/provider/java_ks/keytool_spec.rb
View
8 spec/unit/puppet/provider/java_ks/keytool_spec.rb
@@ -47,7 +47,7 @@
describe 'when importing a private key and certifcate' do
it 'should execute openssl and keytool with specific options' do
- provider.expects(:run_keystore_command).with do |*args|
+ provider.expects(:run_command).with do |*args|
args[0] == [
'myopenssl', 'pkcs12', '-export', '-passout', 'stdin',
'-in', resource[:certificate],
@@ -55,7 +55,7 @@
'-name', resource[:name]
]
end
- provider.expects(:run_keystore_command).with do |*args|
+ provider.expects(:run_command).with do |*args|
args[0] == [
'mykeytool', '-importkeystore', '-srcstoretype', 'PKCS12',
'-destkeystore', resource[:target],
@@ -76,7 +76,7 @@
it 'should call keytool with specific options if only certificate is provided' do
no_pk = resource.dup
no_pk.delete(:private_key)
- provider.expects(:run_keystore_command).with do |*args|
+ provider.expects(:run_command).with do |*args|
args[0] == [
'mykeytool', '-importcert', '-noprompt',
'-alias', no_pk[:name],
@@ -91,7 +91,7 @@
describe 'when removing entries from keytool' do
it 'should execute keytool with a specific set of options' do
- provider.expects(:run_keystore_command).with do |*args|
+ provider.expects(:run_command).with do |*args|
args[0] == [
'mykeytool', '-delete',
'-alias', resource[:name],
Please sign in to comment.
Something went wrong with that request. Please try again.