1 import ./make-test-python.nix ({ pkgs, lib, ... }: {
4 nodes.machine = { pkgs, ... }: {
19 symlink_path /tmp/current-log
30 testMessage = "an example log message";
32 payload = pkgs.writeText "test-message.json" (builtins.toJSON {
37 machine.wait_for_unit("fluentd.service")
38 machine.wait_for_open_port(9880)
41 "curl -fsSL -X POST -H 'Content-type: application/json' -d @${payload} http://localhost:9880/test.tag"
45 machine.succeed("systemctl stop fluentd")
47 machine.succeed("grep '${testMessage}' /tmp/current-log")