Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: fix failing tests #80

Merged
merged 2 commits into from
Feb 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions t/001-tls.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ __DATA__
=== TEST 1: session reuse by session tickets without disable_session_reuse
--- http_config
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down Expand Up @@ -91,7 +92,9 @@ SSL reused session

=== TEST 2: session reuse by session cache without disable_session_reuse
--- http_config
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down Expand Up @@ -162,7 +165,9 @@ SSL reused session

=== TEST 3: disable_session_reuse can suppress usage of session tickets
--- http_config
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down Expand Up @@ -235,7 +240,9 @@ SSL reused session

=== TEST 4: disable_session_reuse can suppress usage of session cache
--- http_config
lua_ssl_protocols SSLV3 TLSv1 TLSv1.1 TLSv1.2;
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock ssl;
server_name example.com;
Expand Down
18 changes: 12 additions & 6 deletions t/003-grpc.t
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ __DATA__
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;

server_tokens off;
Expand Down Expand Up @@ -57,7 +58,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;

server_tokens off;
Expand Down Expand Up @@ -99,7 +101,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;

server_tokens off;
Expand Down Expand Up @@ -142,7 +145,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;

server_tokens off;
Expand Down Expand Up @@ -185,7 +189,8 @@ GET /t
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock http2;
listen unix:$TEST_NGINX_HTML_DIR/nginx.sock;
http2 on;
server_name example.com;

server_tokens off;
Expand Down Expand Up @@ -231,7 +236,8 @@ falseincorrect argument, expects a string, got number
lua_package_path "../lua-resty-core/lib/?.lua;lualib/?.lua;;";

server {
listen 127.0.0.1:12346 http2;
listen 127.0.0.1:12346;
http2 on;
server_name example.com;

server_tokens off;
Expand Down
Loading