nixpkgs/nixos/tests/neo4j.nix
Florian Klink c47da6bd48 nixosTests.neo4j: port test to python
also, switch to wait_for_open_port instead of just waiting 20s.
2019-11-23 23:16:23 +01:00

20 lines
316 B
Nix

import ./make-test-python.nix {
name = "neo4j";
nodes = {
master =
{ ... }:
{
services.neo4j.enable = true;
};
};
testScript = ''
start_all()
master.wait_for_unit("neo4j")
master.wait_for_open_port(7474)
master.succeed("curl http://localhost:7474/")
'';
}