Skip to content

Conversation

@BenWhitehead
Copy link
Collaborator

  • Define 3 new content size scenarios to be validated
    1. data is small enough to fit within a single message of a single stream
    2. data requires multiple messages within a single stream
    3. data requires multiple messages within multiple streams
  • Refactor checksum validation centric tests out of ITObjectTest into new ITObjectChecksumSupportTest
  • Move ITOptionRegressionTest.Content to top level as ChecksummedTestContent and flush it out a bit more for cross usage by ITObjectChecksumSupportTest

* Define 3 new content size scenarios to be validated
  1. data is small enough to fit within a single message of a single stream
  2. data requires multiple messages within a single stream
  3. data requires multiple messages within multiple streams
* Refactor checksum validation centric tests out of ITObjectTest into new ITObjectChecksumSupportTest
* Move ITOptionRegressionTest.Content to top level as ChecksummedTestContent and flush it out a bit more for cross usage by ITObjectChecksumSupportTest
@BenWhitehead BenWhitehead requested a review from a team as a code owner October 19, 2022 20:04
@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 Oct 19, 2022
Copy link
Contributor

@frankyn frankyn left a comment

Choose a reason for hiding this comment

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

Only had 1 question; scenarios otherwise LGTM;

// med, multiple messages single stream when resumable
ChecksummedTestContent.of(gen.genBytes(_2MiB + 3)),
// large, multiple messages and multiple streams when resumable
ChecksummedTestContent.of(gen.genBytes(_24MiB + 5)));
Copy link
Contributor

Choose a reason for hiding this comment

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

why the 3 and 5 magic numbers being added?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

just some number to push it past the 2MiB evenly divisible values

@BenWhitehead BenWhitehead merged commit 098056b into feat/grpc-storage Oct 21, 2022
@BenWhitehead BenWhitehead deleted the grpc/more-checksum-validation-tests branch October 21, 2022 19:25
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.

2 participants