|
559 | 559 | title: 'should enable IPv6', |
560 | 560 | attr: 'ipv6_enable', |
561 | 561 | value: true, |
562 | | - match: ' listen [::]:587 default ipv6only=on;' |
| 562 | + match: ' listen [::]:587 ssl default ipv6only=on;' |
563 | 563 | }, |
564 | 564 | { |
565 | 565 | title: 'should not enable IPv6', |
|
571 | 571 | title: 'should set the IPv6 listen IP', |
572 | 572 | attr: 'ipv6_listen_ip', |
573 | 573 | value: '2001:0db8:85a3:0000:0000:8a2e:0370:7334', |
574 | | - match: ' listen [2001:0db8:85a3:0000:0000:8a2e:0370:7334]:587 default ipv6only=on;' |
| 574 | + match: ' listen [2001:0db8:85a3:0000:0000:8a2e:0370:7334]:587 ssl default ipv6only=on;' |
575 | 575 | }, |
576 | 576 | { |
577 | 577 | title: 'should set the IPv6 ssl port', |
578 | 578 | attr: 'ssl_port', |
579 | 579 | value: 45, |
580 | | - match: ' listen [::]:45 default ipv6only=on;' |
| 580 | + match: ' listen [::]:45 ssl default ipv6only=on;' |
581 | 581 | }, |
582 | 582 | { |
583 | 583 | title: 'should set the IPv6 listen options', |
584 | 584 | attr: 'ipv6_listen_options', |
585 | 585 | value: 'spdy', |
586 | | - match: ' listen [::]:587 spdy;' |
| 586 | + match: ' listen [::]:587 ssl spdy;' |
587 | 587 | }, |
588 | 588 | { |
589 | 589 | title: 'should set servername(s)', |
|
695 | 695 | content = catalogue.resource('concat::fragment', "#{title}-ssl").send(:parameters)[:content] |
696 | 696 | expect(content).to include('listen *:587 ssl;') |
697 | 697 | end |
| 698 | + |
| 699 | + it 'contains `ssl` in the listen directive for ipv6' do |
| 700 | + content = catalogue.resource('concat::fragment', "#{title}-ssl").send(:parameters)[:content] |
| 701 | + expect(content).to include('listen [::]:587 ssl default ipv6only=on;') |
| 702 | + end |
698 | 703 | end |
699 | 704 |
|
700 | 705 | context 'when version comes from parameter' do |
|
704 | 709 | content = catalogue.resource('concat::fragment', "#{title}-ssl").send(:parameters)[:content] |
705 | 710 | expect(content).to include('listen *:587 ssl;') |
706 | 711 | end |
| 712 | + |
| 713 | + it 'contains `ssl` in the listen directive for ipv6' do |
| 714 | + content = catalogue.resource('concat::fragment', "#{title}-ssl").send(:parameters)[:content] |
| 715 | + expect(content).to include('listen [::]:587 ssl default ipv6only=on;') |
| 716 | + end |
707 | 717 | end |
708 | 718 |
|
709 | 719 | context 'mail proxy parameters' do |
|
0 commit comments