diff options
Diffstat (limited to 'nixpkgs/nixos/tests/nginx-http3.nix')
-rw-r--r-- | nixpkgs/nixos/tests/nginx-http3.nix | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/nixpkgs/nixos/tests/nginx-http3.nix b/nixpkgs/nixos/tests/nginx-http3.nix index 319f6aac184a..fc9f31037f98 100644 --- a/nixpkgs/nixos/tests/nginx-http3.nix +++ b/nixpkgs/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" <<EOF <html><body>Hello World!</body></html> @@ -74,17 +76,19 @@ in server.wait_for_open_port(443) # Check http connections - client.succeed("curl --verbose --http3 https://acme.test | grep 'Hello World!'") + client.succeed("curl --verbose --http3-only https://acme.test | grep 'Hello World!'") # Check downloadings - client.succeed("curl --verbose --http3 https://acme.test/example.txt --output /tmp/example.txt") + client.succeed("curl --verbose --http3-only https://acme.test/example.txt --output /tmp/example.txt") client.succeed("cat /tmp/example.txt | grep 'Check http3 protocol.'") # Check header reading - client.succeed("curl --verbose --http3 --head https://acme.test | grep 'content-type'") + client.succeed("curl --verbose --http3-only --head https://acme.test | grep 'content-type'") + client.succeed("curl --verbose --http3-only --head https://acme.test | grep 'HTTP/3 200'") + client.succeed("curl --verbose --http3-only --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") + client.succeed("curl --verbose --http3-only --user-agent 'Curl test 3.0' https://acme.test") server.succeed("cat /var/log/nginx/access.log | grep 'Curl test 3.0'") server.shutdown() |