File tree Expand file tree Collapse file tree 8 files changed +26
-4
lines changed Expand file tree Collapse file tree 8 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -38,5 +38,6 @@ load 'utils/_helpers'
38
38
assert_equal " $SC " 200
39
39
assert_equal " $( get_json_path " $BODY " ' .data.name' ) " " test_bind"
40
40
assert_equal " 1/all" " $( get_json_path " $BODY " " .data.thread" ) "
41
+ assert_equal " $( get_json_path " $BODY " ' .data.ca_verify_file' ) " " /certs/ca-verify.pem"
41
42
fi
42
43
}
Original file line number Diff line number Diff line change @@ -34,5 +34,6 @@ load 'utils/_helpers'
34
34
assert_equal " $SC " 200
35
35
assert_equal " $( get_json_path " $BODY " ' .data.name' ) " " test_bind"
36
36
assert_equal " $( get_json_path " $BODY " " .data.no_alpn" ) " " true"
37
+ assert_equal " $( get_json_path " $BODY " ' .data.ca_verify_file' ) " " /certs/ca-verify.pem"
37
38
fi
38
39
}
Original file line number Diff line number Diff line change
1
+ -----BEGIN CERTIFICATE-----
2
+ MIICsjCCAZqgAwIBAgICEAEwDQYJKoZIhvcNAQELBQAwEzERMA8GA1UEAwwISW50
3
+ ZXJtMS4wHhcNMjAxMTI1MTIxMjA0WhcNMjExMTI1MTIxMjA0WjATMREwDwYDVQQD
4
+ DAhJbnRlcm0yLjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKto0lJW
5
+ e+0+6u/gxG3NNfoqHWAMiDm+Ogcv1aIUTxTK8CO6dlwLTAMDg47wXgZSE+fpwtJf
6
+ OCV9uwUvoVrdBazPil13KTQKHkN3jV6TnrU92gJpb1uBCQwQQXvCaQeUrMNPC7h3
7
+ lYaxAODH62B5Pl2PY/DXdaKNbsN0chOZmNl87FgtXH4/ITOqqHY/vLW4ikYbADHi
8
+ HLZOXFFV6VK6tNm5NgbKpDeUG5I5mjilZSfxnHHJAFIrIy19wK+wyPr9X+Eyph7Z
9
+ slYDDZ/+RRIEp3tNlaac+g+uv1CJZWdRcTb+q/fAMd/emL0ofg3XKRNtSwfDuDNh
10
+ z7i68VKL/6Xtd3cCAwEAAaMQMA4wDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQsF
11
+ AAOCAQEAYUwKKDKMG0ZwUJwJuqXZfCrf+95t9aeb+ALcFw7gABrdSFY9VmDQj2wW
12
+ wl1afkV0jAREEnOtHJ0wioAhD86TUMoj99+UMEtp/r9QPH1XMClnCS0kp1M9ogCu
13
+ PlqFamJlKhIa3xvvKSamU6G7qlbVzi2y7x/SBhK/U/FDo4bElgwG6WVXsluOQ6fT
14
+ uUAJTqNfWcSdw2ntIGbwlbg1sco3a2JENB/5tyTSIWlwwUo6d+s2W3ZcNePWAPdr
15
+ gEAVV1yOWsb1OVse2NRye5lH3cc+x0O1XYzWiC6G3GWYUmoPhl50fsidrd6WQIt5
16
+ +6MXQJQW+CgBnPiCdSfN58mxv49xJQ==
17
+ -----END CERTIFICATE-----
Original file line number Diff line number Diff line change @@ -28,6 +28,6 @@ defaults
28
28
frontend test_frontend
29
29
mode tcp
30
30
maxconn 1000
31
- bind localhost:9000 name fixture
31
+ bind localhost:9000 name fixture ca-verify-file
32
32
bind localhost:9090 name loopback
33
33
option httpclose
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ defaults
28
28
frontend test_frontend
29
29
mode tcp
30
30
maxconn 1000
31
- bind localhost:9000 name fixture thread all
31
+ bind localhost:9000 name fixture thread all ca-verify-file /certs/ca-verify.pem
32
32
bind localhost:9090 name loopback thread 1 /1
33
33
bind localhost:9091 name loopback1 thread 1 /1 -1
34
34
option httpclose
Original file line number Diff line number Diff line change 4
4
"port" : 10000 ,
5
5
"defer_accept" : true ,
6
6
"allow_0rtt" : true ,
7
- "thread" : " 1/all"
7
+ "thread" : " 1/all" ,
8
+ "ca_verify_file" : " /certs/ca-verify.pem"
8
9
}
Original file line number Diff line number Diff line change 5
5
"defer_accept" : true ,
6
6
"allow_0rtt" : true ,
7
7
"thread" : " 1/all" ,
8
- "no_alpn" : true
8
+ "no_alpn" : true ,
9
+ "ca_verify_file" : " /certs/ca-verify.pem"
9
10
}
Original file line number Diff line number Diff line change @@ -31,5 +31,6 @@ load 'utils/_helpers'
31
31
if haproxy_version_ge " 2.5"
32
32
then
33
33
assert_equal " all" " $( get_json_path " $BODY " " .data.thread" ) "
34
+ assert_equal " $( get_json_path " $BODY " ' .data.ca_verify_file' ) " " /certs/ca-verify.pem"
34
35
fi
35
36
}
You can’t perform that action at this time.
0 commit comments