mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
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: Felix Singer <felixsinger@posteo.net>
This commit is contained in:
parent
6b955bdbb9
commit
501b85f3d5
@ -1,12 +1,6 @@
|
|||||||
import ./make-test-python.nix ({ pkgs, ... }:
|
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";
|
name = "gerrit";
|
||||||
|
|
||||||
meta = with pkgs.lib.maintainers; {
|
meta = with pkgs.lib.maintainers; {
|
||||||
@ -25,12 +19,9 @@ in {
|
|||||||
listenAddress = "[::]:80";
|
listenAddress = "[::]:80";
|
||||||
jvmHeapLimit = "1g";
|
jvmHeapLimit = "1g";
|
||||||
|
|
||||||
plugins = [ lfs ];
|
|
||||||
builtinPlugins = [ "hooks" "webhooks" ];
|
builtinPlugins = [ "hooks" "webhooks" ];
|
||||||
settings = {
|
settings = {
|
||||||
gerrit.canonicalWebUrl = "http://server";
|
gerrit.canonicalWebUrl = "http://server";
|
||||||
lfs.plugin = "lfs";
|
|
||||||
plugins.allowRemoteAdmin = true;
|
|
||||||
sshd.listenAddress = "[::]:2222";
|
sshd.listenAddress = "[::]:2222";
|
||||||
sshd.advertisedAddress = "[::]:2222";
|
sshd.advertisedAddress = "[::]:2222";
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user