test: finish updating conformance test upload cases #2193
Labels
api: storage
Issues related to the googleapis/nodejs-storage API.
priority: p2
Moderately-important priority. Fix may not be included in next release.
type: process
A process-related concern. May include testing, release, or the like.
In #2190 I tried to add two new upload cases including 408 errors. One of them was fine, but the case
"instructions": ["return-503-after-8192K", "return-408"]
failed with the following error on various upload methods:RangeError: The offset is lower than the number of bytes written. The server has 0 bytes and while 8388608 bytes has been uploaded - thus 8388608 bytes are missing. Stopping as this could result in data loss. Initiate a new upload to continue.
This looks like a bug in resetting the offset for the upload after a failure. It may be a bug in the testbench for some particular case; however, I tested manually and verified that the testbench correctly implements the method to query upload status at least for a simple case of uploading in chunks. Some debugging has to be done in the Node library to understand what is failing here.
See here for the test case to add: https://github.com/googleapis/conformance-tests/blob/main/storage/v1/retry_tests.json#L257
The text was updated successfully, but these errors were encountered: