Unverified Commit 6c73e41a authored by Jonathan Davies's avatar Jonathan Davies
Browse files

nixos/ntpd-rs: tests: Verify that server/pool has been written to ntpd-rs.toml file

parent 86d94b2d
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -69,6 +69,9 @@ import ./make-test-python.nix (

        client.succeed("ntp-ctl status | grep server:123")
        server.succeed("ntp-ctl status | grep '\[::\]:123'")

        client.succeed("grep '^mode = \"server\"' $(systemctl status ntpd-rs | grep -oE '/nix/store[^ ]*ntpd-rs.toml')")
        server.succeed("grep '^mode = \"pool\"' $(systemctl status ntpd-rs | grep -oE '/nix/store[^ ]*ntpd-rs.toml')")
      '';
  }
)