0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-12 05:16:25 +03:00

nixosTests.nginx-unix-socket: migrate to runTest

Part of #386873
This commit is contained in:
Piotr Kwiecinski 2025-03-30 17:54:41 +02:00
parent 63785f0edb
commit 89e464c751
No known key found for this signature in database
GPG key ID: EC0DE1CB9D5258B4
2 changed files with 25 additions and 27 deletions

View file

@ -813,7 +813,7 @@ in {
nginx-sso = runTest ./nginx-sso.nix;
nginx-status-page = runTest ./nginx-status-page.nix;
nginx-tmpdir = runTest ./nginx-tmpdir.nix;
nginx-unix-socket = handleTest ./nginx-unix-socket.nix {};
nginx-unix-socket = runTest ./nginx-unix-socket.nix;
nginx-variants = handleTest ./nginx-variants.nix {};
nifi = runTestOn ["x86_64-linux"] ./web-apps/nifi.nix;
nitter = handleTest ./nitter.nix {};

View file

@ -1,9 +1,8 @@
import ./make-test-python.nix (
{ pkgs, ... }:
let
{ ... }:
let
nginxSocketPath = "/var/run/nginx/test.sock";
in
{
in
{
name = "nginx-unix-socket";
nodes = {
@ -27,5 +26,4 @@ import ./make-test-python.nix (
webserver.succeed("curl --fail --silent --unix-socket '${nginxSocketPath}' http://localhost/test | grep '^foo$'")
'';
}
)
}