summary refs log tree commit diff
path: root/nixos/tests/mesos.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/mesos.nix')
-rw-r--r--nixos/tests/mesos.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/nixos/tests/mesos.nix b/nixos/tests/mesos.nix
new file mode 100644
index 00000000000..a2b46d7d284
--- /dev/null
+++ b/nixos/tests/mesos.nix
@@ -0,0 +1,25 @@
+import ./make-test.nix {
+  name = "simple";
+
+  machine = { config, pkgs, ... }: {
+    services.zookeeper.enable = true;
+    virtualistaion.docker.enable = true;
+    services.mesos = {
+      slave = {
+        enable = true;
+        master = "zk://localhost:2181/mesos";
+      };
+      master = {
+        enable = true;
+        zk = "zk://localhost:2181/mesos";
+      };
+    };
+  };
+
+  testScript =
+    ''
+      startAll;
+      $machine->waitForUnit("mesos-master.service");
+      $machine->waitForUnit("mesos-slave.service");
+    '';
+}