Ignore all broken tests on Gerrit replica At the time of the development of all tests about using the pull-replication on replicas, the GerritServer framework for the IT tests was broken and was instantiating a primary test server instead of replica. Change-Id: I24354304c6b69fa47b8c72610ed7199d23f6c36b
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationITAbstract.java b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationITAbstract.java index 803a756..ba812e2 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationITAbstract.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/PullReplicationITAbstract.java
@@ -46,6 +46,7 @@ import org.eclipse.jgit.transport.PushResult; import org.eclipse.jgit.transport.RemoteRefUpdate; import org.eclipse.jgit.transport.RemoteRefUpdate.Status; +import org.junit.Ignore; import org.junit.Test; /** Base class to run regular and async acceptance tests */ @@ -345,7 +346,7 @@ }); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = TEST_REPLICATION_REMOTE) @GerritConfig(name = "container.replica", value = "true") public void shouldReplicateNewChangeRefToReplica() throws Exception {
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ApplyObjectActionIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ApplyObjectActionIT.java index 453a6b0..652daed 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ApplyObjectActionIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/ApplyObjectActionIT.java
@@ -22,6 +22,7 @@ import com.google.gerrit.extensions.restapi.Url; import com.googlesource.gerrit.plugins.replication.pull.api.data.RevisionData; import java.util.Optional; +import org.junit.Ignore; import org.junit.Test; public class ApplyObjectActionIT extends ActionITBase { @@ -71,7 +72,7 @@ assertHttpResponseCode(201)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") public void shouldAcceptPayloadWhenNodeIsAReplica() throws Exception { @@ -95,7 +96,7 @@ assertHttpResponseCode(201)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") public void shouldAcceptPayloadWhenNodeIsAReplicaAndProjectNameContainsSlash() throws Exception { @@ -122,7 +123,7 @@ assertHttpResponseCode(201)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") public void shouldReturnForbiddenWhenNodeIsAReplicaAndUSerIsAnonymous() throws Exception { @@ -187,7 +188,7 @@ assertHttpResponseCode(400)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") @GerritConfig(name = "auth.bearerToken", value = "some-bearer-token")
diff --git a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchActionIT.java b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchActionIT.java index 0a69c3d..1ca013b 100644 --- a/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchActionIT.java +++ b/src/test/java/com/googlesource/gerrit/plugins/replication/pull/api/FetchActionIT.java
@@ -18,11 +18,12 @@ import com.google.gerrit.entities.Project; import com.google.gerrit.entities.Project.NameKey; import com.google.gerrit.extensions.restapi.Url; +import org.junit.Ignore; import org.junit.Test; public class FetchActionIT extends ActionITBase { - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") public void shouldFetchRefWhenNodeIsAReplica() throws Exception { @@ -41,7 +42,7 @@ assertHttpResponseCode(201)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") public void shouldFetchRefWhenNodeIsAReplicaAndProjectNameContainsSlash() throws Exception { @@ -64,7 +65,7 @@ assertHttpResponseCode(201)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") public void shouldReturnForbiddenWhenNodeIsAReplicaAndUSerIsAnonymous() throws Exception { @@ -81,7 +82,7 @@ .execute(createRequest(sendObjectPayload), assertHttpResponseCode(403)); } - @Test + @Ignore @GerritConfig(name = "gerrit.instanceId", value = "testInstanceId") @GerritConfig(name = "container.replica", value = "true") @GerritConfig(name = "auth.bearerToken", value = "some-bearer-token")