1 import ./make-test-python.nix ({ pkgs, ... }:
6 meta = with pkgs.lib.maintainers; {
7 maintainers = [ flokli zimbatm ];
12 { config, pkgs, ... }: {
13 networking.firewall.allowedTCPPorts = [ 80 2222 ];
18 serverId = "aa76c84b-50b0-4711-a0a0-1ee30e45bbd0";
19 listenAddress = "[::]:80";
22 builtinPlugins = [ "hooks" "webhooks" ];
24 gerrit.canonicalWebUrl = "http://server";
25 sshd.listenAddress = "[::]:2222";
26 sshd.advertisedAddress = "[::]:2222";
38 server.wait_for_unit("gerrit.service")
39 server.wait_for_open_port(80)
40 client.succeed("curl http://server")
42 server.wait_for_open_port(2222)
43 client.succeed("nc -z server 2222")