|
483 | 483 | %r{ssl_listeners, \[3141\]} |
484 | 484 | ) |
485 | 485 | should contain_file('rabbitmq.config').with_content( |
486 | | - %r{ssl_options, \[\{cacertfile,"/path/to/cacert"} |
| 486 | + %r{ssl_options, \[} |
| 487 | + ) |
| 488 | + should contain_file('rabbitmq.config').with_content( |
| 489 | + %r{cacertfile,"/path/to/cacert"} |
487 | 490 | ) |
488 | 491 | should contain_file('rabbitmq.config').with_content( |
489 | 492 | %r{certfile,"/path/to/cert"} |
|
507 | 510 |
|
508 | 511 | it 'should set ssl options to specified values' do |
509 | 512 | should contain_file('rabbitmq.config').with_content(%r{ssl_listeners, \[\{"0.0.0.0", 3141\}\]}) |
510 | | - should contain_file('rabbitmq.config').with_content(%r{ssl_options, \[\{cacertfile,"/path/to/cacert"}) |
| 513 | + should contain_file('rabbitmq.config').with_content(%r{cacertfile,"/path/to/cacert"}) |
511 | 514 | should contain_file('rabbitmq.config').with_content(%r{certfile,"/path/to/cert"}) |
512 | 515 | should contain_file('rabbitmq.config').with_content(%r{keyfile,"/path/to/key}) |
513 | 516 | end |
|
528 | 531 | it 'should set ssl options to specified values' do |
529 | 532 | should contain_file('rabbitmq.config').with_content(%r{tcp_listeners, \[\]}) |
530 | 533 | should contain_file('rabbitmq.config').with_content(%r{ssl_listeners, \[3141\]}) |
531 | | - should contain_file('rabbitmq.config').with_content(%r{ssl_options, \[\{cacertfile,"/path/to/cacert"}) |
| 534 | + should contain_file('rabbitmq.config').with_content(%r{ssl_options, \[}) |
| 535 | + should contain_file('rabbitmq.config').with_content(%r{cacertfile,"/path/to/cacert"}) |
532 | 536 | should contain_file('rabbitmq.config').with_content(%r{certfile,"/path/to/cert"}) |
533 | 537 | should contain_file('rabbitmq.config').with_content(%r{keyfile,"/path/to/key}) |
534 | 538 | end |
|
548 | 552 | it 'should set ssl options to specified values' do |
549 | 553 | should contain_file('rabbitmq.config').with_content(%r{tcp_listeners, \[\]}) |
550 | 554 | should contain_file('rabbitmq.config').with_content(%r{ssl_listeners, \[\{"0.0.0.0", 3141\}\]}) |
551 | | - should contain_file('rabbitmq.config').with_content(%r{ssl_options, \[\{cacertfile,"/path/to/cacert"}) |
| 555 | + should contain_file('rabbitmq.config').with_content(%r{cacertfile,"/path/to/cacert"}) |
552 | 556 | should contain_file('rabbitmq.config').with_content(%r{certfile,"/path/to/cert"}) |
553 | 557 | should contain_file('rabbitmq.config').with_content(%r{keyfile,"/path/to/key}) |
554 | 558 | end |
|
566 | 570 |
|
567 | 571 | it 'should set ssl options to specified values' do |
568 | 572 | should contain_file('rabbitmq.config').with_content(%r{ssl_listeners, \[3141\]}) |
569 | | - should contain_file('rabbitmq.config').with_content(%r{ssl_options, \[\{cacertfile,"/path/to/cacert"}) |
| 573 | + should contain_file('rabbitmq.config').with_content(%r{ssl_options, \[}) |
| 574 | + should contain_file('rabbitmq.config').with_content(%r{cacertfile,"/path/to/cacert"}) |
570 | 575 | should contain_file('rabbitmq.config').with_content(%r{certfile,"/path/to/cert"}) |
571 | 576 | should contain_file('rabbitmq.config').with_content(%r{keyfile,"/path/to/key}) |
572 | 577 | should contain_file('rabbitmq.config').with_content(%r{ssl, \[\{versions, \['tlsv1.1', 'tlsv1.2'\]\}\]}) |
|
0 commit comments