nixosTests.nginx-auth: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-03-29 23:47:25 +01:00
parent 389f2fb908
commit fa5141395f
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 45 additions and 47 deletions

View file

@ -798,7 +798,7 @@ in {
nfs4 = handleTest ./nfs { version = 4; }; nfs4 = handleTest ./nfs { version = 4; };
nghttpx = handleTest ./nghttpx.nix {}; nghttpx = handleTest ./nghttpx.nix {};
nginx = runTest ./nginx.nix; nginx = runTest ./nginx.nix;
nginx-auth = handleTest ./nginx-auth.nix {}; nginx-auth = runTest ./nginx-auth.nix;
nginx-etag = handleTest ./nginx-etag.nix {}; nginx-etag = handleTest ./nginx-etag.nix {};
nginx-etag-compression = handleTest ./nginx-etag-compression.nix {}; nginx-etag-compression = handleTest ./nginx-etag-compression.nix {};
nginx-globalredirect = handleTest ./nginx-globalredirect.nix {}; nginx-globalredirect = handleTest ./nginx-globalredirect.nix {};

View file

@ -1,6 +1,5 @@
import ./make-test-python.nix ( { pkgs, ... }:
{ pkgs, ... }: {
{
name = "nginx-auth"; name = "nginx-auth";
nodes = { nodes = {
@ -50,5 +49,4 @@ import ./make-test-python.nix (
"curl --fail --resolve lockedsubdir:80:127.0.0.1 http://bob:pwofb@lockedsubdir/sublocation/index.html" "curl --fail --resolve lockedsubdir:80:127.0.0.1 http://bob:pwofb@lockedsubdir/sublocation/index.html"
) )
''; '';
} }
)