1{ pkgs, runTest, ... }: 2builtins.listToAttrs ( 3 builtins.map 4 (packageName: { 5 name = packageName; 6 value = runTest { 7 name = "nginx-variant-${packageName}"; 8 9 nodes.machine = 10 { pkgs, ... }: 11 { 12 services.nginx = { 13 enable = true; 14 virtualHosts.localhost.locations."/".return = "200 'foo'"; 15 package = pkgs.${packageName}; 16 }; 17 }; 18 19 testScript = '' 20 machine.wait_for_unit("nginx") 21 machine.wait_for_open_port(80) 22 machine.succeed('test "$(curl -fvvv http://localhost/)" = foo') 23 ''; 24 }; 25 }) 26 [ 27 "angie" 28 "angieQuic" 29 "nginxStable" 30 "nginxMainline" 31 "nginxQuic" 32 "nginxShibboleth" 33 "openresty" 34 "tengine" 35 ] 36)