Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: document differing behavior of {get,list}{,default}Acl between HTTP and gRPC #1820

Merged
merged 2 commits into from
Jan 4, 2023

Conversation

BenWhitehead
Copy link
Collaborator

Update ITAccessTest to run UBLA and IAM centric tests for gRPC. Split iam v1 and iam v3 tests out from ITAccessTest to ITBucketIamPolicyTest making them hermetic.

…HTTP and gRPC

Update ITAccessTest to run UBLA and IAM centric tests for gRPC. Split iam v1 and iam v3 tests out from ITAccessTest to ITBucketIamPolicyTest making them hermetic.
@BenWhitehead BenWhitehead requested a review from a team as a code owner December 20, 2022 20:47
@product-auto-label product-auto-label bot added size: l Pull request size is large. api: storage Issues related to the googleapis/java-storage API. labels Dec 20, 2022
Copy link
Collaborator

@sydney-munro sydney-munro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM.

private static void assertPolicyEqual(Policy expected, Policy actual) throws Exception {
TestUtils.assertAll(
() -> assertThat(actual.getVersion()).isEqualTo(expected.getVersion()),
() -> assertBindingsEqual(expected.getBindingsList(), actual.getBindingsList()));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IIUC, this is needed because Etags will differ between the two policies.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Correct, the differing etag values (or in the case of defining a policy ourselves, where there is no etag) prevents being able to depend on equals.

@BenWhitehead BenWhitehead merged commit 9511b17 into main Jan 4, 2023
@BenWhitehead BenWhitehead deleted the tests/bucket-iam branch January 4, 2023 16:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: storage Issues related to the googleapis/java-storage API. size: l Pull request size is large.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants