Files
nixpkgs/nixos/tests/nginx-variants.nix
Tom Herbers 238c598440 tengine: drop
Drop due to seriously delayed responses to security vulnerabilities.
2026-08-03 16:58:38 +02:00

34 lines
759 B
Nix

{ pkgs, runTest, ... }:
builtins.listToAttrs (
map
(packageName: {
name = packageName;
value = runTest {
name = "nginx-variant-${packageName}";
nodes.machine =
{ pkgs, ... }:
{
services.nginx = {
enable = true;
virtualHosts.localhost.locations."/".return = "200 'foo'";
package = pkgs.${packageName};
};
};
testScript = ''
machine.wait_for_unit("nginx")
machine.wait_for_open_port(80)
machine.succeed('test "$(curl -fvvv http://localhost/)" = foo')
'';
};
})
[
"angie"
"nginxStable"
"nginxMainline"
"nginxShibboleth"
"openresty"
]
)