Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c5f499

Browse files
authored
test: disable rapid bucket tests in PROD (#3154)
persistent 503 errors are happening for RAPID buckets in the region our integration tests run. Exclude running in PROD for the time being, instead running only against testbench.
1 parent 74b7498 commit 1c5f499

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

google-cloud-storage/src/test/java/com/google/cloud/storage/ITAppendableUploadTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646
@RunWith(StorageITRunner.class)
4747
@CrossRun(
48-
backends = {Backend.PROD, Backend.TEST_BENCH},
48+
backends = {Backend.TEST_BENCH},
4949
transports = Transport.GRPC)
5050
public final class ITAppendableUploadTest {
5151

google-cloud-storage/src/test/java/com/google/cloud/storage/ITObjectReadSessionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363

6464
@RunWith(StorageITRunner.class)
6565
@CrossRun(
66-
backends = {Backend.PROD, Backend.TEST_BENCH},
66+
backends = {Backend.TEST_BENCH},
6767
transports = Transport.GRPC)
6868
public final class ITObjectReadSessionTest {
6969

google-cloud-storage/src/test/java/com/google/cloud/storage/it/runner/registry/Zone.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,11 @@
1919
import com.google.common.base.MoreObjects;
2020
import java.io.IOException;
2121
import java.util.Objects;
22+
import org.slf4j.Logger;
23+
import org.slf4j.LoggerFactory;
2224

2325
public final class Zone {
26+
private static final Logger LOGGER = LoggerFactory.getLogger(Zone.class);
2427

2528
private final String region;
2629
private final String zone;
@@ -87,6 +90,7 @@ public Zone get() {
8790
public void start() {
8891
try {
8992
zone = MetadataService.zone().orElseGet(() -> parse("us-east1-c"));
93+
LOGGER.info("Resolved zone = {}", zone);
9094
} catch (IOException e) {
9195
throw new RuntimeException(e);
9296
}

google-cloud-storage/src/test/resources/logback.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686

8787
<logger name="com.google.cloud.storage" level="info"/>
8888
<logger name="com.google.cloud.storage.it" level="warn"/>
89+
<logger name="com.google.cloud.storage.it.runner.registry.Zone" level="info"/>
8990

9091
<root level="info">
9192
<appender-ref ref="STDOUT"/>

0 commit comments

Comments
 (0)