|
705 | 705 | include_examples("an encrypted client connection") |
706 | 706 | end |
707 | 707 |
|
708 | | - context "With the 'ssl_enabled' option" do |
709 | | - let(:options) { {"ssl_enabled" => true}} |
710 | | - |
711 | | - include_examples("an encrypted client connection") |
712 | | - end |
713 | | - |
714 | 708 | context "With an https host" do |
715 | 709 | let(:options) { {"hosts" => "https://localhost"} } |
716 | 710 | include_examples("an encrypted client connection") |
|
731 | 725 | File.delete(cacert) |
732 | 726 | end |
733 | 727 |
|
734 | | - it 'should map new configs into params' do |
| 728 | + it "should map new configs into params" do |
735 | 729 | expect(subject.params).to match hash_including( |
736 | 730 | "ssl_enabled" => true, |
737 | 731 | "ssl_verification_mode" => "none", |
738 | 732 | "ssl_certificate_authorities" => [cacert] |
739 | 733 | ) |
740 | 734 | end |
741 | 735 |
|
742 | | - it 'should set new configs variables' do |
| 736 | + it "should set new configs variables" do |
743 | 737 | expect(subject.instance_variable_get(:@ssl_enabled)).to eql(true) |
744 | 738 | expect(subject.instance_variable_get(:@ssl_verification_mode)).to eql("none") |
745 | 739 | expect(subject.instance_variable_get(:@ssl_certificate_authorities)).to eql([cacert]) |
|
769 | 763 | File.delete(truststore) |
770 | 764 | end |
771 | 765 |
|
772 | | - it 'should map new configs into params' do |
| 766 | + it "should map new configs into params" do |
773 | 767 | expect(subject.params).to match hash_including( |
774 | 768 | "ssl_enabled" => true, |
775 | 769 | "ssl_keystore_path" => keystore, |
|
781 | 775 | expect(subject.params["ssl_truststore_password"].value).to eql("truststore") |
782 | 776 | end |
783 | 777 |
|
784 | | - it 'should set new configs variables' do |
| 778 | + it "should set new configs variables" do |
785 | 779 | expect(subject.instance_variable_get(:@ssl_enabled)).to eql(true) |
786 | 780 | expect(subject.instance_variable_get(:@ssl_keystore_path)).to eql(keystore) |
787 | 781 | expect(subject.instance_variable_get(:@ssl_keystore_password).value).to eql("keystore") |
|
0 commit comments