nixpkgs/nixos/tests/dae.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

37 lines
667 B
Nix
Raw Normal View History

{ lib, pkgs, ... }:
{
2023-09-03 02:30:30 +08:00
name = "dae";
2023-09-03 02:30:30 +08:00
meta = {
maintainers = with lib.maintainers; [ oluceps ];
};
2023-09-03 02:30:30 +08:00
nodes.machine =
{ pkgs, ... }:
{
environment.systemPackages = [ pkgs.curl ];
services.nginx = {
enable = true;
statusPage = true;
};
services.dae = {
enable = true;
config = ''
global { disable_waiting_network: true }
routing{}
'';
};
};
testScript = ''
machine.wait_for_unit("nginx.service")
machine.wait_for_unit("dae.service")
2023-09-03 02:30:30 +08:00
machine.wait_for_open_port(80)
2023-09-03 02:30:30 +08:00
machine.succeed("curl --fail --max-time 10 http://localhost")
'';
2023-09-03 02:30:30 +08:00
}