about summary refs log tree commit diff
path: root/nixos/tests/rshim.nix
blob: bb5cce028ae796a50dd79543bd484283bc1ece84 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{ system ? builtins.currentSystem
, config ? { }
, pkgs ? import ../.. { inherit system config; }
}:

with import ../lib/testing-python.nix { inherit system pkgs; };
with pkgs.lib;

{
  basic = makeTest {
    name = "rshim";
    meta.maintainers = with maintainers; [ nikstur ];

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

    testScript = { nodes, ... }: ''
      machine.start()
      machine.wait_for_unit("multi-user.target")

      print(machine.succeed("systemctl status rshim.service"))
    '';
  };
}