Merge branch 'stable-3.2' into stable-3.3 * stable-3.2: Split integration tests to different targets Don't check read permission when authgroup isn't set Change-Id: I4a1e1be5c4323de1554091786c55ca9a84d391e5
diff --git a/BUILD b/BUILD index df6a2c0..ee97660 100644 --- a/BUILD +++ b/BUILD
@@ -30,18 +30,16 @@ ], ) -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 8d7227f..bd34676 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 @@ if (PushOne.ALL_REFS.equals(ref)) { return true; } + if (userProvider.get().isInternalUser()) { + return true; + } try { permissionBackend .user(userProvider.get())