File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6161 path => $trusted_ca::path ,
6262 logoutput => on_failure,
6363 unless => " echo '' | keytool -list -keystore ${java_keystore} | grep -i ${name} " ,
64- require => File [" /tmp/ ${name} -trustedca " ],
64+ require => File [$filename ],
6565 }
6666}
Original file line number Diff line number Diff line change 4747 with_command ( 'keytool -import -noprompt -trustcacerts -alias mycert -file /tmp/mycert-trustedca -keystore /etc/alternatives/jre_1.7.0/lib/security/cacerts -storepass changeit' )
4848 end
4949 end
50+
51+ context 'with filename' do
52+ let ( :local_params ) { { content : 'abc' , filename : '/path/to/file' } }
53+
54+ it { is_expected . to compile . with_all_deps }
55+ it { is_expected . to contain_exec ( 'import /path/to/file to jks /etc/alternatives/jre_1.7.0/lib/security/cacerts' ) . that_requires ( 'File[/path/to/file]' ) }
56+ end
5057 end
5158 end
5259 end
You can’t perform that action at this time.
0 commit comments