depot/nixos/tests/neo4j.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

26 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/")
'';
}