File tree Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Expand file tree Collapse file tree 2 files changed +51
-0
lines changed Original file line number Diff line number Diff line change 285
285
286
286
it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{^ SSLProxyProtocol -ALL \+ TLSv1$} ) }
287
287
end
288
+
289
+ context 'setting ssl_honorcipherorder' do
290
+ context 'default value' do
291
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{^ SSLHonorCipherOrder On$} ) }
292
+ end
293
+
294
+ context 'force on' do
295
+ let :params do
296
+ {
297
+ ssl_honorcipherorder : true ,
298
+ }
299
+ end
300
+
301
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{^ SSLHonorCipherOrder On$} ) }
302
+ end
303
+
304
+ context 'force off' do
305
+ let :params do
306
+ {
307
+ ssl_honorcipherorder : false ,
308
+ }
309
+ end
310
+
311
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{^ SSLHonorCipherOrder Off$} ) }
312
+ end
313
+
314
+ context 'set on' do
315
+ let :params do
316
+ {
317
+ ssl_honorcipherorder : 'on' ,
318
+ }
319
+ end
320
+
321
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{^ SSLHonorCipherOrder On$} ) }
322
+ end
323
+
324
+ context 'set off' do
325
+ let :params do
326
+ {
327
+ ssl_honorcipherorder : 'off' ,
328
+ }
329
+ end
330
+
331
+ it { is_expected . to contain_file ( 'ssl.conf' ) . with_content ( %r{^ SSLHonorCipherOrder Off$} ) }
332
+ end
333
+ end
288
334
end
289
335
end
Original file line number Diff line number Diff line change 1048
1048
content : %r{^\s +SSLOpenSSLConfCmd\s +DHParameters "foo.pem"$} ,
1049
1049
)
1050
1050
}
1051
+ it {
1052
+ is_expected . to contain_concat__fragment ( 'rspec.example.com-ssl' ) . with (
1053
+ content : %r{^\s +SSLHonorCipherOrder\s +Off$} ,
1054
+ )
1055
+ }
1051
1056
it {
1052
1057
is_expected . to contain_concat__fragment ( 'rspec.example.com-ssl' ) . with (
1053
1058
content : %r{^\s +SSLUserName\s +SSL_CLIENT_S_DN_CN$} ,
You can’t perform that action at this time.
0 commit comments