2015-07-12 12:09:40 +02:00
|
|
|
import ./make-test.nix ({ pkgs, ...} : {
|
2015-01-07 02:40:55 +01:00
|
|
|
name = "panamax";
|
2015-07-12 12:09:40 +02:00
|
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
|
|
maintainers = [ offline ];
|
|
|
|
};
|
2015-01-07 02:40:55 +01:00
|
|
|
|
|
|
|
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;
|
|
|
|
'';
|
2015-07-12 12:09:40 +02:00
|
|
|
})
|