summaryrefslogtreecommitdiffstats
path: root/nixos/tests/metabase.nix
blob: 1a92f17409189af0d5d24563d596f5b9b98681ba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
{ pkgs, ... }:
{
  name = "metabase";
  meta = with pkgs.lib.maintainers; {
    maintainers = [ mmahut ];
  };

  nodes = {
    machine =
      { ... }:
      {
        services.metabase.enable = true;
        virtualisation.memorySize = 2048;
      };
  };

  testScript = ''
    start_all()
    machine.wait_for_unit("metabase.service")
    machine.wait_for_open_port(3000)
    machine.wait_until_succeeds("curl -fL http://localhost:3000/setup | grep Metabase")
  '';
}