GeezerVison is showing github.com — test: remove error string matching by tritone · Pull Request #861 · googleapis/java-storage
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Conversation
tritone
commented
Jun 3, 2021
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. Switched to check the error reason instead of message.
Fixes #853
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
- Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
- Ensure the tests and linter pass
- Code coverage does not decrease (if any source code was changed)
- Appropriate docs were updated (if necessary)
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure.
Fixes googleapis#853
tritone
added a commit
to tritone/nodejs-storage
that referenced
this pull request
Jun 4, 2021
shaffeeullah
added a commit
to googleapis/nodejs-storage
that referenced
this pull request
Jun 7, 2021
* test: fix precondition test
This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.
Same as googleapis/java-storage#861
Fixes #1480
* fix error structure
* test: changed test to look for error code and reason:
* linted files
Co-authored-by: Sameena Shaffeeullah <[email protected]>
danielduhh
pushed a commit
that referenced
this pull request
Jun 17, 2021
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. I added a check of the error Reason instead, which is more
standardized.
Fixes #853
danielduhh
added a commit
that referenced
this pull request
Jun 17, 2021
* feat: configure initial sp version
* fix(test): update blob paths used in storage.it.ITStorageTest#testDownloadPublicBlobWithoutAuthentication (#759)
Port of googleapis/google-cloud-go#3806
Fixes #755
* test: remove error string matching (#861)
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. I added a check of the error Reason instead, which is more
standardized.
Fixes #853
Co-authored-by: BenWhitehead <[email protected]>
Co-authored-by: Chris Cotter <[email protected]>
BenWhitehead
added a commit
that referenced
this pull request
Sep 28, 2021
* feat: Remove client side vaildation for lifecycle conditions (#816)
* Remove client side vaildation for lifecycle conditions
* fix lint and suggest updating
(cherry picked from commit 5ec84cc)
* fix: update BucketInfo translation code to properly handle lifecycle rules (#852)
Fixes #850
(cherry picked from commit 3b1df1d)
* fix: improve error detection and reporting for BlobWriteChannel retry state (#846)
Add new checks to ensure a more informative error than NullPointerException is thrown if the StorageObject or it's size are unable to be resolved on the last chunk.
Fixes #839
(cherry picked from commit d0f2184)
* fix: correct lastChunk retry logic in BlobWriteChannel (#918)
Add new method StorageRpc#queryResumableUpload which allows getting a shallow StorageObject for a resumable upload session which is complete.
Update BlobWriteChannel to use StoageRpc#queryResumableUpload instead of StorageRpc#get when attempting to validate the upload size of an object when it determines the upload is complete and is on the last chunk.
If a BlobWriteChannel is opened with a conditional like IfGenerationMatch it is not possible to simply get the object, as the object can drift generationally while the resumable upload is being performed.
Related to #839
(cherry picked from commit ab0228c)
* test: remove error string matching (#861)
It looks like the text for this error on the backend has changed
(sometimes) from "Precondition Failed" to "At least one of the
pre-conditions you specified did not hold". I don't think it's
really necessary to check the exact message in any case given
that we do check for a code of 412, which implies a precondition
failure. I added a check of the error Reason instead, which is more
standardized.
Fixes #853
(cherry picked from commit 146a3d3)
Co-authored-by: JesseLovelace <[email protected]>
Co-authored-by: Chris Cotter <[email protected]>
sofisl
pushed a commit
to googleapis/google-cloud-node
that referenced
this pull request
Feb 25, 2026
* test: fix precondition test
This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.
Same as googleapis/java-storage#861
Fixes #1480
* fix error structure
* test: changed test to look for error code and reason:
* linted files
Co-authored-by: Sameena Shaffeeullah <[email protected]>
thiyaguk09
pushed a commit
to thiyaguk09/google-cloud-node-fork
that referenced
this pull request
Mar 18, 2026
* test: fix precondition test
This test matches the exact error string from the service, which
has changed. Using the reason instead should be more robust.
Same as googleapis/java-storage#861
Fixes googleapis#1480
* fix error structure
* test: changed test to look for error code and reason:
* linted files
Co-authored-by: Sameena Shaffeeullah <[email protected]>
Reviewers
1 more reviewer
frankyn
frankyn approved these changes
Reviewers whose approvals may not affect merge requirements
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
api: storage
Issues related to the googleapis/java-storage API.
cla: yes
This human has signed the Contributor License Agreement.
Milestone
No milestone
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.
|