1 import ./make-test-python.nix ({ lib, ... }: {
3 meta = with lib.maintainers; {
4 maintainers = [ freezeboy ];
7 nodes.machine = { pkgs, ... }: let
9 services.plikd.enable = true;
10 environment.systemPackages = [ pkgs.plik ];
15 machine.wait_for_unit("plikd")
18 machine.wait_for_open_port(8080)
19 machine.succeed("curl --fail -v http://localhost:8080")
22 machine.execute("echo test > /tmp/data.txt")
23 machine.succeed("plik --server http://localhost:8080 /tmp/data.txt | grep curl")
25 machine.succeed("diff data.txt /tmp/data.txt")