2020-04-24 23:36:52 +00:00
|
|
|
import ./make-test-python.nix {
|
|
|
|
name = "neo4j";
|
|
|
|
|
|
|
|
nodes = {
|
2022-08-21 13:32:41 +00:00
|
|
|
server =
|
2020-04-24 23:36:52 +00:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2022-08-21 13:32:41 +00:00
|
|
|
virtualisation.memorySize = 4096;
|
|
|
|
virtualisation.diskSize = 1024;
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
services.neo4j.enable = true;
|
2022-08-21 13:32:41 +00:00
|
|
|
# require tls certs to be available
|
|
|
|
services.neo4j.https.enable = false;
|
|
|
|
services.neo4j.bolt.enable = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
|
|
|
start_all()
|
|
|
|
|
2022-08-21 13:32:41 +00:00
|
|
|
server.wait_for_unit("neo4j.service")
|
|
|
|
server.wait_for_open_port(7474)
|
|
|
|
server.succeed("curl -f http://localhost:7474/")
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
}
|