summary refs log tree commit diff
path: root/nixos/tests/neo4j.nix
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2019-02-01 14:29:54 +0100
committerFlorian Klink <flokli@flokli.de>2019-02-01 16:01:08 +0100
commite84a23c5f75223ac217615735a826c8a71e84fa3 (patch)
tree3d27c823b787a80ac55495f413db39ae063fe475 /nixos/tests/neo4j.nix
parent2436c97cbed621a848b87769e21749fdeefff3f7 (diff)
downloadnixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.tar
nixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.tar.gz
nixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.tar.bz2
nixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.tar.lz
nixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.tar.xz
nixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.tar.zst
nixpkgs-e84a23c5f75223ac217615735a826c8a71e84fa3.zip
neo4j: add neo4j test
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/");
+  '';
+}