Invalid request. The number of bytes uploaded is required to be equal or greater than 262144,
except for the final request (it's recommended to be the exact multiple of 262144).
The received request contained 500 bytes, which does not meet this requirement.
When chunk size is multiple of 262144 both behave in a similar manner.
The small chunk size is handy for some test scenarios, however since it does not match the behaviour of real GCS, it masks a failure scenario that would be good to test with fake gcs.
Should fake GCS mirror this real GCS behaviour where a minimum chunk size is enforced?
We see a different behaviour on fake GCS server when chunk size is below the minimum of 262144 - https://cloud.google.com/storage/docs/performing-resumable-uploads
On fake GCS
accepts the partial upload and responds status code 308 with
On real GCS
we get a 400 with response
When chunk size is multiple of 262144 both behave in a similar manner.
The small chunk size is handy for some test scenarios, however since it does not match the behaviour of real GCS, it masks a failure scenario that would be good to test with fake gcs.
Should fake GCS mirror this real GCS behaviour where a minimum chunk size is enforced?