mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 07:01:54 +00:00
neo4j: add neo4j test
This commit is contained in:
parent
2436c97cbe
commit
e84a23c5f7
@ -142,6 +142,7 @@ in
|
||||
nat.firewall = handleTest ./nat.nix { withFirewall = true; };
|
||||
nat.firewall-conntrack = handleTest ./nat.nix { withFirewall = true; withConntrackHelpers = true; };
|
||||
nat.standalone = handleTest ./nat.nix { withFirewall = false; };
|
||||
neo4j = handleTest ./neo4j.nix {};
|
||||
netdata = handleTest ./netdata.nix {};
|
||||
networking.networkd = handleTest ./networking.nix { networkd = true; };
|
||||
networking.scripted = handleTest ./networking.nix { networkd = false; };
|
||||
|
20
nixos/tests/neo4j.nix
Normal file
20
nixos/tests/neo4j.nix
Normal file
@ -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/");
|
||||
'';
|
||||
}
|
Loading…
Reference in New Issue
Block a user