diff --git a/google-cloud-storage/pom.xml b/google-cloud-storage/pom.xml index b62e4fb36f..3725c42edd 100644 --- a/google-cloud-storage/pom.xml +++ b/google-cloud-storage/pom.xml @@ -87,6 +87,14 @@ org.threeten threetenbp + + com.google.api.grpc + proto-google-cloud-iamcredentials-v1 + + + com.google.code.gson + gson + diff --git a/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketTest.java b/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketTest.java index 9923c6107f..ba2f5c7d1e 100644 --- a/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketTest.java +++ b/google-cloud-storage/src/test/java/com/google/cloud/storage/BucketTest.java @@ -697,6 +697,15 @@ public void testDeleteDefaultAcl() throws Exception { assertTrue(bucket.deleteDefaultAcl(User.ofAllAuthenticatedUsers())); } + @Test + public void testDisableLifeCycleRule() { + expect(storage.getOptions()).andReturn(mockOptions).times(1); + expect(storage.disableLifeCycleRule(BUCKET_INFO.getName(), "clientEmail")).andReturn(true); + replay(storage); + initializeBucket(); + assertTrue(bucket.disableLifeCycleRule(BUCKET_INFO.getName(), "clientEmail")); + } + @Test public void testCreateDefaultAcl() throws Exception { initializeExpectedBucket(4); diff --git a/pom.xml b/pom.xml index 21786a1a9c..255fda6c51 100644 --- a/pom.xml +++ b/pom.xml @@ -135,6 +135,12 @@ guava 28.1-android + + com.google.code.gson + gson + 2.8.6 + compile + org.checkerframework @@ -156,6 +162,12 @@ google-cloud-iamcredentials ${google.iamcredentials.version} + + com.google.api.grpc + proto-google-cloud-iamcredentials-v1 + ${google.iamcredentials.version} + compile + com.google.protobuf protobuf-java