mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-11-09 16:18:34 +01:00
Partially reverts 86efccfa45
Package names are non-unique, so tests were being silently dropped
from the attrset
37 lines
820 B
Nix
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"
|
|
]
|
|
)
|