1 import ./make-test-python.nix ({ pkgs, ... }:
5 url = "https://gerrit-ci.gerritforge.com/job/plugin-lfs-bazel-master/90/artifact/bazel-bin/plugins/lfs/lfs.jar";
6 sha256 = "023b0kd8djm3cn1lf1xl67yv3j12yl8bxccn42lkfmwxjwjfqw6h";
12 meta = with pkgs.lib.maintainers; {
13 maintainers = [ flokli zimbatm ];
18 { config, pkgs, ... }: {
19 networking.firewall.allowedTCPPorts = [ 80 2222 ];
24 serverId = "aa76c84b-50b0-4711-a0a0-1ee30e45bbd0";
25 listenAddress = "[::]:80";
29 builtinPlugins = [ "hooks" "webhooks" ];
31 gerrit.canonicalWebUrl = "http://server";
33 plugins.allowRemoteAdmin = true;
34 sshd.listenAddress = "[::]:2222";
35 sshd.advertisedAddress = "[::]:2222";
47 server.wait_for_unit("gerrit.service")
48 server.wait_for_open_port(80)
49 client.succeed("curl http://server")
51 server.wait_for_open_port(2222)
52 client.succeed("nc -z server 2222")