summaryrefslogtreecommitdiffstats
path: root/nixos/tests/web-apps/phylactery.nix
blob: d6d52680ec5f18690db05d66e8322d93aea0167c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs, lib, ... }:
{
  name = "phylactery";

  nodes.machine =
    { ... }:
    {
      services.phylactery = {
        enable = true;
        port = 8080;
        library = "/tmp";
      };
    };

  testScript = ''
    start_all()
    machine.wait_for_unit('phylactery')
    machine.wait_for_open_port(8080)
    machine.wait_until_succeeds('curl localhost:8080')
  '';

  meta.maintainers = with lib.maintainers; [ McSinyx ];
}