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