Commit 501b85f3 authored by Felix Singer's avatar Felix Singer
Browse files

nixos/tests/gerrit: Drop dead hook to LFS plugin



The URL scheme for downloading plugins has changed a long time ago and
the used URL is dead. Gerrit only throws an error since it can't load
the plugin but it continues to boot. However, instead of maintaining
URLs to 3rdparty plugins, which end up dead anyway, just drop it. The
test should cover Gerrit and not 3rd party plugins.

Also, while on it, drop the setting `plugins.allowRemoteAdmin = true`
since it's not needed.

Signed-off-by: default avatarFelix Singer <felixsinger@posteo.net>
parent 6b955bdb
Loading
Loading
Loading
Loading
+1 −10
Original line number Diff line number Diff line
import ./make-test-python.nix ({ pkgs, ... }:

let
  lfs = pkgs.fetchurl {
    url = "https://gerrit-ci.gerritforge.com/job/plugin-lfs-bazel-master/90/artifact/bazel-bin/plugins/lfs/lfs.jar";
    sha256 = "023b0kd8djm3cn1lf1xl67yv3j12yl8bxccn42lkfmwxjwjfqw6h";
  };

in {
{
  name = "gerrit";

  meta = with pkgs.lib.maintainers; {
@@ -25,12 +19,9 @@ in {
          listenAddress = "[::]:80";
          jvmHeapLimit = "1g";

          plugins = [ lfs ];
          builtinPlugins = [ "hooks" "webhooks" ];
          settings = {
            gerrit.canonicalWebUrl = "http://server";
            lfs.plugin = "lfs";
            plugins.allowRemoteAdmin = true;
            sshd.listenAddress = "[::]:2222";
            sshd.advertisedAddress = "[::]:2222";
          };