at 25.11-pre 759 B view raw
1import ./make-test-python.nix ( 2 { lib, pkgs, ... }: 3 { 4 5 name = "dae"; 6 7 meta = { 8 maintainers = with lib.maintainers; [ oluceps ]; 9 }; 10 11 nodes.machine = 12 { pkgs, ... }: 13 { 14 environment.systemPackages = [ pkgs.curl ]; 15 services.nginx = { 16 enable = true; 17 statusPage = true; 18 }; 19 services.dae = { 20 enable = true; 21 config = '' 22 global { disable_waiting_network: true } 23 routing{} 24 ''; 25 }; 26 }; 27 28 testScript = '' 29 machine.wait_for_unit("nginx.service") 30 machine.wait_for_unit("dae.service") 31 32 machine.wait_for_open_port(80) 33 34 machine.succeed("curl --fail --max-time 10 http://localhost") 35 ''; 36 37 } 38)