diff options
Diffstat (limited to 'nixos/tests/panamax.nix')
-rw-r--r-- | nixos/tests/panamax.nix | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/nixos/tests/panamax.nix b/nixos/tests/panamax.nix new file mode 100644 index 00000000000..80af8a19be1 --- /dev/null +++ b/nixos/tests/panamax.nix @@ -0,0 +1,18 @@ +import ./make-test.nix { + name = "panamax"; + + machine = { config, pkgs, ... }: { + services.panamax.enable = true; + }; + + testScript = + '' + startAll; + $machine->waitForUnit("panamax-api.service"); + $machine->waitForUnit("panamax-ui.service"); + $machine->waitForOpenPort(3000); + $machine->waitForOpenPort(8888); + $machine->succeed("curl --fail http://localhost:8888/ > /dev/null"); + $machine->shutdown; + ''; +} |