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.stdenv.lib.maintainers; {
13 maintainers = [ flokli zimbatm ];
18 { config, pkgs, ... }: {
19 networking.firewall.allowedTCPPorts = [ 80 2222 ];
21 virtualisation.memorySize = 1024;
25 serverId = "aa76c84b-50b0-4711-a0a0-1ee30e45bbd0";
26 listenAddress = "[::]:80";
30 builtinPlugins = [ "hooks" "webhooks" ];
32 gerrit.canonicalWebUrl = "http://server";
34 plugins.allowRemoteAdmin = true;
35 sshd.listenAddress = "[::]:2222";
36 sshd.advertisedAddress = "[::]:2222";
48 server.wait_for_unit("gerrit.service")
49 server.wait_for_open_port(80)
50 client.succeed("curl http://server")
52 server.wait_for_open_port(2222)
53 client.succeed("nc -z server 2222")