nixosTests.nginx-modsecurity: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-03-29 23:52:25 +01:00
parent af2b019d25
commit 9a3d7473c4
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 46 additions and 48 deletions

View file

@ -804,7 +804,7 @@ in {
nginx-globalredirect = runTest ./nginx-globalredirect.nix; nginx-globalredirect = runTest ./nginx-globalredirect.nix;
nginx-http3 = handleTest ./nginx-http3.nix {}; nginx-http3 = handleTest ./nginx-http3.nix {};
nginx-mime = runTest ./nginx-mime.nix; nginx-mime = runTest ./nginx-mime.nix;
nginx-modsecurity = handleTest ./nginx-modsecurity.nix {}; nginx-modsecurity = runTest ./nginx-modsecurity.nix;
nginx-moreheaders = handleTest ./nginx-moreheaders.nix {}; nginx-moreheaders = handleTest ./nginx-moreheaders.nix {};
nginx-njs = handleTest ./nginx-njs.nix {}; nginx-njs = handleTest ./nginx-njs.nix {};
nginx-proxyprotocol = handleTest ./nginx-proxyprotocol {}; nginx-proxyprotocol = handleTest ./nginx-proxyprotocol {};

View file

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { ... }:
{ pkgs, lib, ... }: {
{
name = "nginx-modsecurity"; name = "nginx-modsecurity";
nodes.machine = nodes.machine =
@ -47,5 +46,4 @@ import ./make-test-python.nix (
machine.fail("curl -fvvv -X HEAD -s http://127.0.0.1/") machine.fail("curl -fvvv -X HEAD -s http://127.0.0.1/")
machine.fail("curl -fvvv -s http://127.0.0.1/secret.html") machine.fail("curl -fvvv -s http://127.0.0.1/secret.html")
''; '';
} }
)