2020-11-12 09:05:59 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "systemd-journal";
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with pkgs.lib.maintainers; {
|
2020-11-12 09:05:59 +00:00
|
|
|
maintainers = [ lewo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine = { pkgs, lib, ... }: {
|
|
|
|
services.journald.enableHttpGateway = true;
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
machine.wait_for_unit("multi-user.target")
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
machine.succeed("journalctl --grep=systemd")
|
|
|
|
|
2020-11-12 09:05:59 +00:00
|
|
|
machine.succeed(
|
|
|
|
"${pkgs.curl}/bin/curl -s localhost:19531/machine | ${pkgs.jq}/bin/jq -e '.hostname == \"machine\"'"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|