about summary refs log tree commit diff
path: root/nixos/tests/fluidd.nix
blob: f49a4110d71402f7b9e376b0b31c9cbf545a1ace (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ./make-test-python.nix ({ lib, ... }:

with lib;

{
  name = "fluidd";
  meta.maintainers = with maintainers; [ vtuan10 ];

  nodes.machine = { pkgs, ... }: {
    services.fluidd = {
      enable = true;
    };
  };

  testScript = ''
    machine.start()
    machine.wait_for_unit("nginx.service")
    machine.wait_for_open_port(80)
    machine.succeed("curl -sSfL http://localhost/ | grep 'fluidd'")
  '';
})