summary refs log tree commit diff
path: root/nixos/tests/neo4j.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixos/tests/neo4j.nix')
-rw-r--r--nixos/tests/neo4j.nix20
1 files changed, 20 insertions, 0 deletions
diff --git a/nixos/tests/neo4j.nix b/nixos/tests/neo4j.nix
new file mode 100644
index 00000000000..86ed8970517
--- /dev/null
+++ b/nixos/tests/neo4j.nix
@@ -0,0 +1,20 @@
+import ./make-test.nix {
+  name = "neo4j";
+
+  nodes = {
+    master =
+      { ... }:
+
+      {
+        services.neo4j.enable = true;
+      };
+  };
+
+  testScript = ''
+    startAll;
+
+    $master->waitForUnit("neo4j");
+    $master->sleep(20); # Hopefully this is long enough!!
+    $master->succeed("curl http://localhost:7474/");
+  '';
+}