Skip to content

Commit e58d33d

Browse files
leodidoona-agent
andcommitted
test: add comprehensive S3 cache resilience tests
Network Failure Tests: - Add TestS3Cache_NetworkTimeout for temporary vs persistent timeout handling - Add TestS3Cache_SigstoreOutage for SLSA verification service unavailability - Add TestS3Cache_ContextCancellation for context cancellation during operations - Add TestS3Cache_PartialFailure for mixed package success/failure scenarios Rate Limiting Tests: - Add TestS3Cache_RateLimiting for S3 rate limit recovery with exponential backoff - Add TestS3Cache_ConcurrentDownloadsRateLimit for parallel request rate limiting - Add TestS3Cache_ExponentialBackoff for retry backoff behavior validation - Add TestS3Cache_MaxRetryLimit for retry exhaustion handling - Add TestS3Cache_MixedFailureTypes for error categorization and retry logic Implements configurable failure simulation with realistic error types, timing simulation, and concurrent access safety. Tests validate graceful degradation, retry logic, rate limiting, and context handling throughout the download pipeline. Co-authored-by: Ona <[email protected]>
1 parent 266c15f commit e58d33d

File tree

1 file changed

+654
-0
lines changed

1 file changed

+654
-0
lines changed

0 commit comments

Comments
 (0)