nixosTests.proxyprotocol: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-03-30 03:22:00 +02:00
parent f021a4b13c
commit cfb69d81fa
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 146 additions and 148 deletions

View file

@ -807,7 +807,7 @@ in {
nginx-modsecurity = runTest ./nginx-modsecurity.nix; nginx-modsecurity = runTest ./nginx-modsecurity.nix;
nginx-moreheaders = runTest ./nginx-moreheaders.nix; nginx-moreheaders = runTest ./nginx-moreheaders.nix;
nginx-njs = handleTest ./nginx-njs.nix {}; nginx-njs = handleTest ./nginx-njs.nix {};
nginx-proxyprotocol = handleTest ./nginx-proxyprotocol {}; nginx-proxyprotocol = runTest ./nginx-proxyprotocol/default.nix;
nginx-pubhtml = handleTest ./nginx-pubhtml.nix {}; nginx-pubhtml = handleTest ./nginx-pubhtml.nix {};
nginx-redirectcode = handleTest ./nginx-redirectcode.nix {}; nginx-redirectcode = handleTest ./nginx-redirectcode.nix {};
nginx-sso = handleTest ./nginx-sso.nix {}; nginx-sso = handleTest ./nginx-sso.nix {};

View file

@ -1,7 +1,6 @@
let let
certs = import ./snakeoil-certs.nix; certs = import ./snakeoil-certs.nix;
in in
import ../make-test-python.nix (
{ pkgs, ... }: { pkgs, ... }:
{ {
name = "nginx-proxyprotocol"; name = "nginx-proxyprotocol";
@ -161,4 +160,3 @@ import ../make-test-python.nix (
# spoof("1.1.1.1", "127.0.0.4", "unsecure-nossl.test.nix", expect_failure=False) # spoof("1.1.1.1", "127.0.0.4", "unsecure-nossl.test.nix", expect_failure=False)
''; '';
} }
)