From e84a23c5f75223ac217615735a826c8a71e84fa3 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Fri, 1 Feb 2019 14:29:54 +0100 Subject: neo4j: add neo4j test --- nixos/tests/neo4j.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nixos/tests/neo4j.nix (limited to 'nixos/tests/neo4j.nix') 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/"); + ''; +} -- cgit 1.4.1