summaryrefslogtreecommitdiffstats
path: root/nixos/tests/pykms.nix
blob: 035b9f314e677f42f08aed52678e715d3fd8e305 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
{ pkgs, ... }:
{
  name = "pykms-test";
  meta.maintainers = with pkgs.lib.maintainers; [ zopieux ];

  nodes.machine =
    {
      config,
      lib,
      pkgs,
      ...
    }:
    {
      services.pykms.enable = true;
    };

  testScript = ''
    machine.wait_for_unit("pykms.service")
    machine.succeed("${pkgs.pykms}/bin/client")
  '';
}