1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-22 23:10:02 +00:00
nixpkgs/nixos/tests/metabase.nix

21 lines
492 B
Nix
Raw Normal View History

2019-11-05 20:44:51 +00:00
import ./make-test-python.nix ({ pkgs, ... }: {
2019-08-18 08:28:16 +01:00
name = "metabase";
meta = with pkgs.stdenv.lib.maintainers; {
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)
machine.wait_until_succeeds("curl -L http://localhost:3000/setup | grep Metabase")
2019-08-18 08:28:16 +01:00
'';
})