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