From c72007809dfbc04920fc2c489b49636ac296ee70 Mon Sep 17 00:00:00 2001 From: Izorkin Date: Thu, 30 Mar 2023 22:46:17 +0300 Subject: [PATCH] nixos/tests/nginx: update nginx-http3 test --- nixos/tests/nginx-http3.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/tests/nginx-http3.nix b/nixos/tests/nginx-http3.nix index 319f6aac184a..f003130b46f5 100644 --- a/nixos/tests/nginx-http3.nix +++ b/nixos/tests/nginx-http3.nix @@ -36,8 +36,10 @@ in sslCertificateKey = ./common/acme/server/acme.test.key.pem; http2 = true; http3 = true; + http3_hq = false; + quic = true; reuseport = true; - root = lib.mkForce (pkgs.runCommandLocal "testdir2" {} '' + root = lib.mkForce (pkgs.runCommandLocal "testdir" {} '' mkdir "$out" cat > "$out/index.html" <Hello World! @@ -82,6 +84,8 @@ in # Check header reading client.succeed("curl --verbose --http3 --head https://acme.test | grep 'content-type'") + client.succeed("curl --verbose --http3 --head https://acme.test | grep 'HTTP/3 200'") + client.succeed("curl --verbose --http3 --head https://acme.test/error | grep 'HTTP/3 404'") # Check change User-Agent client.succeed("curl --verbose --http3 --user-agent 'Curl test 3.0' https://acme.test")