summaryrefslogtreecommitdiffstats
path: root/nixos/tests/metabase.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/metabase.nix')
-rw-r--r--nixos/tests/metabase.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/metabase.nix b/nixos/tests/metabase.nix
new file mode 100644
index 000000000000..be9e5ed5b1e8
--- /dev/null
+++ b/nixos/tests/metabase.nix
@@ -0,0 +1,20 @@
+import ./make-test.nix ({ pkgs, ... }: {
+ name = "metabase";
+ meta = with pkgs.stdenv.lib.maintainers; {
+ maintainers = [ mmahut ];
+ };
+
+ nodes = {
+ machine = { ... }: {
+ services.metabase.enable = true;
+ virtualisation.memorySize = 1024;
+ };
+ };
+
+ testScript = ''
+ startAll;
+ $machine->waitForUnit("metabase.service");
+ $machine->waitForOpenPort(3000);
+ $machine->waitUntilSucceeds("curl -L http://localhost:3000/setup | grep Metabase");
+ '';
+})