Skip to content

Storage Content Validation - adding failure tests for content validation decoder#49073

Open
gunjansingh-msft wants to merge 2 commits intofeature/storage/content-validationfrom
feature/storage/decoderfailuretests
Open

Storage Content Validation - adding failure tests for content validation decoder#49073
gunjansingh-msft wants to merge 2 commits intofeature/storage/content-validationfrom
feature/storage/decoderfailuretests

Conversation

@gunjansingh-msft
Copy link
Copy Markdown
Member

Description

Please add an informative description that covers that changes made by the pull request and link all relevant issues.

If an SDK is being regenerated based on a new swagger spec, a link to the pull request containing these swagger spec changes has been included above.

All SDK Contribution checklist:

  • The pull request does not introduce [breaking changes]
  • CHANGELOG is updated for new features, bug fixes or other significant changes.
  • I have read the contribution guidelines.

General Guidelines and Best Practices

  • Title of the pull request is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For more information on cleaning up the commits in your PR, see this page.

Testing Guidelines

  • Pull request includes test coverage for the included changes.

@github-actions github-actions Bot added the Storage Storage Service (Queues, Blobs, Files) label May 6, 2026
@ibrandes ibrandes requested a review from Copilot May 6, 2026 15:21
@ibrandes ibrandes changed the title adding failure tests for content validation decoder Storage Content Validation - adding failure tests for content validation decoder May 6, 2026
int encodedLength = encodedData.remaining();

StructuredMessageDecoder decoder = new StructuredMessageDecoder(encodedLength);
ByteBuffer result = decoder.decodeChunk(encodedData);
Copy link
Copy Markdown
Member

@browndav-msft browndav-msft May 7, 2026

Choose a reason for hiding this comment

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

nit - is possible to rename these to decodedByteBuffer? It just helps to keep track of what it is.

private static final int SEGMENT_HEADER_LENGTH = 10;
private static final int CRC64_LENGTH = 8;

private static ByteBuffer collectFlux(Flux<ByteBuffer> flux) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

nit - could we move the private methods to the bottom? It doesn't affect the functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Storage Storage Service (Queues, Blobs, Files)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants