2019-11-24 01:11:09 +03:00
|
|
|
import ./make-test-python.nix {
|
2019-02-01 16:29:54 +03:00
|
|
|
name = "neo4j";
|
|
|
|
|
|
|
|
nodes = {
|
2021-08-31 13:59:23 +03:00
|
|
|
server =
|
2019-02-01 16:29:54 +03:00
|
|
|
{ ... }:
|
|
|
|
|
|
|
|
{
|
2022-06-30 16:01:50 +03:00
|
|
|
virtualisation.memorySize = 4096;
|
|
|
|
virtualisation.diskSize = 1024;
|
2021-08-31 13:59:23 +03:00
|
|
|
|
2019-02-01 16:29:54 +03:00
|
|
|
services.neo4j.enable = true;
|
2020-09-22 00:15:49 +03:00
|
|
|
# require tls certs to be available
|
|
|
|
services.neo4j.https.enable = false;
|
|
|
|
services.neo4j.bolt.enable = false;
|
2019-02-01 16:29:54 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
testScript = ''
|
2019-11-24 01:11:09 +03:00
|
|
|
start_all()
|
2019-02-01 16:29:54 +03:00
|
|
|
|
2021-08-31 19:32:10 +03:00
|
|
|
server.wait_for_unit("neo4j.service")
|
2021-08-31 13:59:23 +03:00
|
|
|
server.wait_for_open_port(7474)
|
|
|
|
server.succeed("curl -f http://localhost:7474/")
|
2019-02-01 16:29:54 +03:00
|
|
|
'';
|
|
|
|
}
|