mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
21 lines
492 B
Nix
21 lines
492 B
Nix
import ./make-test-python.nix ({ pkgs, ... }: {
|
|
name = "metabase";
|
|
meta = with pkgs.stdenv.lib.maintainers; {
|
|
maintainers = [ mmahut ];
|
|
};
|
|
|
|
nodes = {
|
|
machine = { ... }: {
|
|
services.metabase.enable = true;
|
|
virtualisation.memorySize = 1024;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
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")
|
|
'';
|
|
})
|