Files
nixpkgs/nixos/tests/nginx-variants.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

37 lines
820 B
Nix

{ pkgs, runTest, ... }:
builtins.listToAttrs (
builtins.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"
"angieQuic"
"nginxStable"
"nginxMainline"
"nginxQuic"
"nginxShibboleth"
"openresty"
"tengine"
]
)