2020-11-01 17:48:40 +00:00
|
|
|
import ./make-test-python.nix ({ pkgs, ... }:
|
|
|
|
|
|
|
|
{
|
|
|
|
name = "systemd-journal";
|
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ lewo ];
|
|
|
|
};
|
|
|
|
|
|
|
|
machine = { pkgs, lib, ... }: {
|
|
|
|
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\"'"
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
})
|