From 5f03dd7a06ff740346d51d3caf9910f8069d2593 Mon Sep 17 00:00:00 2001 From: Savio Resende Date: Sat, 5 Oct 2024 09:59:25 -0500 Subject: [PATCH] Adjustment for tests. --- tests/Sample/config/jacked-server-http.php | 4 ++++ tests/Sample/config/jacked-server.php | 4 ++++ tests/Sample/ws-auth/jacked-server-with-ws-auth-2.php | 4 ++++ tests/Sample/ws-auth/jacked-server-with-ws-auth.php | 4 ++++ 4 files changed, 16 insertions(+) diff --git a/tests/Sample/config/jacked-server-http.php b/tests/Sample/config/jacked-server-http.php index 43023d6..f9a8c5c 100644 --- a/tests/Sample/config/jacked-server-http.php +++ b/tests/Sample/config/jacked-server-http.php @@ -53,6 +53,10 @@ // @phpstan-ignore-next-line // 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid', + + 'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true', + 'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1), + 'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true', ], // ------------------------------------------------------------ diff --git a/tests/Sample/config/jacked-server.php b/tests/Sample/config/jacked-server.php index 8001e6f..8f8c629 100644 --- a/tests/Sample/config/jacked-server.php +++ b/tests/Sample/config/jacked-server.php @@ -53,6 +53,10 @@ // @phpstan-ignore-next-line // 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid', + + 'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true', + 'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1), + 'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true', ], // ------------------------------------------------------------ diff --git a/tests/Sample/ws-auth/jacked-server-with-ws-auth-2.php b/tests/Sample/ws-auth/jacked-server-with-ws-auth-2.php index b879b34..7288417 100644 --- a/tests/Sample/ws-auth/jacked-server-with-ws-auth-2.php +++ b/tests/Sample/ws-auth/jacked-server-with-ws-auth-2.php @@ -53,6 +53,10 @@ // @phpstan-ignore-next-line // 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid', + + 'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true', + 'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1), + 'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true', ], 'conveyor-options' => [ 'websocket-auth-token' => $_ENV['JACKED_SERVER_WEBSOCKET_AUTH_TOKEN'] ?? null, diff --git a/tests/Sample/ws-auth/jacked-server-with-ws-auth.php b/tests/Sample/ws-auth/jacked-server-with-ws-auth.php index 920ce5e..2f29d0a 100644 --- a/tests/Sample/ws-auth/jacked-server-with-ws-auth.php +++ b/tests/Sample/ws-auth/jacked-server-with-ws-auth.php @@ -53,6 +53,10 @@ // @phpstan-ignore-next-line // 'pid_file' => $_ENV['JACKED_SERVER_PID_FILE'] ?? ROOT_DIR . '/jacked-server.pid', + + 'http_compression' => ($_ENV['JACKED_SERVER_HTTP_COMPRESSION'] ?? 'true') === 'true', + 'http_compression_level' => (int) ($_ENV['JACKED_SERVER_HTTP_COMPRESSION_LEVEL'] ?? 1), + 'http_parse_cookie' => ($_ENV['JACKED_SERVER_HTTP_PARSE_COOKIE'] ?? 'true') === 'true', ], 'conveyor-options' => [ 'websocket-auth-token' => $_ENV['JACKED_SERVER_WEBSOCKET_AUTH_TOKEN'] ?? null,