commit | f99f69750b2d05734b24b5352cfff5ebc1de38dc | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Jan 05 00:29:56 2023 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Jan 05 00:30:01 2023 +0000 |
tree | 2c98b77235ecd5479a822e24d3d97282b3475380 | |
parent | 5146a711bfe4cbc133793237b619b316f5961de1 [diff] | |
parent | 57909c6977bf3960156e6335ca239b142c7be788 [diff] |
Merge branch 'stable-3.7' * stable-3.7: Return BAD_REQUEST when the REST API throws IllegalArgumentException Change-Id: I20f022beaaa0db32837d6da6f643675f2f416fe5
diff --git a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfiguration.java b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfiguration.java index aff1266..33cc3e8 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfiguration.java +++ b/src/main/java/com/googlesource/gerrit/plugins/replication/pull/SourceConfiguration.java
@@ -216,4 +216,9 @@ public int getPushBatchSize() { return 0; } + + @Override + public boolean replicateNoteDbMetaRefs() { + return true; + } }
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ProjectDeletionActionIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ProjectDeletionActionIT.java index a46a721..de8a942 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ProjectDeletionActionIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ProjectDeletionActionIT.java
@@ -23,7 +23,6 @@ import com.google.inject.Inject; import javax.servlet.http.HttpServletResponse; import org.apache.http.client.methods.HttpRequestBase; -import org.junit.Ignore; import org.junit.Test; public class ProjectDeletionActionIT extends ActionITBase { @@ -76,7 +75,6 @@ } @Test - @Ignore("Failing in RestApiServlet: to be enabled again once that is fixed in core") public void shouldReturnBadRequestWhenDeletingAnInvalidProjectName() throws Exception { url = getURLWithAuthenticationPrefix(INVALID_TEST_PROJECT_NAME);