nixpkgs/nixos/tests/web-apps/phylactery.nix

26 lines
510 B
Nix
Raw Normal View History

import ../make-test-python.nix (
{ pkgs, lib, ... }:
{
name = "phylactery";
2022-06-28 19:17:38 +00:00
nodes.machine =
{ ... }:
{
services.phylactery = rec {
enable = true;
port = 8080;
library = "/tmp";
};
};
2022-06-28 19:17:38 +00:00
testScript = ''
start_all()
machine.wait_for_unit('phylactery')
machine.wait_for_open_port(8080)
machine.wait_until_succeeds('curl localhost:8080')
'';
2022-06-28 19:17:38 +00:00
meta.maintainers = with lib.maintainers; [ McSinyx ];
}
)