about summary refs log tree commit diff
path: root/nixos/tests/neo4j.nix
blob: 0b57f5b2e038ac1616785d994f9a7a3193fc86f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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/")
  '';
}