You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add comprehensive smart retry tests for download with validation
Added 6 new integration tests in BlobMessageDecoderDownloadTests to verify smart retry functionality:
1. downloadStreamWithResponseContentValidationSmartRetryAfterInterruption
- Tests basic smart retry with 3KB data and 1KB segments
- Verifies decoder state preservation and data integrity
2. downloadStreamWithResponseContentValidationSmartRetryMultipleSegments
- Tests with 4KB data split into 512-byte segments (8 segments total)
- Ensures state is preserved correctly across multiple segments
3. downloadStreamWithResponseContentValidationSmartRetryLargeData
- Tests with 8KB data and 2KB segments
- Verifies smart retry works with substantial content
4. downloadStreamWithResponseContentValidationSmartRetrySmallSegments
- Stress-tests with 2KB data and 256-byte segments (many small segments)
- Validates segment boundary handling under high segment count
5. downloadStreamWithResponseContentValidationChecksumIntegrity
- Tests checksum validation during smart retry with 5KB data
- Proves data integrity is maintained across network interruptions
All tests use DownloadRetryOptions to enable automatic retry behavior and verify that:
- Complete decoded data matches original input
- Checksums are validated correctly
- No data loss or corruption occurs
- State tracking works across retries
Co-authored-by: gunjansingh-msft <[email protected]>
Copy file name to clipboardExpand all lines: sdk/storage/azure-storage-blob/src/test/java/com/azure/storage/blob/specialized/BlobMessageDecoderDownloadTests.java
+146Lines changed: 146 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -225,3 +225,149 @@ public void downloadStreamWithResponseContentValidationVeryLargeBlob() throws IO
0 commit comments