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