summary refs log tree commit diff
path: root/nixos/tests/panamax.nix
blob: 088aa79f8c6156eebfdb578cc69bc64d1f6aae3e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import ./make-test.nix ({ pkgs, ...} : {
  name = "panamax";
  meta = with pkgs.stdenv.lib.maintainers; {
    maintainers = [ offline ];
  };

  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;
    '';
})