1 { system ? builtins.currentSystem,
3 pkgs ? import ../.. { inherit system config; }
6 with import ../lib/testing-python.nix { inherit system pkgs; };
11 name = "rsyslogd-test1";
12 meta.maintainers = [ pkgs.lib.maintainers.aanderse ];
14 nodes.machine = { config, pkgs, ... }: {
15 services.rsyslogd.enable = true;
16 services.journald.forwardToSyslog = false;
19 # ensure rsyslogd isn't receiving messages from journald if explicitly disabled
21 machine.wait_for_unit("default.target")
22 machine.fail("test -f /var/log/messages")
27 name = "rsyslogd-test2";
28 meta.maintainers = [ pkgs.lib.maintainers.aanderse ];
30 nodes.machine = { config, pkgs, ... }: {
31 services.rsyslogd.enable = true;
34 # ensure rsyslogd is receiving messages from journald
36 machine.wait_for_unit("default.target")
37 machine.succeed("test -f /var/log/messages")