|
152 | 152 | it 'executes openssl and keytool with specific options' do |
153 | 153 | expect(provider).to receive(:to_pkcs12).with("#{temp_dir}testing.stuff") |
154 | 154 | expect(provider).to receive(:run_command).with(['mykeytool', '-importkeystore', '-srcstoretype', 'PKCS12', '-destkeystore', |
155 | | - resource[:target], '-srckeystore', "#{temp_dir}testing.stuff", '-alias', resource[:name]], any_args) |
| 155 | + resource[:target], '-srckeystore', "#{temp_dir}testing.stuff", '-alias', |
| 156 | + resource[:name], '-deststoretype', :jceks], any_args) |
156 | 157 | provider.import_ks |
157 | 158 | end |
158 | 159 |
|
|
161 | 162 | dkp[:destkeypass] = 'keypass' |
162 | 163 | expect(provider).to receive(:to_pkcs12).with("#{temp_dir}testing.stuff") |
163 | 164 | expect(provider).to receive(:run_command).with(['mykeytool', '-importkeystore', '-srcstoretype', 'PKCS12', '-destkeystore', |
164 | | - dkp[:target], '-srckeystore', "#{temp_dir}testing.stuff", '-alias', dkp[:name], '-destkeypass', dkp[:destkeypass]], any_args) |
| 165 | + dkp[:target], '-srckeystore', "#{temp_dir}testing.stuff", '-alias', dkp[:name], |
| 166 | + '-destkeypass', dkp[:destkeypass], '-deststoretype', dkp[:storetype]], any_args) |
165 | 167 | provider.import_ks |
166 | 168 | end |
167 | 169 | end |
|
0 commit comments