mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 06:53:01 +00:00
27 lines
543 B
Nix
27 lines
543 B
Nix
import ./make-test-python.nix {
|
|
name = "neo4j";
|
|
|
|
nodes = {
|
|
server =
|
|
{ ... }:
|
|
|
|
{
|
|
virtualisation.memorySize = 4096;
|
|
virtualisation.diskSize = 1024;
|
|
|
|
services.neo4j.enable = true;
|
|
# require tls certs to be available
|
|
services.neo4j.https.enable = false;
|
|
services.neo4j.bolt.enable = false;
|
|
};
|
|
};
|
|
|
|
testScript = ''
|
|
start_all()
|
|
|
|
server.wait_for_unit("neo4j.service")
|
|
server.wait_for_open_port(7474)
|
|
server.succeed("curl -f http://localhost:7474/")
|
|
'';
|
|
}
|