Skip to content

Commit

Permalink
test: cleanup/re-enable some ignored tests (#1828)
Browse files Browse the repository at this point in the history
* ITOptionRegressionTest#bucket_BucketSourceOption_userProject_String
* ITBlobReadMastTest[ACL]
* ITBlobReadMastTest[ETAG]
* ITBucketReadMastTest[ACL]
* ITBucketReadMastTest[ETAG]
  • Loading branch information
BenWhitehead committed Dec 28, 2022
1 parent d71bae5 commit a3b46cf
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ public static final class BlobReadMaskTestParameters implements Parameterized.Pa
public ImmutableList<?> parameters() {
ImmutableList<Args<BlobField, BlobInfo>> args =
ImmutableList.of(
new Args<>(BlobField.ACL, LazyAssertion.skip("Waiting for b/217922398 to be fixed")),
new Args<>(BlobField.ACL, LazyAssertion.equal()),
new Args<>(BlobField.BUCKET, LazyAssertion.equal()),
new Args<>(
BlobField.CACHE_CONTROL,
Expand Down Expand Up @@ -155,7 +155,7 @@ public ImmutableList<?> parameters() {
new Args<>(BlobField.CRC32C, LazyAssertion.equal()),
new Args<>(BlobField.CUSTOMER_ENCRYPTION, LazyAssertion.equal()),
new Args<>(BlobField.CUSTOM_TIME, LazyAssertion.equal()),
new Args<>(BlobField.ETAG, LazyAssertion.skip("Waiting for b/217922398 to be fixed")),
new Args<>(BlobField.ETAG, LazyAssertion.equal()),
new Args<>(
BlobField.EVENT_BASED_HOLD,
LazyAssertion.apiaryNullGrpcDefault(false, BlobInfo::getEventBasedHold)),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ public static final class BucketReadMaskTestParameters implements ParametersProv
public ImmutableList<?> parameters() {
ImmutableList<Args<BucketField, BucketInfo>> args =
ImmutableList.of(
new Args<>(
BucketField.ACL, LazyAssertion.skip("Waiting for b/217922398 to be fixed")),
new Args<>(BucketField.ACL, LazyAssertion.equal()),
new Args<>(BucketField.AUTOCLASS, LazyAssertion.equal()),
new Args<>(BucketField.BILLING, LazyAssertion.equal()),
new Args<>(BucketField.CORS, LazyAssertion.equal()),
Expand All @@ -116,8 +115,7 @@ public ImmutableList<?> parameters() {
assertThat(grpcT.getDefaultAcl()).isNull(); // workaround for b/261771961
}),
new Args<>(BucketField.ENCRYPTION, LazyAssertion.equal()),
new Args<>(
BucketField.ETAG, LazyAssertion.skip("Waiting for b/217922398 to be fixed")),
new Args<>(BucketField.ETAG, LazyAssertion.equal()),
new Args<>(BucketField.IAMCONFIGURATION, LazyAssertion.equal()),
new Args<>(BucketField.ID, LazyAssertion.equal()),
new Args<>(BucketField.LABELS, LazyAssertion.equal()),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

package com.google.cloud.storage.it;

import static org.junit.Assume.assumeTrue;
import static com.google.common.truth.Truth.assertThat;

import com.google.api.gax.retrying.RetrySettings;
import com.google.cloud.storage.Blob;
Expand Down Expand Up @@ -929,7 +929,10 @@ public void bucket_BucketSourceOption_metagenerationNotMatch_() {

@Test
public void bucket_BucketSourceOption_userProject_String() {
assumeTrue(false);
// attempt to delete a bucket that doesn't exist
boolean delete = s.delete(bucketName(), BucketSourceOption.userProject("proj"));
assertThat(delete).isFalse();
requestAuditing.assertQueryParam("userProject", "proj");
}

@Test
Expand Down

0 comments on commit a3b46cf

Please sign in to comment.