OpenSearch/plugins/repository-gcs
Tanguy Leroux 28974b5723 Replace mocked client in GCSBlobStoreRepositoryTests by HTTP server (#46255)
This commit removes the usage of MockGoogleCloudStoragePlugin in
GoogleCloudStorageBlobStoreRepositoryTests and replaces it by a
HttpServer that emulates the Storage service. This allows the repository
tests to use the real Google's client under the hood in tests and will allow
us to test the behavior of the snapshot/restore feature for GCS repositories
by simulating random server-side internal errors.

The HTTP server used to emulate the Storage service is intentionally simple
and minimal to keep things understandable and maintainable. Testing full
client options on the server side (like authentication, chunked encoding
etc) remains the responsibility of the GoogleCloudStorageFixture.
2019-09-05 10:37:37 +02:00
..
licenses Upgrade GCS Repository Dependencies (#43142) (#43418) 2019-06-20 16:35:54 +02:00
qa [Backport] Enable caching of rest tests which use integ-test distribution (#44181) 2019-07-10 15:42:28 -07:00
src Replace mocked client in GCSBlobStoreRepositoryTests by HTTP server (#46255) 2019-09-05 10:37:37 +02:00
build.gradle Upgrade GCS Repository Dependencies (#43142) (#43418) 2019-06-20 16:35:54 +02:00