diff options
author | Antonio Barone <syntonyze@gmail.com> | 2021-01-07 14:48:23 +0100 |
---|---|---|
committer | Antonio Barone <syntonyze@gmail.com> | 2021-01-07 14:48:23 +0100 |
commit | 99c822ebf3b72023f8b926444bbdf299fafb00df (patch) | |
tree | ecec63e99714470c1d334315d98bc27295a98290 | |
parent | 5bd0d7e8e5704b11a95a0f2ca4c67eb392002484 (diff) | |
parent | 22ca0b406a4efb9aebbbfcac8d2d986812423f01 (diff) |
Merge branch 'stable-3.1' into stable-3.2
* stable-3.1:
Split integration tests to different targets
Don't check read permission when authgroup isn't set
Change-Id: Ic5c8f0468869476a01923b4d374f0188c271daf2
-rw-r--r-- | BUILD | 10 | ||||
-rw-r--r-- | src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java | 3 |
2 files changed, 7 insertions, 6 deletions
@@ -33,18 +33,16 @@ junit_tests( ], ) -junit_tests( - name = "replication_it", - srcs = glob([ - "src/test/java/**/*IT.java", - ]), +[junit_tests( + name = f[:f.index(".")].replace("/", "_"), + srcs = [f], tags = ["replication"], visibility = ["//visibility:public"], deps = PLUGIN_TEST_DEPS + PLUGIN_DEPS + [ ":replication__plugin", ":replication_util", ], -) +) for f in glob(["src/test/java/**/*IT.java"])] java_library( name = "replication_util", diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java index 793bb5b..67dae7e 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/Destination.java @@ -335,6 +335,9 @@ public class Destination { if (PushOne.ALL_REFS.equals(ref)) { return true; } + if (userProvider.get().isInternalUser()) { + return true; + } try { permissionBackend .user(userProvider.get()) |