1import ../make-test-python.nix (
2 { pkgs, lib, ... }:
3 {
4 name = "phylactery";
5
6 nodes.machine =
7 { ... }:
8 {
9 services.phylactery = rec {
10 enable = true;
11 port = 8080;
12 library = "/tmp";
13 };
14 };
15
16 testScript = ''
17 start_all()
18 machine.wait_for_unit('phylactery')
19 machine.wait_for_open_port(8080)
20 machine.wait_until_succeeds('curl localhost:8080')
21 '';
22
23 meta.maintainers = with lib.maintainers; [ McSinyx ];
24 }
25)