mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
19 lines
455 B
Nix
19 lines
455 B
Nix
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;
|
|
'';
|
|
}
|