Repository navigation
test(bindings): fix version state and conditional timestamp assertions - #8465
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Which issue does this PR close?
Related to #5548.
Rationale for this change
Version listings can return version IDs with unknown current state. The generic Go and .NET tests require exactly one current version even when the service does not report that optional metadata, rejecting the GCS version-listing implementation in #5548.
The Go conditional read and stat tests also immediately use
lastModified + 1sas a rejection threshold. That timestamp can still be in the future. Use the returned last-modified timestamp to check the unchanged boundary directly.What changes are included in this PR?
ConditionNotMatchassertions.Are there any user-facing changes?
None. This changes binding behavior tests only.
Breaking changes
Validation
Selected real-provider validation passed: Go GCS 90 subtests, Go versioned S3 103 subtests, and .NET GCS/S3 112 tests each. The version-list cases and the two S3 conditional-time cases executed and passed. Validation combines the exact test blobs in this PR with #5548 to enable the GCS version path.
The separate main HDFS listing failure is tracked by #8377. Complete CI for this PR head remains required.
AI Usage Statement
gpt-6.1-sol. Effort:max. Role: CI analysis, test changes, integration, and provider validation. The original failed conditional requests' wire timestamps were not captured.group/deepseek. Effort:max. Role: Independent source and format review on nier.