nixpkgs/nixos/tests/metabase.nix

21 lines
486 B
Nix
Raw Normal View History

2019-11-05 20:44:51 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
2019-08-18 07:28:16 +00:00
name = "metabase";
meta = with pkgs.lib.maintainers; {
2019-08-18 07:28:16 +00:00
maintainers = [ mmahut ];
};
nodes = {
machine = { ... }: {
services.metabase.enable = true;
virtualisation.memorySize = 1024;
};
};
testScript = ''
2019-11-05 20:44:51 +00:00
start_all()
machine.wait_for_unit("metabase.service")
machine.wait_for_open_port(3000)
2020-09-16 15:54:14 +00:00
machine.wait_until_succeeds("curl -fL http://localhost:3000/setup | grep Metabase")
2019-08-18 07:28:16 +00:00
'';
})