depot/third_party/nixpkgs/nixos/tests/ntpd.nix
Default email 657f08b14c Project import generated by Copybara.
GitOrigin-RevId: 807e9154dcb16384b1b765ebe9cd2bba2ac287fd
2024-10-29 11:11:06 +00:00

25 lines
486 B
Nix

import ./make-test-python.nix (
{ lib, ... }:
{
name = "ntpd";
meta = {
maintainers = with lib.maintainers; [ pyrox0 ];
};
nodes.machine = {
services.ntp = {
enable = true;
};
};
testScript = ''
start_all()
machine.wait_for_unit('ntpd.service')
machine.wait_for_console_text('Listen normally on 10 eth*')
machine.succeed('systemctl is-active ntpd.service')
machine.succeed('ntpq -p')
'';
}
)