1 import ./make-test-python.nix ({ pkgs, ...} : {
3 meta = with pkgs.lib.maintainers; {
4 maintainers = [ dtzWill ];
7 nodes.machine = { ... }: {
8 services.novacomd.enable = true;
12 machine.wait_for_unit("novacomd.service")
14 with subtest("Make sure the daemon is really listening"):
15 machine.wait_for_open_port(6968)
16 machine.succeed("novacom -l")
18 with subtest("Stop the daemon, double-check novacom fails if daemon isn't working"):
19 machine.stop_job("novacomd")
20 machine.fail("novacom -l")
22 with subtest("Make sure the daemon starts back up again"):
23 machine.start_job("novacomd")
24 # make sure the daemon is really listening
25 machine.wait_for_open_port(6968)
26 machine.succeed("novacom -l")