2020-11-01 17:48:40 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "systemd-journal";
|
2021-01-10 19:08:30 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-11-01 17:48:40 +00:00
|
|
|
maintainers = [ lewo ];
|
|
|
|
};
|
|
|
|
|
2022-03-20 23:15:30 +00:00
|
|
|
nodes.machine = { pkgs, lib, ... }: {
|
2020-11-01 17:48:40 +00:00
|
|
|
services.journald.enableHttpGateway = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
|
2020-12-26 16:03:34 +00:00
|
|
|
machine.succeed("journalctl --grep=systemd")
|
|
|
|
|
2020-11-01 17:48:40 +00:00
|
|
|
machine.succeed(
|
|
|
|
"${pkgs.curl}/bin/curl -s localhost:19531/machine | ${pkgs.jq}/bin/jq -e '.hostname == \"machine\"'"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|