File tree Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Expand file tree Collapse file tree 1 file changed +27
-2
lines changed Original file line number Diff line number Diff line change @@ -26,6 +26,18 @@ $ENV{TEST_NGINX_RESOLVER} ||= '8.8.8.8';
26
26
# no_shuffle();
27
27
no_long_string();
28
28
29
+ sub read_file {
30
+ my $infile = shift ;
31
+ open my $in , $infile
32
+ or die " cannot open $infile for reading: $! " ;
33
+ my $cert = do { local $/ ; <$in > };
34
+ close $in ;
35
+ $cert ;
36
+ }
37
+
38
+ our $TestCertificate = read_file(" t/cert/test.crt" );
39
+ our $TestCertificateKey = read_file(" t/cert/test.key" );
40
+
29
41
run_tests();
30
42
31
43
__DATA__
@@ -927,6 +939,12 @@ function go(port)
927
939
end
928
940
--- request
929
941
GET /t
942
+ --- stap2
943
+ F(ngx_close_connection) {
944
+ println("=== close connection")
945
+ print_ubacktrace()
946
+ }
947
+ --- stap_out2
930
948
--- response_body
931
949
done
932
950
--- wait: 0.5
958
976
--- http_config
959
977
server {
960
978
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
961
- ssl_certificate /tmp /test.crt;
962
- ssl_certificate_key /tmp /test.key;
979
+ ssl_certificate ../html /test.crt;
980
+ ssl_certificate_key ../html /test.key;
963
981
964
982
location /foo {
965
983
echo foo;
974
992
location = /t {
975
993
proxy_pass https://local/foo;
976
994
}
995
+
996
+ --- user_files eval
997
+ ">>> test.key
998
+ $::TestCertificateKey
999
+ >>> test.crt
1000
+ $::TestCertificate"
1001
+
977
1002
--- request
978
1003
GET /t
979
1004
You can’t perform that action at this time.
0 commit comments