File tree Expand file tree Collapse file tree
google-cloud-storage/src/test/java/com/google/cloud/storage/it Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public class ITListBucketTest {
5252
5353 @ Inject public Generator generator ;
5454
55+ private static final String UNREACHABLE_BUCKET_SUFFIX = ".unreachable" ;
56+
5557 @ Test
5658 public void testListBucketWithPartialSuccess () throws Exception {
5759 doTest (Reachability .Unreachable , BucketListOption .returnPartialSuccess (true ));
@@ -66,11 +68,10 @@ private void doTest(
6668 Reachability expectedReachabilityOfUnreachableBucket , BucketListOption ... bucketListOption )
6769 throws Exception {
6870 // TESTBENCH considers a bucket to be unreachable if the bucket name contains "unreachable"
69- String name = generator .randomBucketName () + ".unreachable" ;
71+ String name = generator .randomBucketName () + UNREACHABLE_BUCKET_SUFFIX ;
7072 BucketInfo info = BucketInfo .of (name );
7173 try (TemporaryBucket tmpBucket =
7274 TemporaryBucket .newBuilder ().setBucketInfo (info ).setStorage (storage ).build ()) {
73- // bucket name to unreachable status
7475 Map <String , Reachability > expected =
7576 ImmutableMap .of (
7677 defaultBucket .getName (), Reachability .Reachable ,
You can’t perform that action at this time.
0 commit comments