Improve testing of Google Cloud Storage API
Description Currently, the testing of the Google Cloud Storage API relies on a very basic HTTP server for mocking request responses. This is insufficient for testing more complex scenarios and can lead to unreliable test results.
We need a better solution for mocking request responses in order to improve the reliability and robustness of our tests.
Regardless of the approach we take, the goal should be to provide a flexible and reliable way to mock responses for a wide range of test cases. This will ensure that our tests accurately reflect the behavior of the live API and allow us to catch more bugs and edge cases.
Example I have no reference code as of now, as I bumped into this whilst working on #1330 , will update the issue when I found something.
Links
- https://github.com/googleapis/google-cloud-go/blob/main/testing.md