1 import ../make-test-python.nix ({ lib, pkgs, ... }:
5 meta.maintainers = [ pkgs.lib.maintainers.happysalada ];
7 nodes.machineapi = { config, pkgs, ... }: {
10 journaldAccess = false;
24 inputs = [ "demo_logs" ];
25 path = "/var/lib/vector/logs.log";
26 encoding = { codec = "json"; };
34 machineapi.wait_for_unit("vector")
35 machineapi.wait_for_open_port(8686)
36 machineapi.succeed("journalctl -o cat -u vector.service | grep 'API server running'")
37 machineapi.wait_until_succeeds("curl -sSf http://localhost:8686/health")