diff --git a/shared/storage/base.py b/shared/storage/base.py
index 540629609..22668ca48 100644
--- a/shared/storage/base.py
+++ b/shared/storage/base.py
@@ -86,7 +86,7 @@ def delete_file(self, bucket_name, path):
"""
raise NotImplementedError()
- def delete_files(self, bucket_name, paths=[]):
+ def delete_files(self, bucket_name: str, paths: list[str]) -> list[bool]:
"""Batch deletes a list of files from a given bucket
(what happens to the files that don't exist?)
diff --git a/shared/storage/gcp.py b/shared/storage/gcp.py
index 3dcc1c4b7..48c15e85f 100644
--- a/shared/storage/gcp.py
+++ b/shared/storage/gcp.py
@@ -1,5 +1,6 @@
import gzip
import logging
+from typing import IO
import google.cloud.exceptions
from google.cloud import storage
@@ -26,8 +27,8 @@ def load_credentials(self, gcp_config):
return Credentials.from_service_account_info(gcp_config)
def get_blob(self, bucket_name, path):
- bucket = self.storage_client.get_bucket(bucket_name)
- return storage.Blob(path, bucket)
+ bucket = self.storage_client.bucket(bucket_name)
+ return bucket.blob(path)
def create_root_storage(self, bucket_name="archive", region="us-east-1"):
"""
@@ -48,29 +49,27 @@ def create_root_storage(self, bucket_name="archive", region="us-east-1"):
def write_file(
self,
- bucket_name,
- path,
- data,
+ bucket_name: str,
+ path: str,
+ data: str | bytes | IO,
reduced_redundancy=False,
*,
is_already_gzipped: bool = False,
):
"""
- Writes a new file with the contents of `data`
- (What happens if the file already exists?)
+ Writes a new file with the contents of `data`
+ (What happens if the file already exists?)
Args:
bucket_name (str): The name of the bucket for the file to be created on
path (str): The desired path of the file
- data (str): The data to be written to the file
+ data: The data to be written to the file
reduced_redundancy (bool): Whether a reduced redundancy mode should be used (default: {False})
is_already_gzipped (bool): Whether the file is already gzipped (default: {False})
-
- Raises:
- NotImplementedError: If the current instance did not implement this method
"""
blob = self.get_blob(bucket_name, path)
+
if isinstance(data, str):
data = data.encode()
if isinstance(data, bytes):
@@ -84,7 +83,9 @@ def write_file(
blob.upload_from_file(data)
return True
- def read_file(self, bucket_name, path, file_obj=None, *, retry=0):
+ def read_file(
+ self, bucket_name: str, path: str, file_obj: IO | None = None, retry=0
+ ) -> bytes:
"""Reads the content of a file
Args:
@@ -92,13 +93,13 @@ def read_file(self, bucket_name, path, file_obj=None, *, retry=0):
path (str): The path of the file
Raises:
- NotImplementedError: If the current instance did not implement this method
FileNotInStorageError: If the file does not exist
Returns:
- bytes : The contents of that file, still encoded as bytes
+ bytes: The contents of that file, still encoded as bytes
"""
blob = self.get_blob(bucket_name, path)
+
try:
blob.reload()
if (
@@ -108,10 +109,12 @@ def read_file(self, bucket_name, path, file_obj=None, *, retry=0):
blob.content_type = "text/plain"
blob.content_encoding = "gzip"
blob.patch()
+
if file_obj is None:
return blob.download_as_bytes(checksum="crc32c")
else:
blob.download_to_file(file_obj, checksum="crc32c")
+ return b"" # NOTE: this is to satisfy the return type
except google.cloud.exceptions.NotFound:
raise FileNotInStorageError(f"File {path} does not exist in {bucket_name}")
except google.resumable_media.common.DataCorruption:
@@ -120,7 +123,7 @@ def read_file(self, bucket_name, path, file_obj=None, *, retry=0):
return self.read_file(bucket_name, path, file_obj, retry=1)
raise
- def delete_file(self, bucket_name, path):
+ def delete_file(self, bucket_name: str, path: str) -> bool:
"""Deletes a single file from the storage (what happens if the file doesnt exist?)
Args:
@@ -128,11 +131,10 @@ def delete_file(self, bucket_name, path):
path (str): The path of the file to be deleted
Raises:
- NotImplementedError: If the current instance did not implement this method
FileNotInStorageError: If the file does not exist
Returns:
- bool: True if the deletion was succesful
+ bool: True if the deletion was successful
"""
blob = self.get_blob(bucket_name, path)
try:
@@ -141,7 +143,7 @@ def delete_file(self, bucket_name, path):
raise FileNotInStorageError(f"File {path} does not exist in {bucket_name}")
return True
- def delete_files(self, bucket_name, paths=[]):
+ def delete_files(self, bucket_name: str, paths: list[str]) -> list[bool]:
"""Batch deletes a list of files from a given bucket
(what happens to the files that don't exist?)
@@ -149,20 +151,17 @@ def delete_files(self, bucket_name, paths=[]):
bucket_name (str): The name of the bucket for the file lives
paths (list): A list of the paths to be deletes (default: {[]})
- Raises:
- NotImplementedError: If the current instance did not implement this method
-
Returns:
list: A list of booleans, where each result indicates whether that file was deleted
successfully
"""
- bucket = self.storage_client.get_bucket(bucket_name)
- blobs = [self.get_blob(bucket_name, path) for path in paths]
- blobs_errored = set()
+ bucket = self.storage_client.bucket(bucket_name)
+ blobs = [bucket.blob(path) for path in paths]
+ blobs_errored: set[storage.Blob] = set()
bucket.delete_blobs(blobs, on_error=blobs_errored.add)
return [b not in blobs_errored for b in blobs]
- def list_folder_contents(self, bucket_name, prefix=None, recursive=True):
+ def list_folder_contents(self, bucket_name: str, prefix=None, recursive=True):
"""List the contents of a specific folder
Attention: google ignores the `recursive` param
@@ -171,13 +170,9 @@ def list_folder_contents(self, bucket_name, prefix=None, recursive=True):
bucket_name (str): The name of the bucket for the file lives
prefix: The prefix of the files to be listed (default: {None})
recursive: Whether the listing should be recursive (default: {True})
-
- Raises:
- NotImplementedError: If the current instance did not implement this method
"""
assert recursive
- bucket = self.storage_client.get_bucket(bucket_name)
- return (self._blob_to_dict(b) for b in bucket.list_blobs(prefix=prefix))
-
- def _blob_to_dict(self, blob):
- return {"name": blob.name, "size": blob.size}
+ bucket = self.storage_client.bucket(bucket_name)
+ return (
+ {"name": b.name, "size": b.size} for b in bucket.list_blobs(prefix=prefix)
+ )
diff --git a/tests/unit/storage/cassetes/test_aws/TestAWSStorageService/test_write_then_append_then_read_file.yaml b/tests/unit/storage/cassetes/test_aws/TestAWSStorageService/test_write_then_append_then_read_file.yaml
deleted file mode 100644
index 245bb0b51..000000000
--- a/tests/unit/storage/cassetes/test_aws/TestAWSStorageService/test_write_then_append_then_read_file.yaml
+++ /dev/null
@@ -1,142 +0,0 @@
-interactions:
-- request:
- body: !!python/object/new:_io.BytesIO
- state: !!python/tuple
- - !!binary |
- bG9yZW0gaXBzdW0gZG9sb3IgdGVzdF93cml0ZV90aGVuX3JlYWRfZmlsZSDDoQ==
- - 0
- - null
- headers:
- Content-Length: ['46']
- Content-MD5:
- - !!binary |
- TndJZjQ2RWlDY25mYW90OU4rR2FCUT09
- Expect:
- - !!binary |
- MTAwLWNvbnRpbnVl
- User-Agent:
- - !!binary |
- Qm90bzMvMS45LjIxOCBQeXRob24vMy43LjQgRGFyd2luLzE4LjYuMCBCb3RvY29yZS8xLjEyLjIy
- NA==
- X-Amz-Content-SHA256:
- - !!binary |
- VU5TSUdORUQtUEFZTE9BRA==
- X-Amz-Date:
- - !!binary |
- MjAxOTA5MDlUMTcwNDU4Wg==
- x-amz-storage-class:
- - !!binary |
- U1RBTkRBUkQ=
- method: PUT
- uri: https://felipearchivetest.s3.amazonaws.com/test_write_then_append_then_read_file/result
- response:
- body: {string: ''}
- headers:
- Content-Length: ['0']
- Date: ['Mon, 09 Sep 2019 17:05:00 GMT']
- ETag: ['"37021fe3a12209c9df6a8b7d37e19a05"']
- Server: [AmazonS3]
- x-amz-id-2: [yfsCTYJKXocCjCzeCs6v5bQasfkClg7uYmO+0KagRt2/R4MQszEioMDi+CdgH7U/vjLQn2ymbdE=]
- x-amz-request-id: [0D8F32D4F1A46EBC]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- User-Agent:
- - !!binary |
- Qm90bzMvMS45LjIxOCBQeXRob24vMy43LjQgRGFyd2luLzE4LjYuMCBCb3RvY29yZS8xLjEyLjIy
- NA==
- X-Amz-Content-SHA256:
- - !!binary |
- ZTNiMGM0NDI5OGZjMWMxNDlhZmJmNGM4OTk2ZmI5MjQyN2FlNDFlNDY0OWI5MzRjYTQ5NTk5MWI3
- ODUyYjg1NQ==
- X-Amz-Date:
- - !!binary |
- MjAxOTA5MDlUMTcwNDU5Wg==
- method: GET
- uri: https://felipearchivetest.s3.amazonaws.com/test_write_then_append_then_read_file/result
- response:
- body: {string: "lorem ipsum dolor test_write_then_read_file \xE1"}
- headers:
- Accept-Ranges: [bytes]
- Content-Length: ['46']
- Content-Type: [binary/octet-stream]
- Date: ['Mon, 09 Sep 2019 17:05:00 GMT']
- ETag: ['"37021fe3a12209c9df6a8b7d37e19a05"']
- Last-Modified: ['Mon, 09 Sep 2019 17:05:00 GMT']
- Server: [AmazonS3]
- x-amz-id-2: [/tpzrBn5RZnjqSYHDUkidlw5rP81kOqWvkZA7vGohRNjYidcWIxDJvGv8wIHfQavN0mcFHNA8/w=]
- x-amz-request-id: [6F7225211D7B8954]
- status: {code: 200, message: OK}
-- request:
- body: !!python/object/new:_io.BytesIO
- state: !!python/tuple
- - !!binary |
- bG9yZW0gaXBzdW0gZG9sb3IgdGVzdF93cml0ZV90aGVuX3JlYWRfZmlsZSDDoQptb20sIGxvb2sg
- YXQgbWUsIGFwcGVuZGluZyBkYXRh
- - 0
- - null
- headers:
- Content-Length: ['78']
- Content-MD5:
- - !!binary |
- MlpISHlkek9ESDR2S0JJZDNqNEl4QT09
- Expect:
- - !!binary |
- MTAwLWNvbnRpbnVl
- User-Agent:
- - !!binary |
- Qm90bzMvMS45LjIxOCBQeXRob24vMy43LjQgRGFyd2luLzE4LjYuMCBCb3RvY29yZS8xLjEyLjIy
- NA==
- X-Amz-Content-SHA256:
- - !!binary |
- VU5TSUdORUQtUEFZTE9BRA==
- X-Amz-Date:
- - !!binary |
- MjAxOTA5MDlUMTcwNDU5Wg==
- x-amz-storage-class:
- - !!binary |
- U1RBTkRBUkQ=
- method: PUT
- uri: https://felipearchivetest.s3.amazonaws.com/test_write_then_append_then_read_file/result
- response:
- body: {string: ''}
- headers:
- Content-Length: ['0']
- Date: ['Mon, 09 Sep 2019 17:05:00 GMT']
- ETag: ['"d991c7c9dcce0c7e2f28121dde3e08c4"']
- Server: [AmazonS3]
- x-amz-id-2: [M7Sg/Ujtq0PpMLxBetfk4NwOwvG9JwffhZHNJDpzpO8m+JeD4ybg8+2nXJNM0Fpf6JjTpydiE8I=]
- x-amz-request-id: [FABD3E958A23F16D]
- status: {code: 200, message: OK}
-- request:
- body: null
- headers:
- User-Agent:
- - !!binary |
- Qm90bzMvMS45LjIxOCBQeXRob24vMy43LjQgRGFyd2luLzE4LjYuMCBCb3RvY29yZS8xLjEyLjIy
- NA==
- X-Amz-Content-SHA256:
- - !!binary |
- ZTNiMGM0NDI5OGZjMWMxNDlhZmJmNGM4OTk2ZmI5MjQyN2FlNDFlNDY0OWI5MzRjYTQ5NTk5MWI3
- ODUyYjg1NQ==
- X-Amz-Date:
- - !!binary |
- MjAxOTA5MDlUMTcwNDU5Wg==
- method: GET
- uri: https://felipearchivetest.s3.amazonaws.com/test_write_then_append_then_read_file/result
- response:
- body: {string: "lorem ipsum dolor test_write_then_read_file \xE1\nmom, look at\
- \ me, appending data"}
- headers:
- Accept-Ranges: [bytes]
- Content-Length: ['78']
- Content-Type: [binary/octet-stream]
- Date: ['Mon, 09 Sep 2019 17:05:00 GMT']
- ETag: ['"d991c7c9dcce0c7e2f28121dde3e08c4"']
- Last-Modified: ['Mon, 09 Sep 2019 17:05:00 GMT']
- Server: [AmazonS3]
- x-amz-id-2: [JUs9w5P21EYS5OhHMW9VdCLw8pAVX1S/7qoHDL118k7gE5MKlYadKgQda2pSYIHRU82o8kNxLIg=]
- x-amz-request-id: [C245A636B6202151]
- status: {code: 200, message: OK}
-version: 1
diff --git a/tests/unit/storage/cassetes/test_fallback/TestFallbackStorageService/test_append_to_non_existing_file.yaml b/tests/unit/storage/cassetes/test_fallback/TestFallbackStorageService/test_append_to_non_existing_file.yaml
deleted file mode 100644
index 4bbe5ebdb..000000000
--- a/tests/unit/storage/cassetes/test_fallback/TestFallbackStorageService/test_append_to_non_existing_file.yaml
+++ /dev/null
@@ -1,437 +0,0 @@
-interactions:
-- request:
- body: assertion=eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiZTAwOTg4NzVhNmJlN2ZkMGZiOGQ1YjVlZmQ2YjZmNjYyZWZmNzI5NSJ9.eyJpYXQiOiAxNTgxMzM3MDcyLCAiZXhwIjogMTU4MTM0MDY3MiwgImlzcyI6ICJjb2RlY292LW1hcmtldGluZy1kZXBsb3ltZW50QGdlbnVpbmUtcG9seW1lci0xNjU3MTIuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCAiYXVkIjogImh0dHBzOi8vb2F1dGgyLmdvb2dsZWFwaXMuY29tL3Rva2VuIiwgInNjb3BlIjogImh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZGV2c3RvcmFnZS5mdWxsX2NvbnRyb2wgaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9kZXZzdG9yYWdlLnJlYWRfb25seSBodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2RldnN0b3JhZ2UucmVhZF93cml0ZSJ9.FvvrUPychqbOVDeeuoFljvdrtp6xMEZa5FYses9iETMfJg42JoBdC5-o0xfCKQm47-rQsLlLHIregb8_hCf66RtsC4RwrFDyI7muke0Laq7legSODm_yjlnw5qSTWQeIaFH5OgGo650zPMhJnM7DZukrH1omBE3cy6oBde-BEhMfWjsEWFqye9c1Kf-DDx5pJcvZxZ0mo3pDyimjrxq8eEp2VcU_7ImvksXtigxpih1JDZbV_kyBCNMjb6xlKwGJW4Cwd8Cpph-ajyyXIMELfoWDUE099AxlaJv4DK9TwHa-U7GnE67tzpXbaYu2GUeRx15r6ZiXw_g7uCygR_Umkw&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '987'
- User-Agent:
- - python-requests/2.22.0
- content-type:
- - application/x-www-form-urlencoded
- method: POST
- uri: https://oauth2.googleapis.com/token
- response:
- body:
- string: !!binary |
- H4sIAAAAAAAC/x3PyVKDMAAA0H/JuXRYS+NNNimLGGRa6iUTQ7BYyhLCVsd/t+P7g/cDCKVsGLBo
- r6wBT2AlKtzSbdjF1oSKNzwpSoSwIqq8ygOjhIyKIyf6QNPD2cz8YFo0NymKQMK7U6py7uzlyI5v
- 1ModnsPyS9deGuhrLZpVM/fq8rVeDo5ZeqbUzCTd9WGwPL+nvSt/syLi/d5ZoefHXp1IcRi2zCFC
- LpOrnF2EhPBHVhN4R814PoWXrBqJBz9t+Z4Y9qrby3zDkx13mX0c3RWJQPVRCzaALV3F2YCrR08z
- INyA/ysWa8ceYYsRzjj4/QMr1lhICgEAAA==
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:52 GMT
- Server:
- - scaffolding on HTTPServer2
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Referer
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-XSS-Protection:
- - '0'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:52 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:52 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqmpfCHizQthahDwRhEK7Vr077aLF17R6jb1FHb6SXBbW5TMVAQ2PknncvrmBVp-Ce3I6HTkEgbwK_bjkhs-hzlmV6pRQ
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"error\": {\n \"code\": 404,\n \"message\": \"No such object:\
- \ testingarchive20190210001/test_append_to_non_existing_file/result.txt\"\
- ,\n \"errors\": [\n {\n \"message\": \"No such object: testingarchive20190210001/test_append_to_non_existing_file/result.txt\"\
- ,\n \"domain\": \"global\",\n \"reason\": \"notFound\"\n \
- \ }\n ]\n }\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '345'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:52 GMT
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UrvyILq3aYZnVkl47F8UUnVQrC-s1N1ti5_3_2X7dmqwFfD0sRAuThEGIbC2SDw9Ea1-cg5SCl7Go_tqAEMDhz1pI0ySA
- status:
- code: 404
- message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:52 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:52 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UpMx2QFCAK1P94L1wUhVMPk4-TJlGt741L-a8Fjy6H-CVubTKr-b-DnKCAzFJ3zdauUjs-gRfSGZrzcBLFdObK1hOEO9w
- status:
- code: 200
- message: OK
-- request:
- body: "--===============8296750914872740648==\r\ncontent-type: application/json;\
- \ charset=UTF-8\r\n\r\n{\"name\": \"test_append_to_non_existing_file/result.txt\"\
- }\r\n--===============8296750914872740648==\r\ncontent-type: text/plain\r\n\r\
- \nmom, look at me, appending data\r\n--===============8296750914872740648==--"
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '287'
- User-Agent:
- - python-requests/2.22.0
- content-type:
- - !!binary |
- bXVsdGlwYXJ0L3JlbGF0ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT04Mjk2NzUwOTE0ODcy
- NzQwNjQ4PT0i
- method: POST
- uri: https://storage.googleapis.com/upload/storage/v1/b/testingarchive20190210001/o?uploadType=multipart
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive20190210001/test_append_to_non_existing_file/result.txt/1581337073079476\"\
- ,\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt\"\
- ,\n \"name\": \"test_append_to_non_existing_file/result.txt\",\n \"bucket\"\
- : \"testingarchive20190210001\",\n \"generation\": \"1581337073079476\",\n\
- \ \"metageneration\": \"1\",\n \"contentType\": \"text/plain\",\n \"timeCreated\"\
- : \"2020-02-10T12:17:53.079Z\",\n \"updated\": \"2020-02-10T12:17:53.079Z\"\
- ,\n \"storageClass\": \"STANDARD\",\n \"timeStorageClassUpdated\": \"2020-02-10T12:17:53.079Z\"\
- ,\n \"size\": \"31\",\n \"md5Hash\": \"0KezyzGusHDoY2IpCrO+Gg==\",\n \"mediaLink\"\
- : \"https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt?generation=1581337073079476&alt=media\"\
- ,\n \"crc32c\": \"hqY4xg==\",\n \"etag\": \"CLSpi9T7xucCEAE=\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '896'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:53 GMT
- ETag:
- - CLSpi9T7xucCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqoC7aMWdk6DCWDapCVxZEJIugrTP4ik_aD3AkYsDaBrco3vKBwSKwlfWNdURw5sLPrQeRmEy_f5bLIm8EAbJI6ZwoDbA
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:53 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:53 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Up_yEt3bwhsRYXH-6x1xThLIyV1BKML_eMe--VWVK-P-17yh47ZPKEjzmzUvPmwiWFgTZzmUGVkdFGxIdMfWFQ0EbUDmw
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive20190210001/test_append_to_non_existing_file/result.txt/1581337073079476\"\
- ,\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt\"\
- ,\n \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt?generation=1581337073079476&alt=media\"\
- ,\n \"name\": \"test_append_to_non_existing_file/result.txt\",\n \"bucket\"\
- : \"testingarchive20190210001\",\n \"generation\": \"1581337073079476\",\n\
- \ \"metageneration\": \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\"\
- : \"STANDARD\",\n \"size\": \"31\",\n \"md5Hash\": \"0KezyzGusHDoY2IpCrO+Gg==\"\
- ,\n \"crc32c\": \"hqY4xg==\",\n \"etag\": \"CLSpi9T7xucCEAE=\",\n \"timeCreated\"\
- : \"2020-02-10T12:17:53.079Z\",\n \"updated\": \"2020-02-10T12:17:53.079Z\"\
- ,\n \"timeStorageClassUpdated\": \"2020-02-10T12:17:53.079Z\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '913'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:53 GMT
- ETag:
- - CLSpi9T7xucCEAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:53 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqznCV1OfI2wXCfP_E_96g7alegZwp7hk0NutAKgPhwaTz60_0P_IBk6ZPSg-BchzrRxwdAadkDFfc_g2wEctyfalXU_g
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Connection:
- - keep-alive
- User-Agent:
- - python-requests/2.22.0
- accept-encoding:
- - gzip
- method: GET
- uri: https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_append_to_non_existing_file%2Fresult.txt?generation=1581337073079476&alt=media
- response:
- body:
- string: mom, look at me, appending data
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Disposition:
- - attachment
- Content-Length:
- - '31'
- Content-Type:
- - text/plain
- Date:
- - Mon, 10 Feb 2020 12:17:53 GMT
- ETag:
- - CLSpi9T7xucCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UoC7ze7wXLjP2i-5bVJiQ2yg7AQ0scsvfZdesQ9dHPDwam5FH52gXPuTSYJmTQqjgbtsgGqrNpiOL2VUhoQkYaqDTq1Yg
- X-Goog-Generation:
- - '1581337073079476'
- X-Goog-Hash:
- - crc32c=hqY4xg==,md5=0KezyzGusHDoY2IpCrO+Gg==
- X-Goog-Metageneration:
- - '1'
- X-Goog-Storage-Class:
- - STANDARD
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/unit/storage/cassetes/test_fallback/TestFallbackStorageService/test_write_then_append_then_read_file.yaml b/tests/unit/storage/cassetes/test_fallback/TestFallbackStorageService/test_write_then_append_then_read_file.yaml
deleted file mode 100644
index bc03fa3bb..000000000
--- a/tests/unit/storage/cassetes/test_fallback/TestFallbackStorageService/test_write_then_append_then_read_file.yaml
+++ /dev/null
@@ -1,615 +0,0 @@
-interactions:
-- request:
- body: assertion=eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiZTAwOTg4NzVhNmJlN2ZkMGZiOGQ1YjVlZmQ2YjZmNjYyZWZmNzI5NSJ9.eyJpYXQiOiAxNTgxMzM3MDY5LCAiZXhwIjogMTU4MTM0MDY2OSwgImlzcyI6ICJjb2RlY292LW1hcmtldGluZy1kZXBsb3ltZW50QGdlbnVpbmUtcG9seW1lci0xNjU3MTIuaWFtLmdzZXJ2aWNlYWNjb3VudC5jb20iLCAiYXVkIjogImh0dHBzOi8vb2F1dGgyLmdvb2dsZWFwaXMuY29tL3Rva2VuIiwgInNjb3BlIjogImh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZGV2c3RvcmFnZS5mdWxsX2NvbnRyb2wgaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9kZXZzdG9yYWdlLnJlYWRfb25seSBodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2RldnN0b3JhZ2UucmVhZF93cml0ZSJ9.WLMZAFmeYmb44Omnae6YrpF43tnPEHfyM3UerlkU-MsDyO5AUibBf02W0DOeTBmocdULaasYwpTla1733eXsJccuNcPNNB2XCTEfgUi5LayGdd2OTTTEPV-BCYCyvly2Cvn5win3uWEMqO4UDtfZPjHbvdxzB2znhYDnqZtE6VAJJg5kECz-bAICLSbkWjTNe1QC6E0S0sNDWVtaMPffnPKOqYjLj0a26wORTs1uZCu2chfWil82NFdsYKKQRtGcM-rK_No-kbppItPFbJHyFeXmA_AoILBaxE78l6vZZ9pObOKVwDLsfS2wRjiJsXs92SwbMc6_cCsiVa5xpWVcJQ&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '987'
- User-Agent:
- - python-requests/2.22.0
- content-type:
- - application/x-www-form-urlencoded
- method: POST
- uri: https://oauth2.googleapis.com/token
- response:
- body:
- string: !!binary |
- H4sIAAAAAAAC/x3PS3KCMAAA0LtkbZ3wU+lOUQTlq1BKN5kAiVglBgg/O717nb4bvB+A85y0LRKP
- G2HgHUxY1uf5/MjdTR8Sv9SzMnvmWO0uY+oHLpZ6DZlo7VehRZXJ2Hwllw9Vs3GsQdh0O8sezKMt
- n1SYMrO8X9YSXLpW3C1VTtuIhtWC3kKUrAz5GI/FXTi3nboNogx7i3qQ0ZodxFnmT7askpbUAiqc
- Tizc21tlDArvczyLdEIFVqrC48HqQV3pW7P6gx6lb2JVM4cOab4wHd8bDKfcCwhmgIz82pAWXV89
- RdP1Gfi/IjFx8gpvCG5IA37/AN8twHkKAQAA
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:49 GMT
- Server:
- - scaffolding on HTTPServer2
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Referer
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-XSS-Protection:
- - '0'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:50 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:50 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Up6g0JPCrznFllPtqASPucm5vFGPH0fllDss0RCy_ICFJs597sH7GM6A6hqp_Z62J4g6Va338BC4_HwDUlfD4Dz2pFL8g
- status:
- code: 200
- message: OK
-- request:
- body: "--===============4831429910558492637==\r\ncontent-type: application/json;\
- \ charset=UTF-8\r\n\r\n{\"name\": \"test_write_then_append_then_read_file/result\"\
- }\r\n--===============4831429910558492637==\r\ncontent-type: text/plain\r\n\r\
- \nlorem ipsum dolor test_write_then_read_file \xE1\r\n--===============4831429910558492637==--"
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '303'
- User-Agent:
- - python-requests/2.22.0
- content-type:
- - !!binary |
- bXVsdGlwYXJ0L3JlbGF0ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT00ODMxNDI5OTEwNTU4
- NDkyNjM3PT0i
- method: POST
- uri: https://storage.googleapis.com/upload/storage/v1/b/testingarchive20190210001/o?uploadType=multipart
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive20190210001/test_write_then_append_then_read_file/result/1581337070379144\"\
- ,\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult\"\
- ,\n \"name\": \"test_write_then_append_then_read_file/result\",\n \"bucket\"\
- : \"testingarchive20190210001\",\n \"generation\": \"1581337070379144\",\n\
- \ \"metageneration\": \"1\",\n \"contentType\": \"text/plain\",\n \"timeCreated\"\
- : \"2020-02-10T12:17:50.378Z\",\n \"updated\": \"2020-02-10T12:17:50.378Z\"\
- ,\n \"storageClass\": \"STANDARD\",\n \"timeStorageClassUpdated\": \"2020-02-10T12:17:50.378Z\"\
- ,\n \"size\": \"46\",\n \"md5Hash\": \"NwIf46EiCcnfaot9N+GaBQ==\",\n \"mediaLink\"\
- : \"https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?generation=1581337070379144&alt=media\"\
- ,\n \"crc32c\": \"fChI7w==\",\n \"etag\": \"CIjB5tL7xucCEAE=\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '900'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:50 GMT
- ETag:
- - CIjB5tL7xucCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqRHydZ7JHEotad-420-_u_Ixlf-b4d4RguoUJ5LPAzAHDx3E_gmNpIDxHxxQ1amdsnnv-sH0ANu_TdxmsfWxipTwqjoQ
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:50 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:50 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqraiJYigTbfztpjFhAV2i1EONBlroUSGYgh74PBEOMvh9bU7Yro5tWXOpYJWv_P-CuSZy0fpLa5x-OppZkGEXrhN33DQ
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive20190210001/test_write_then_append_then_read_file/result/1581337070379144\"\
- ,\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult\"\
- ,\n \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?generation=1581337070379144&alt=media\"\
- ,\n \"name\": \"test_write_then_append_then_read_file/result\",\n \"bucket\"\
- : \"testingarchive20190210001\",\n \"generation\": \"1581337070379144\",\n\
- \ \"metageneration\": \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\"\
- : \"STANDARD\",\n \"size\": \"46\",\n \"md5Hash\": \"NwIf46EiCcnfaot9N+GaBQ==\"\
- ,\n \"crc32c\": \"fChI7w==\",\n \"etag\": \"CIjB5tL7xucCEAE=\",\n \"timeCreated\"\
- : \"2020-02-10T12:17:50.378Z\",\n \"updated\": \"2020-02-10T12:17:50.378Z\"\
- ,\n \"timeStorageClassUpdated\": \"2020-02-10T12:17:50.378Z\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '917'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:50 GMT
- ETag:
- - CIjB5tL7xucCEAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:50 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uq2ZcTVcBN9obizJaD3SoKHRls1t9fv4miCUeNP010e8nEkAKbfKR34tUdREFCbzrB_w1bYnInx7LfNveGBSjRyuWAdnA
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Connection:
- - keep-alive
- User-Agent:
- - python-requests/2.22.0
- accept-encoding:
- - gzip
- method: GET
- uri: https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?generation=1581337070379144&alt=media
- response:
- body:
- string: "lorem ipsum dolor test_write_then_read_file \xE1"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Disposition:
- - attachment
- Content-Length:
- - '46'
- Content-Type:
- - text/plain
- Date:
- - Mon, 10 Feb 2020 12:17:51 GMT
- ETag:
- - CIjB5tL7xucCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UoIYeHKlvcUMYCfXD-EwSeI7LZlUVFmt5wBDM7zmdRsp8OvKS36iGlcZLDhiqmPyU3oPKt_Qan_c3KN2Tqhdih87dZOfA
- X-Goog-Generation:
- - '1581337070379144'
- X-Goog-Hash:
- - crc32c=fChI7w==,md5=NwIf46EiCcnfaot9N+GaBQ==
- X-Goog-Metageneration:
- - '1'
- X-Goog-Storage-Class:
- - STANDARD
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:51 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:51 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uq7JlGMUGWlph2hL_iHIVNEMiKdhsdeJgyEpTTo5Y8yIajKlaXJnRMNrwVbBVdXD7QzYiCCQ7NXvIoJt7xftAK4OX6N5A
- status:
- code: 200
- message: OK
-- request:
- body: "--===============0273309970494157924==\r\ncontent-type: application/json;\
- \ charset=UTF-8\r\n\r\n{\"name\": \"test_write_then_append_then_read_file/result\"\
- }\r\n--===============0273309970494157924==\r\ncontent-type: text/plain\r\n\r\
- \nlorem ipsum dolor test_write_then_read_file \xE1\nmom, look at me, appending\
- \ data\r\n--===============0273309970494157924==--"
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '335'
- User-Agent:
- - python-requests/2.22.0
- content-type:
- - !!binary |
- bXVsdGlwYXJ0L3JlbGF0ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT0wMjczMzA5OTcwNDk0
- MTU3OTI0PT0i
- method: POST
- uri: https://storage.googleapis.com/upload/storage/v1/b/testingarchive20190210001/o?uploadType=multipart
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive20190210001/test_write_then_append_then_read_file/result/1581337071325068\"\
- ,\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult\"\
- ,\n \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?generation=1581337071325068&alt=media\"\
- ,\n \"name\": \"test_write_then_append_then_read_file/result\",\n \"bucket\"\
- : \"testingarchive20190210001\",\n \"generation\": \"1581337071325068\",\n\
- \ \"metageneration\": \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\"\
- : \"STANDARD\",\n \"size\": \"78\",\n \"md5Hash\": \"2ZHHydzODH4vKBId3j4IxA==\"\
- ,\n \"crc32c\": \"iGpjfQ==\",\n \"etag\": \"CIyfoNP7xucCEAE=\",\n \"timeCreated\"\
- : \"2020-02-10T12:17:51.324Z\",\n \"updated\": \"2020-02-10T12:17:51.324Z\"\
- ,\n \"timeStorageClassUpdated\": \"2020-02-10T12:17:51.324Z\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '917'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:51 GMT
- ETag:
- - CIyfoNP7xucCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uq7ynixzTFOSM78evxDgZGrO_V8fmKwFJGKUr7XC1IKzcE-P3g0YkAIiEu2XYS3R2WHoB6Dlh_OgXHaqfhzW2UXG6J2zQ
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001\"\
- ,\n \"id\": \"testingarchive20190210001\",\n \"name\": \"testingarchive20190210001\"\
- ,\n \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n\
- \ \"location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"\
- CAE=\",\n \"timeCreated\": \"2020-02-10T12:17:45.261Z\",\n \"updated\":\
- \ \"2020-02-10T12:17:45.261Z\",\n \"iamConfiguration\": {\n \"bucketPolicyOnly\"\
- : {\n \"enabled\": false\n },\n \"uniformBucketLevelAccess\": {\n\
- \ \"enabled\": false\n }\n },\n \"locationType\": \"multi-region\"\
- \n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '586'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:51 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:51 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Ur4NcylQvl02msGNc3gOHl13bNEqD4gtp24dTDLI1eBxkAb1MCm5oE7fFMD886mAA_TKac0_YK3PBa2Ca17PXtXQEyyQQ
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive20190210001/test_write_then_append_then_read_file/result/1581337071325068\"\
- ,\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult\"\
- ,\n \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?generation=1581337071325068&alt=media\"\
- ,\n \"name\": \"test_write_then_append_then_read_file/result\",\n \"bucket\"\
- : \"testingarchive20190210001\",\n \"generation\": \"1581337071325068\",\n\
- \ \"metageneration\": \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\"\
- : \"STANDARD\",\n \"size\": \"78\",\n \"md5Hash\": \"2ZHHydzODH4vKBId3j4IxA==\"\
- ,\n \"crc32c\": \"iGpjfQ==\",\n \"etag\": \"CIyfoNP7xucCEAE=\",\n \"timeCreated\"\
- : \"2020-02-10T12:17:51.324Z\",\n \"updated\": \"2020-02-10T12:17:51.324Z\"\
- ,\n \"timeStorageClassUpdated\": \"2020-02-10T12:17:51.324Z\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '917'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:17:51 GMT
- ETag:
- - CIyfoNP7xucCEAE=
- Expires:
- - Mon, 10 Feb 2020 12:17:51 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uog-m9CBG6L4cRaD6AAnt68nakA9wxPHpRKQUNEAGZtzd5FdW9HWei3N_vk7N_4K7Xv_2Vn3TOp0ITHKNi0XCjxzYv7Uw
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Connection:
- - keep-alive
- User-Agent:
- - python-requests/2.22.0
- accept-encoding:
- - gzip
- method: GET
- uri: https://storage.googleapis.com/download/storage/v1/b/testingarchive20190210001/o/test_write_then_append_then_read_file%2Fresult?generation=1581337071325068&alt=media
- response:
- body:
- string: "lorem ipsum dolor test_write_then_read_file \xE1\nmom, look at me,\
- \ appending data"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Disposition:
- - attachment
- Content-Length:
- - '78'
- Content-Type:
- - text/plain
- Date:
- - Mon, 10 Feb 2020 12:17:52 GMT
- ETag:
- - CIyfoNP7xucCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uo6G1qyB1DKSLm8W5qUjyykR6heIPtT6b9-f3CBhlimnt9gZPzJffZpLlkYbqBtoRlcpnhwzMs_Z40S-7DORAIsHbYuxg
- X-Goog-Generation:
- - '1581337071325068'
- X-Goog-Hash:
- - crc32c=iGpjfQ==,md5=2ZHHydzODH4vKBId3j4IxA==
- X-Goog-Metageneration:
- - '1'
- X-Goog-Storage-Class:
- - STANDARD
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_append_to_non_existing_file.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_append_to_non_existing_file.yaml
deleted file mode 100644
index ade09e4e8..000000000
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_append_to_non_existing_file.yaml
+++ /dev/null
@@ -1,416 +0,0 @@
-interactions:
-- request:
- body: assertion=eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiYWVlMzMxYmEyNzQ2OTljZWNmNjMwNzgxMzdmNDNhODM0NGY0YWM4ZiJ9.eyJpYXQiOiAxNjcyNzc2MDM3LCAiZXhwIjogMTY3Mjc3OTYzNywgImlzcyI6ICJsb2NhbHN0b3JhZ2V0ZXN0ZXJAZ2VudWluZS1wb2x5bWVyLTE2NTcxMi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsICJhdWQiOiAiaHR0cHM6Ly9vYXV0aDIuZ29vZ2xlYXBpcy5jb20vdG9rZW4iLCAic2NvcGUiOiAiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9kZXZzdG9yYWdlLmZ1bGxfY29udHJvbCBodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2RldnN0b3JhZ2UucmVhZF9vbmx5IGh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZGV2c3RvcmFnZS5yZWFkX3dyaXRlIn0.yYrVaco26H1z23sWNfYfNITZFemBktoVbMMdTD8l4raN8pRL2F8ZbYre1QJqfxVYgTJ5gGuZYFv5wiQ0F1nTz0uLg94VyDZAURdA2rBOq4FbtGQT09ec9fpIyvb5fTtYCzDSBe9O5u2mjLIpizPr3nA3KVQR4QOn-jxb6YPxQ-zdRkb67xyg4UOiZ8mSbx98nsWoahgsBGivB0PWRGHKL8r0lA2oGCfNAglufkzlRGlU7UKrCb0Z1Nx4J3xH4CIEZMbwF-zE2HFebEJbZ-67DXnDmPZ3voPFZ4ilEfP4gP2aB-3pBBiRNpgqBxmv4edD55To7llBV8MZWh2352_BJQ&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '974'
- Content-Type:
- - application/x-www-form-urlencoded
- User-Agent:
- - python-requests/2.26.0
- method: POST
- uri: https://oauth2.googleapis.com/token
- response:
- body:
- string: !!binary |
- H4sIAAAAAAAC/+3US3KCMAAA0LtkLYwon0l3QPjYOlAERNhkkpha5CMEpWind6/TVQ/BO8T7BoQx
- Pgz4eql4C17AnaygzGS6NBOj7s629CqhzM6pjhq7PVjIJOZXsj9NmetJNxKtbpFVbOI0gl6b7Jy6
- nxxk9GhbVHWxdO7GeCO6NuLAZJ8dsYZIVJVhQ1E9fMMPczOIveZUao0SZAxLPO6qcOvs6xP92EFJ
- GVOVXNZ5HxZE9xjJvXcV1dOo9n5yfssy2vNyVB7tEJClLnB60ES2C+nR5UraB8OlhFKzcZSjVQSP
- qUV2qmDWlLSrmUpd6zqJWJ7NZv+BBeBTVwo+4PL5wVqDcAH+csDXe8efQ1icCC7Azy+T3FDuOwQA
- AA==
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:37 GMT
- Server:
- - scaffolding on HTTPServer2
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Referer
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-XSS-Protection:
- - '0'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/49cd7c0a-e632-4b3b-99b8-ac5e01b85e58
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:37 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:37 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdtedwHg0S_6IBcf81ETB8WuvXOpdo0zBheeWJ8a0WsJt9lnpXX19svcRrz5UPLzXPuT1-fuyvHuVyUBgvLc_gVBs5rm8wT0
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/8b9e0f55-b47d-4cbc-90f3-6f392f13a0f7
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"error":{"code":404,"message":"No such object: testingarchive02/test_append_to_non_existing_file/result.txt","errors":[{"message":"No
- such object: testingarchive02/test_append_to_non_existing_file/result.txt","domain":"global","reason":"notFound"}]}}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '251'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:38 GMT
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdv2ocgWIcCC2pW8Wo1i9xF6KpIrFCLvQ_9ZUxY2IBkC7fA60LQWaC0IcPBsgsmc--gq4jM2pa9jwNDrFlB1ivPmOpBiN5Wt
- status:
- code: 404
- message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/40484f7d-0686-4d45-ae3d-7fd8bdf344b4
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:38 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:38 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdv0R0qscMR8ZCbx3JQcEL03evsA3I8CTmwdG9WGxr24AJOYv2t45OvnqxwPItGmLycNOjgTd3-9QlzTHutlPxK4s3lvYVT6
- status:
- code: 200
- message: OK
-- request:
- body: !!binary |
- LS09PT09PT09PT09PT09PT0yMzU0MDE1MDY4NjAxMTczODMyPT0NCmNvbnRlbnQtdHlwZTogYXBw
- bGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA0KDQp7Im5hbWUiOiAidGVzdF9hcHBlbmRfdG9f
- bm9uX2V4aXN0aW5nX2ZpbGUvcmVzdWx0LnR4dCIsICJjb250ZW50VHlwZSI6ICJ0ZXh0L3BsYWlu
- IiwgImNvbnRlbnRFbmNvZGluZyI6ICJnemlwIn0NCi0tPT09PT09PT09PT09PT09MjM1NDAxNTA2
- ODYwMTE3MzgzMj09DQpjb250ZW50LXR5cGU6IHRleHQvcGxhaW4NCg0KH4sIAGWJtGMC/8vNz9VR
- yMnPz1ZILFHITdVRSCwoSM1LycxLV0hJLEkEAMTXCy8fAAAADQotLT09PT09PT09PT09PT09PTIz
- NTQwMTUwNjg2MDExNzM4MzI9PS0t
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '363'
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/27889d06-f257-433a-9e1d-39337bc66e46
- content-type:
- - !!binary |
- bXVsdGlwYXJ0L3JlbGF0ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT0yMzU0MDE1MDY4NjAx
- MTczODMyPT0i
- x-upload-content-type:
- - text/plain
- method: POST
- uri: https://storage.googleapis.com/upload/storage/v1/b/testingarchive02/o?uploadType=multipart
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive02/test_append_to_non_existing_file/result.txt/1672776038333065\",\n
- \ \"selfLink\": \"https://www.googleapis.com/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt\",\n
- \ \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt?generation=1672776038333065&alt=media\",\n
- \ \"name\": \"test_append_to_non_existing_file/result.txt\",\n \"bucket\":
- \"testingarchive02\",\n \"generation\": \"1672776038333065\",\n \"metageneration\":
- \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\": \"STANDARD\",\n
- \ \"size\": \"51\",\n \"md5Hash\": \"k35a4YITeQkkV61fuOcqvg==\",\n \"contentEncoding\":
- \"gzip\",\n \"crc32c\": \"VBLCsA==\",\n \"etag\": \"CIn1tqyYrPwCEAE=\",\n
- \ \"timeCreated\": \"2023-01-03T20:00:38.371Z\",\n \"updated\": \"2023-01-03T20:00:38.371Z\",\n
- \ \"timeStorageClassUpdated\": \"2023-01-03T20:00:38.371Z\"\n}\n"
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '910'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:38 GMT
- ETag:
- - CIn1tqyYrPwCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvxC4ZoZ96C9iTOt10lsVNXsiDK6VAkc-qe50xFIexvC50j0KabPJg4hjjsvVqiadxzbTej35Gwyx120MKgDKJk920PGqte
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/1c6cb0f8-b6ab-49cb-9218-e7dda0eee1ec
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:38 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:38 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdtqwNZFwCmw5NAciQ02bbkkthbLQCYoJusieB1B8-MxCXIxSLK24ot_5pEbWqLiPeZJBVKZDff9e5rOSsn90edF9CU04pCS
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/ab28dcd0-be75-4000-bf1e-fde8acbb2913
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#object","id":"testingarchive02/test_append_to_non_existing_file/result.txt/1672776038333065","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt","mediaLink":"https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt?generation=1672776038333065&alt=media","name":"test_append_to_non_existing_file/result.txt","bucket":"testingarchive02","generation":"1672776038333065","metageneration":"1","contentType":"text/plain","storageClass":"STANDARD","size":"51","md5Hash":"k35a4YITeQkkV61fuOcqvg==","contentEncoding":"gzip","crc32c":"VBLCsA==","etag":"CIn1tqyYrPwCEAE=","timeCreated":"2023-01-03T20:00:38.371Z","updated":"2023-01-03T20:00:38.371Z","timeStorageClassUpdated":"2023-01-03T20:00:38.371Z"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '836'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:38 GMT
- ETag:
- - CIn1tqyYrPwCEAE=
- Expires:
- - Tue, 03 Jan 2023 20:00:38 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvGdcwtp0aHcPQxbAzFiQUZZPMMUNFynbOiV_5JtZ9YU2Iw1ZRYXxcsqfiJPnObVQSHJ9Ro8GuOTUp5sXWD5SCeOyIz8fyH
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/763cdbbf-455a-49ab-9183-414e0fab3d4e
- accept-encoding:
- - gzip
- content-type:
- - application/json; charset=UTF-8
- x-upload-content-type:
- - application/json; charset=UTF-8
- method: GET
- uri: https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_append_to_non_existing_file%2Fresult.txt?alt=media&generation=1672776038333065
- response:
- body:
- string: !!binary |
- H4sIAGWJtGMC/8vNz9VRyMnPz1ZILFHITdVRSCwoSM1LycxLV0hJLEkEAMTXCy8fAAAA
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Disposition:
- - attachment
- Content-Encoding:
- - gzip
- Content-Type:
- - text/plain
- Date:
- - Tue, 03 Jan 2023 20:00:39 GMT
- ETag:
- - CIn1tqyYrPwCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Accept-Encoding
- X-GUploader-UploadID:
- - ADPycdvsdXSdZEtzOno0EO4dbTod2VV7RpYjAusNjIDsfRKIaOJRlicnafwKQDdti4PdJjo26ZP_M2jYDRS6G3-jLc7nCbD9Imp5
- X-Goog-Generation:
- - '1672776038333065'
- X-Goog-Hash:
- - crc32c=VBLCsA==,md5=k35a4YITeQkkV61fuOcqvg==
- X-Goog-Metageneration:
- - '1'
- X-Goog-Storage-Class:
- - STANDARD
- X-Goog-Stored-Content-Encoding:
- - gzip
- X-Goog-Stored-Content-Length:
- - '51'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_batch_delete_files.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_batch_delete_files.yaml
index f0f5950a0..b74ccc0d9 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_batch_delete_files.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_batch_delete_files.yaml
@@ -54,58 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:50 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:50 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Up517juORY39n_8QLb2WSR1HKU6KLe0C5EBKS2P_DmnqMFwoE_b67PeohSg89bf1oDZO3rvnsf7Me02BURgi93XJ2GMZw
- status:
- code: 200
- message: OK
- request:
body: "--===============2930661002166182421==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"test_batch_delete_files/result_1.txt\"}\r\
@@ -169,58 +117,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:50 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:50 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UoWqiYgxFb7493IqFsEQZswM5u2sAmXTHzkJuFPOzx3IK1Md1QaTxSWQt_F2XxG4zasCyME_AbuWSALEjSSREriID230Q
- status:
- code: 200
- message: OK
- request:
body: "--===============7062073550138089903==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"test_batch_delete_files/result_3.txt\"}\r\
@@ -284,214 +180,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:50 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:50 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UrPj4BV22mo-ubGXsvcDLZP9_VR6aTNdmzOA6IPwWQcWvIMPCTLO-X_PIN0QuMjpaBPf6Eguo398wU0kHDomzfvh9aagA
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:51 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:51 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqD34KfuhDmXuUbyznCz0MfpK4s-xajb3ptqQyzyKeB0oXid7NxRxbwPXnWj_e31QTHADksSHtYy4G53VS9jOmB0DC1WA
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:51 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:51 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UrQqYY-YNo3JLlHwawnDjERY8_iESMNgregJkALgKc0vHeJKnjeWwt3oHHricioxGQjTlkLtJyfiqSzxxbnUz5fA0IURg
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:51 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:51 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UoidnBOluiZH9jr_YKQbDn1Wj0Qb9ysy-RhFyM8hsgULzMSDIeAgUy5MBh7_hyVoKH-YYtx3mOg4UU4hjIE6kv0CsNXgg
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -637,58 +325,6 @@ interactions:
status:
code: 204
message: No Content
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:52 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:52 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UoI1cVeMk-EBOxwhxT9AICl3Q_TPXrDFSeiosgqOVdngbANviVvpl9d8AJPpJMhkoA3mIXgrQHfsqqcgFcGAtqYNFN2Xw
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -738,58 +374,6 @@ interactions:
status:
code: 404
message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:52 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:52 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UrG_FsjwLIGWFIRxhpluAOhBZtW14HQFPob-4B4VXIJp-6JtpqGP7lsktkW9rRVGDttP73GzZQbn9yoxXtlZ-GkddnNSg
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -839,58 +423,6 @@ interactions:
status:
code: 404
message: Not Found
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:53 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:53 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UpfQSIYsuB_7SpFxTbnefUThMZalJVl6GQIFs4zL6Vpe-JkkjKE0jv1PbEuqcVXKIlvaHBa0sAl15f0P8ZFvYqiFZmA4g
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_delete_file_doesnt_exist.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_delete_file_doesnt_exist.yaml
index bb2e6db12..dbc5a9253 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_delete_file_doesnt_exist.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_delete_file_doesnt_exist.yaml
@@ -54,58 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:49 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:49 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Up7ltOARu0VTNlIH1OQmJjPqGIsbNRv7MiM_n8nlfYz_2i1TT2I_89NwkdqFd1XT4wzxo8cGw7NLqFu0zqxX-WC6sk6bw
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_list_folder_contents.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_list_folder_contents.yaml
index e1a05b7e0..333e66cfa 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_list_folder_contents.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_list_folder_contents.yaml
@@ -54,58 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:53 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:53 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UoBDxocs2in6if1oXso3_PNgxE4xkH7vZEHStUCDDZb13bQZkaKqhdTjp9p7I1mFYpB1K3rI68HZ_44jMbfSqHXkHw17Q
- status:
- code: 200
- message: OK
- request:
body: "--===============6734063633711224668==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"thiago/test_list_folder_contents/result_1.txt\"\
@@ -170,58 +118,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:54 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:54 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UrDrQvtcBfHXx3gcypk_Q3cM0fQEDOxlLIa6gyUQNusrliVQtpsBDc-JgbrNcdZ345H_bk7nBYrXsAjcJML52iqlO4GjA
- status:
- code: 200
- message: OK
- request:
body: "--===============3925783367096079886==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"thiago/test_list_folder_contents/result_2.txt\"\
@@ -286,58 +182,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:54 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:54 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqHrCfDs6UkazPjLcpdHKGsxaPnH0B1OQKg-xN6_xS-g9pqsgkdfenk1bhQwFucsvQjO49-fECQaqhkVC3cBs3bHKz3vw
- status:
- code: 200
- message: OK
- request:
body: "--===============7939080667174842765==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"thiago/test_list_folder_contents/result_3.txt\"\
@@ -402,58 +246,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:55 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:55 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Upve3oxJJnVF_6ywEe_PiWq8cURWWPabTWpciKDBoP8HYR1_wO8T7sKfVeZVK2MJim7rfYs4CmWf7_Y5r5Ld2cvbBWhzA
- status:
- code: 200
- message: OK
- request:
body: "--===============0999895352831809952==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"thiago/test_list_folder_contents/f1/result_1.txt\"\
@@ -518,58 +310,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:55 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:55 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UpSxV4afyg3NsLhAWSUozoTXDD_UfkepuQn13dDosADrG1aa_ob6f7-CxC8i2z5r2tcN0EXrgxOACFhhIqm8xIA2gB4Nw
- status:
- code: 200
- message: OK
- request:
body: "--===============4142567459696110731==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"thiago/test_list_folder_contents/f1/result_2.txt\"\
@@ -634,58 +374,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:56 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:56 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UrSOZFKgkGBiYjZoR5FytnWHNGEwK6OiNtocuSeCFVStHxhXL2WUW77PIrCmiuHcHA_t-6h0UmE2G0UVMTLyq0f1gQsEw
- status:
- code: 200
- message: OK
- request:
body: "--===============5767174356499046840==\r\ncontent-type: application/json;\
\ charset=UTF-8\r\n\r\n{\"name\": \"thiago/test_list_folder_contents/f1/result_3.txt\"\
@@ -750,58 +438,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:56 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:56 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uom583mwEVWEwUfJ1ufsFMeD1Y8ST7I0mkb2EG-O6VRsszpqX780ynOV2sCWgwCAZa2AS72czP6kfefNnJj_Ow5bgWf2A
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -911,58 +547,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:57 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:57 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2UqOUATas-HCntRudjBAZC398axgA97wT45YhT96lFKufa1A7bbVhrM44oBaUjzvqryy6EjeItO4yMYt4UgLiHPR8TC4Jw
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_manually_then_read_then_write_then_read_file.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_manually_then_read_then_write_then_read_file.yaml
index 7daf2a60c..c77d8d78c 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_manually_then_read_then_write_then_read_file.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_manually_then_read_then_write_then_read_file.yaml
@@ -54,50 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/f90fe120-0ab3-4bc1-87f6-68c3f7838ca2
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:39:41 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:39:41 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycduGfW4Sei2ceXaqOGDDYlQ_-08nwqodtE8LJK4diKV4N5VklCr--tY_0XGuU347jKpi4M1qbX3jvw_0AMJivhT2b6wQAeI_
- status:
- code: 200
- message: OK
- request:
body: "--===============8884885407156052639==\r\ncontent-type: application/json;
charset=UTF-8\r\n\r\n{\"name\": \"test_manually_then_read_then_write_then_read_file/result01\"}\r\n--===============8884885407156052639==\r\ncontent-type:
@@ -163,50 +119,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/49c8e6fc-72d9-4357-af27-42f49b08a489
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:39:41 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:39:41 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdusFfNmf1xZjr_NMX2VCVnKxXApb3Mm_MCeBtSa4yFL95GgR4m0BereAa5KLSLJoP8u-on3scyMw0OJt3Iae6XPmQ
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -359,50 +271,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/094c260c-2aab-4651-8632-4c4b2fc891c4
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:39:42 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:39:42 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdsbzz2XhcJQyZmJwn3sJNzOWy2S_vA4z9LnZtVIKMXEVOsFPgUM6CGp_xvsJg3e-kkViJmXy-ie_lVjzbhneQgf_Q
- status:
- code: 200
- message: OK
- request:
body: !!binary |
LS09PT09PT09PT09PT09PT0yNjg3NDI3NTk2NjkxNDkxNDM3PT0NCmNvbnRlbnQtdHlwZTogYXBw
@@ -474,50 +342,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/8b94802b-4405-41fc-9638-03535e1bd946
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:39:42 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:39:42 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdtOAxRrdaVwQvBjyJ0LzEUt0mMpa5KYMJI-lf_SODiW03czmKFLzdFfFM_pNWQVgt-WutRoVaNL18Xnxz3ZNiDSoA
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -631,50 +455,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/871f41c9-2404-4ca4-abf3-a9b58d2bd80f
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:39:44 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:39:44 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdujr_5KiBJwfatjOMqQ5pIXE60M9Tqp5fxiUM-w0qRYhjG61TteS7d6aVYqdJhzlcOVy8Wnplug_6-JFq1VAMeLbQ
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_application_gzip.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_application_gzip.yaml
index 1005353c8..8d3757997 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_application_gzip.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_application_gzip.yaml
@@ -54,58 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:45 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:45 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Uo7rJwQ0sri7d5N9n1nzkhSTEuojN80Hpf1_gWT0vt-VRC47Z7l_EzLousg3qFWug4JVhk8Yq7dSzMA_Ce5LKF0tsN-BQ
- status:
- code: 200
- message: OK
- request:
body: !!binary |
LS09PT09PT09PT09PT09PT0xNjQ3NjYxNTQ1NzQ4MTQ2NjQ2PT0NCmNvbnRlbnQtdHlwZTogYXBw
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_does_not_exist.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_does_not_exist.yaml
index 78a6c0374..35783e860 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_does_not_exist.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_read_file_does_not_exist.yaml
@@ -54,58 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- X-Goog-API-Client:
- - gl-python/3.7.6 gax/1.16.0 gapic/1.18.0 gccl/1.18.0
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive004?projection=noAcl&prettyPrint=false
- response:
- body:
- string: "{\n \"kind\": \"storage#bucket\",\n \"selfLink\": \"https://storage.googleapis.com/storage/v1/b/testingarchive004\"\
- ,\n \"id\": \"testingarchive004\",\n \"name\": \"testingarchive004\",\n\
- \ \"projectNumber\": \"582817289294\",\n \"metageneration\": \"1\",\n \"\
- location\": \"US\",\n \"storageClass\": \"STANDARD\",\n \"etag\": \"CAE=\"\
- ,\n \"timeCreated\": \"2020-02-10T12:12:27.090Z\",\n \"updated\": \"2020-02-10T12:12:27.090Z\"\
- ,\n \"iamConfiguration\": {\n \"bucketPolicyOnly\": {\n \"enabled\"\
- : false\n },\n \"uniformBucketLevelAccess\": {\n \"enabled\": false\n\
- \ }\n },\n \"locationType\": \"multi-region\"\n}\n"
- headers:
- Alt-Svc:
- - quic=":443"; ma=2592000; v="46,43",h3-Q050=":443"; ma=2592000,h3-Q049=":443";
- ma=2592000,h3-Q048=":443"; ma=2592000,h3-Q046=":443"; ma=2592000,h3-Q043=":443";
- ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '562'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 10 Feb 2020 12:12:45 GMT
- ETag:
- - CAE=
- Expires:
- - Mon, 10 Feb 2020 12:12:45 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - AEnB2Ur4g7lv-PA842wFXjARJ0LtGHUROxI-T3HUWxdOrlWOdEZUlk6ZkwZ57CoAvc2tDtBdgs2DFwR2MlNQi7kxONcNSDjimg
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_append_then_read_file.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_append_then_read_file.yaml
deleted file mode 100644
index d0b97d46d..000000000
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_append_then_read_file.yaml
+++ /dev/null
@@ -1,599 +0,0 @@
-interactions:
-- request:
- body: assertion=eyJ0eXAiOiAiSldUIiwgImFsZyI6ICJSUzI1NiIsICJraWQiOiAiYWVlMzMxYmEyNzQ2OTljZWNmNjMwNzgxMzdmNDNhODM0NGY0YWM4ZiJ9.eyJpYXQiOiAxNjcyNzc2MDM0LCAiZXhwIjogMTY3Mjc3OTYzNCwgImlzcyI6ICJsb2NhbHN0b3JhZ2V0ZXN0ZXJAZ2VudWluZS1wb2x5bWVyLTE2NTcxMi5pYW0uZ3NlcnZpY2VhY2NvdW50LmNvbSIsICJhdWQiOiAiaHR0cHM6Ly9vYXV0aDIuZ29vZ2xlYXBpcy5jb20vdG9rZW4iLCAic2NvcGUiOiAiaHR0cHM6Ly93d3cuZ29vZ2xlYXBpcy5jb20vYXV0aC9kZXZzdG9yYWdlLmZ1bGxfY29udHJvbCBodHRwczovL3d3dy5nb29nbGVhcGlzLmNvbS9hdXRoL2RldnN0b3JhZ2UucmVhZF9vbmx5IGh0dHBzOi8vd3d3Lmdvb2dsZWFwaXMuY29tL2F1dGgvZGV2c3RvcmFnZS5yZWFkX3dyaXRlIn0.NCUVvhsF3-lLzK6SDizWRZf1PdoIuJ8TkA9Ba61rrFfw22ug5yRLwoI-Si_53xYspsuQJ2lCeth0ZxaSgy09NVZh43fCbJl8AbZf9pIdBrsY3hhP1cZGvoc2TdzLa1rxIKNp6ssY6v0o5V5UIyl_8-X41mBqccrSmXeOwp19p1bBIO2HNkVYR8UMfxMmQpiYVluijlZzPVju2sxNWJ2sQxkiq_-hHM9xkOZRtkXlNUoaQpasPMOmqc0pQnWDi7so3SVdbeDQqbwUBEB7TSrDsMpD3AE3_8rx8zBF2-dI0Y1Rp049ImaofXnMcSQ18H4bATtLRVXdfudiUTRlayTLrw&grant_type=urn%3Aietf%3Aparams%3Aoauth%3Agrant-type%3Ajwt-bearer
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '974'
- Content-Type:
- - application/x-www-form-urlencoded
- User-Agent:
- - python-requests/2.26.0
- method: POST
- uri: https://oauth2.googleapis.com/token
- response:
- body:
- string: !!binary |
- H4sIAAAAAAAC/+3US3KCMAAA0LtkLQ4IAunOgF8+jgWLumESJg6J/ENE7PTudbrqIXyHeN8AZxkV
- Iu3rG63ABxjxDE6zKVEXsVU03Fn2tu/GlZqrvVnt6Nies9rOHJR4Vnlnx6Ew60QbS1whPU5O2/hi
- HN002Eb5oSTWMMsW+1CY9i4f4sMo5xITIdH2wJXkqwh5qGKuO9aSRym5e4mTaFxBJDTQqlNO+/iK
- oPCjpkYzz/OuZ36BzC8vGmwLk6/sUOEjWUdUWs3GM2TLVn2wX7uYbZby8cBcVYNPx43SwQlOz10Q
- yHWJ2dwXtmW4JIeVq9+mb29v/4EJoI+GdVSk7PWBPodwAv5ySPuxoa8hEMUd7cDPL/H97dM7BAAA
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private
- Content-Encoding:
- - gzip
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:34 GMT
- Server:
- - scaffolding on HTTPServer2
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Referer
- X-Content-Type-Options:
- - nosniff
- X-Frame-Options:
- - SAMEORIGIN
- X-XSS-Protection:
- - '0'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/eb35c23e-5ea2-4543-a27d-88f00617c9dc
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:35 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:35 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycduCG1VuVo7qNUA8zKlMS_jqors56fqLOdeVnJhGCffg2NJsW1rHD4NrpuYmzL6sL2r-_yAr9s-iidb3_vF9CxuIywjO-TD7
- status:
- code: 200
- message: OK
-- request:
- body: !!binary |
- LS09PT09PT09PT09PT09PT0wMzk5OTU5NjIxMjIxNjEzMTIyPT0NCmNvbnRlbnQtdHlwZTogYXBw
- bGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA0KDQp7Im5hbWUiOiAidGVzdF93cml0ZV90aGVu
- X2FwcGVuZF90aGVuX3JlYWRfZmlsZS9yZXN1bHQiLCAiY29udGVudFR5cGUiOiAidGV4dC9wbGFp
- biIsICJjb250ZW50RW5jb2RpbmciOiAiZ3ppcCJ9DQotLT09PT09PT09PT09PT09PTAzOTk5NTk2
- MjEyMjE2MTMxMjI9PQ0KY29udGVudC10eXBlOiB0ZXh0L3BsYWluDQoNCh+LCABiibRjAv/LyS9K
- zVXILCguzVVIyc/JL1IoSS0uiS8vyixJjS/JSM2LL0pNTIlPy8xJVTi8EAAULvu4LgAAAA0KLS09
- PT09PT09PT09PT09PT0wMzk5OTU5NjIxMjIxNjEzMTIyPT0tLQ==
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '379'
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/d908a558-7fff-4f68-8462-401d93da2199
- content-type:
- - !!binary |
- bXVsdGlwYXJ0L3JlbGF0ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT0wMzk5OTU5NjIxMjIx
- NjEzMTIyPT0i
- x-upload-content-type:
- - text/plain
- method: POST
- uri: https://storage.googleapis.com/upload/storage/v1/b/testingarchive02/o?uploadType=multipart
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive02/test_write_then_append_then_read_file/result/1672776035419296\",\n
- \ \"selfLink\": \"https://www.googleapis.com/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult\",\n
- \ \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?generation=1672776035419296&alt=media\",\n
- \ \"name\": \"test_write_then_append_then_read_file/result\",\n \"bucket\":
- \"testingarchive02\",\n \"generation\": \"1672776035419296\",\n \"metageneration\":
- \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\": \"STANDARD\",\n
- \ \"size\": \"66\",\n \"md5Hash\": \"MHV8BlCe6f9TbtTZhkZg6Q==\",\n \"contentEncoding\":
- \"gzip\",\n \"crc32c\": \"viGqMg==\",\n \"etag\": \"CKCJhauYrPwCEAE=\",\n
- \ \"timeCreated\": \"2023-01-03T20:00:35.458Z\",\n \"updated\": \"2023-01-03T20:00:35.458Z\",\n
- \ \"timeStorageClassUpdated\": \"2023-01-03T20:00:35.458Z\"\n}\n"
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '914'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:35 GMT
- ETag:
- - CKCJhauYrPwCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvF6sx0Ua6DqqKQ057vv2YgDYHOi3uHzFSV8fQeIh1-RQlZdJxIvRpGuGFXdClqBCg4_eW3s8xm1nP-57FYZM5B9mYap94p
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/0958464a-5122-486b-821d-6f8660d61e98
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:35 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:35 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycds5wQ0o-mQXBA-pCEOtsfNhvrexTYFbrq_4jVJBzS4RZq1_Pj87Eg8CIBbn83Fh-kBAovVu2KiMRUZx4JQ_KfghjKPNQXkC
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/f4e025a0-f937-4110-a566-c5401874b1af
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#object","id":"testingarchive02/test_write_then_append_then_read_file/result/1672776035419296","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult","mediaLink":"https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?generation=1672776035419296&alt=media","name":"test_write_then_append_then_read_file/result","bucket":"testingarchive02","generation":"1672776035419296","metageneration":"1","contentType":"text/plain","storageClass":"STANDARD","size":"66","md5Hash":"MHV8BlCe6f9TbtTZhkZg6Q==","contentEncoding":"gzip","crc32c":"viGqMg==","etag":"CKCJhauYrPwCEAE=","timeCreated":"2023-01-03T20:00:35.458Z","updated":"2023-01-03T20:00:35.458Z","timeStorageClassUpdated":"2023-01-03T20:00:35.458Z"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '840'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:35 GMT
- ETag:
- - CKCJhauYrPwCEAE=
- Expires:
- - Tue, 03 Jan 2023 20:00:35 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdtlk5X0DCPI-TcfM0Yjrtqlw5vNXP3r3KTw6Z_oz_N64KyYY4-VxUao7AJgzmjFKoBaop2gCSQTttKM0Emb5SgpBLKLAQw8
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/b2ce8547-3b33-4883-8fbc-8bed9cb7f570
- accept-encoding:
- - gzip
- content-type:
- - application/json; charset=UTF-8
- x-upload-content-type:
- - application/json; charset=UTF-8
- method: GET
- uri: https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?alt=media&generation=1672776035419296
- response:
- body:
- string: !!binary |
- H4sIAGKJtGMC/8vJL0rNVcgsKC7NVUjJz8kvUihJLS6JLy/KLEmNL8lIzYsvSk1MiU/LzElVOLwQ
- ABQu+7guAAAA
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Disposition:
- - attachment
- Content-Encoding:
- - gzip
- Content-Type:
- - text/plain
- Date:
- - Tue, 03 Jan 2023 20:00:36 GMT
- ETag:
- - CKCJhauYrPwCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Accept-Encoding
- X-GUploader-UploadID:
- - ADPycdvwnffphz3iB6HrqMFQfAti7j2GpT4qMfCMw8ygXzjOYC7Bx4SmOV4VBGGzy5phCES73NbDP-c2HUtuat_YT4Tin6YJ9R7p
- X-Goog-Generation:
- - '1672776035419296'
- X-Goog-Hash:
- - crc32c=viGqMg==,md5=MHV8BlCe6f9TbtTZhkZg6Q==
- X-Goog-Metageneration:
- - '1'
- X-Goog-Storage-Class:
- - STANDARD
- X-Goog-Stored-Content-Encoding:
- - gzip
- X-Goog-Stored-Content-Length:
- - '66'
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/14cc904d-d7b7-48dc-87a8-f082e64da826
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:36 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:36 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycds74E4FYNjjVLs_GRCzf0pAvY2S44Es21NzEQmIk5GFk5PDDdObV0maTMrbuELi7LfwKcfa_2ljQtGvmyXfrzQogI4shO9Q
- status:
- code: 200
- message: OK
-- request:
- body: !!binary |
- LS09PT09PT09PT09PT09PT00NDU0MTY3Njc3NDk5Mjk3NTc4PT0NCmNvbnRlbnQtdHlwZTogYXBw
- bGljYXRpb24vanNvbjsgY2hhcnNldD1VVEYtOA0KDQp7Im5hbWUiOiAidGVzdF93cml0ZV90aGVu
- X2FwcGVuZF90aGVuX3JlYWRfZmlsZS9yZXN1bHQiLCAiY29udGVudFR5cGUiOiAidGV4dC9wbGFp
- biIsICJjb250ZW50RW5jb2RpbmciOiAiZ3ppcCJ9DQotLT09PT09PT09PT09PT09PTQ0NTQxNjc2
- Nzc0OTkyOTc1Nzg9PQ0KY29udGVudC10eXBlOiB0ZXh0L3BsYWluDQoNCh+LCABkibRjAv8FwdEN
- gDAIBcB/p3gDdCdCAiqxlIZinMdZXMy7HqkOm+t2SPRIlK6iJ62U6tRBqSy0W1d87+bhDT3iAhdc
- G3hOHWLjgHDxD9IH3mlOAAAADQotLT09PT09PT09PT09PT09PTQ0NTQxNjc2Nzc0OTkyOTc1Nzg9
- PS0t
- headers:
- Accept:
- - application/json
- Accept-Encoding:
- - gzip, deflate
- Connection:
- - keep-alive
- Content-Length:
- - '402'
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/e8a006cd-fe5a-4408-877d-8dac0e1e88a4
- content-type:
- - !!binary |
- bXVsdGlwYXJ0L3JlbGF0ZWQ7IGJvdW5kYXJ5PSI9PT09PT09PT09PT09PT00NDU0MTY3Njc3NDk5
- Mjk3NTc4PT0i
- x-upload-content-type:
- - text/plain
- method: POST
- uri: https://storage.googleapis.com/upload/storage/v1/b/testingarchive02/o?uploadType=multipart
- response:
- body:
- string: "{\n \"kind\": \"storage#object\",\n \"id\": \"testingarchive02/test_write_then_append_then_read_file/result/1672776036413847\",\n
- \ \"selfLink\": \"https://www.googleapis.com/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult\",\n
- \ \"mediaLink\": \"https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?generation=1672776036413847&alt=media\",\n
- \ \"name\": \"test_write_then_append_then_read_file/result\",\n \"bucket\":
- \"testingarchive02\",\n \"generation\": \"1672776036413847\",\n \"metageneration\":
- \"1\",\n \"contentType\": \"text/plain\",\n \"storageClass\": \"STANDARD\",\n
- \ \"size\": \"89\",\n \"md5Hash\": \"lOBOfDc+sgo4iGIqJ8z6vA==\",\n \"contentEncoding\":
- \"gzip\",\n \"crc32c\": \"+LLDeg==\",\n \"etag\": \"CJfjwauYrPwCEAE=\",\n
- \ \"timeCreated\": \"2023-01-03T20:00:36.541Z\",\n \"updated\": \"2023-01-03T20:00:36.541Z\",\n
- \ \"timeStorageClassUpdated\": \"2023-01-03T20:00:36.541Z\"\n}\n"
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Length:
- - '914'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:36 GMT
- ETag:
- - CJfjwauYrPwCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycduJ5YayinJIXdqCJA8MSHygx7zf9T-KrdrFwNrZnbcX-LhrCr5OMxmcN8kLhLQOEHgdEFph788WtvhAGB8cI1EeeZFpfZPs
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/e6f4456f-c889-446b-8ee6-3cb0e066a4c6
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:36 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:36 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdurXGYwSsqJrwDy0IRS4YBzjhTQeZ01wEonGPtZBO09rd24qk3KjOxaRvPlyyLVGFQkU2E3-D2uxecSKyOX3kroZM8WD2Te
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/68b1da2c-83ed-49d2-a7ce-039546088baa
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#object","id":"testingarchive02/test_write_then_append_then_read_file/result/1672776036413847","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult","mediaLink":"https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?generation=1672776036413847&alt=media","name":"test_write_then_append_then_read_file/result","bucket":"testingarchive02","generation":"1672776036413847","metageneration":"1","contentType":"text/plain","storageClass":"STANDARD","size":"89","md5Hash":"lOBOfDc+sgo4iGIqJ8z6vA==","contentEncoding":"gzip","crc32c":"+LLDeg==","etag":"CJfjwauYrPwCEAE=","timeCreated":"2023-01-03T20:00:36.541Z","updated":"2023-01-03T20:00:36.541Z","timeStorageClassUpdated":"2023-01-03T20:00:36.541Z"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '840'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:36 GMT
- ETag:
- - CJfjwauYrPwCEAE=
- Expires:
- - Tue, 03 Jan 2023 20:00:36 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdun1XpDcxcKK0IXOTkvG6d8d-E4hRvW0JKBSb67xdsOfWTYbxYyigxjL6JoI6TkPvmYztbk7bXpCuuMP1qk4cl7LhIHd-sE
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Accept:
- - application/json
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/14c404a1-8fb1-4bad-a30c-484bab132f37
- accept-encoding:
- - gzip
- content-type:
- - application/json; charset=UTF-8
- x-upload-content-type:
- - application/json; charset=UTF-8
- method: GET
- uri: https://storage.googleapis.com/download/storage/v1/b/testingarchive02/o/test_write_then_append_then_read_file%2Fresult?alt=media&generation=1672776036413847
- response:
- body:
- string: !!binary |
- H4sIAGSJtGMC/wXB0Q2AMAgFwH+neAN0J0ICKrGUhmKcx1lczLseqQ6b63ZI9EiUrqInrZTq1EGp
- LLRbV3zv5uENPeICF1wbeE4dYuOAcPEP0gfeaU4AAAA=
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - no-cache, no-store, max-age=0, must-revalidate
- Content-Disposition:
- - attachment
- Content-Encoding:
- - gzip
- Content-Type:
- - text/plain
- Date:
- - Tue, 03 Jan 2023 20:00:37 GMT
- ETag:
- - CJfjwauYrPwCEAE=
- Expires:
- - Mon, 01 Jan 1990 00:00:00 GMT
- Pragma:
- - no-cache
- Server:
- - UploadServer
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- - X-Origin
- - Accept-Encoding
- X-GUploader-UploadID:
- - ADPycdtScDVf9TOCsrDRrWdM9zuoxndXYtSbswSFUhMD77zQqA4vurrcDcK1_P9yOS0sXura8w7P9Sa0ENNiTeq3SxPcTctu46PW
- X-Goog-Generation:
- - '1672776036413847'
- X-Goog-Hash:
- - crc32c=+LLDeg==,md5=lOBOfDc+sgo4iGIqJ8z6vA==
- X-Goog-Metageneration:
- - '1'
- X-Goog-Storage-Class:
- - STANDARD
- X-Goog-Stored-Content-Encoding:
- - gzip
- X-Goog-Stored-Content-Length:
- - '89'
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_delete_file.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_delete_file.yaml
index d9ce43928..5bd22ea40 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_delete_file.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_delete_file.yaml
@@ -53,50 +53,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/69ade0e7-46b2-4bc9-aeab-c234670f0199
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:40 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:40 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdt04jsw1r4ZRwD2ZhB_TnWaA7BarLasOdtjGjrJyzaK_86f0G1fCzT2fXjXoIkmhGVMNR3wN5CjTJNz0ORHrhKKMpLY1giC
- status:
- code: 200
- message: OK
- request:
body: !!binary |
LS09PT09PT09PT09PT09PT04ODM1Mzk4NjI5MDAxMjk2NjgyPT0NCmNvbnRlbnQtdHlwZTogYXBw
@@ -167,50 +123,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/f3c8bb6f-5230-4b93-94da-d05360834754
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:40 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:40 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvP0UDPg1-hSp3zqUL2V9bhDNVtkCYLUtIwMZR1PaER1dFXbyWB1yOGCaeOhRZl732u73skX73HAagFcgCCVB_oiKzae5Ct
- status:
- code: 200
- message: OK
- request:
body: null
headers:
@@ -257,50 +169,6 @@ interactions:
status:
code: 204
message: No Content
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/f5390356-7024-4610-8b40-87c921d0455e
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:00:41 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:00:41 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycduevDKdPHwS1sqWsPmnWP9WM-B0ea-Py738fxQ42IjtvOMVBekiNXZ--XVRfB344k3mYMKTt4CQjOssTb7BoWbP_YvgvkaV
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file.yaml
index b273fac6e..67d9d08a7 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file.yaml
@@ -54,50 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/0671d16c-d136-4d82-8426-ffce98fa7b55
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:34:35 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:34:35 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvvhkGdAozf2CoLv39CbqF8lwlilQnGP7a88dP3n6bRmW4vV_q5T_qWZRxXKSXIyccnIU2X6DtrnFIB98v5zbNljPeSChGB
- status:
- code: 200
- message: OK
- request:
body: !!binary |
LS09PT09PT09PT09PT09PT02OTMxNTg5NTA5NzU5NTc2OTM3PT0NCmNvbnRlbnQtdHlwZTogYXBw
@@ -212,50 +168,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/cfd54184-35bd-4f1e-a5b6-f4cbf1a246d2
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:34:35 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:34:35 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycduAALrR0Es5dMolGZx69HX96O8VJEpgwSDn-XPNKsWk854-FDb1jxP4aBLRfHIq7xxFYKc92TD7VaJRTMrqgzLhzviKMiYS
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_gzipped.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_gzipped.yaml
index b79dc5c4d..8105f85d8 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_gzipped.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_gzipped.yaml
@@ -54,50 +54,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/2e0e3440-a096-49b9-b3a1-44b4676fa8b8
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:43:09 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:43:09 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvwXtYCkAsbstKqBySu_yCdFc4-7ar6fbtxwkSSfr_KJOO-DdLtqwDhwbyCET-MVNONn-AMIpuTIsXU_fOiSiF2JqwWgH0a
- status:
- code: 200
- message: OK
- request:
body: !!binary |
LS09PT09PT09PT09PT09PT00NjM0ODE2MDEwNzAyODQ1MDI3PT0NCmNvbnRlbnQtdHlwZTogYXBw
@@ -167,50 +123,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0
- X-Goog-API-Client:
- - gcloud-python/2.7.0 gl-python/3.10.5 gax/2.8.2 gccl/2.7.0 gccl-invocation-id/f47f67f5-7b5d-412d-b713-7dce0f590cfd
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testingarchive02?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testingarchive02","id":"testingarchive02","name":"testingarchive02","projectNumber":"582817289294","metageneration":"4","location":"US","storageClass":"STANDARD","etag":"CAQ=","timeCreated":"2019-08-27T06:20:09.895Z","updated":"2023-01-03T19:39:25.849Z","iamConfiguration":{"bucketPolicyOnly":{"enabled":false},"uniformBucketLevelAccess":{"enabled":false},"publicAccessPrevention":"inherited"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000,h3-Q050=":443"; ma=2592000,h3-Q046=":443";
- ma=2592000,h3-Q043=":443"; ma=2592000,quic=":443"; ma=2592000; v="46,43"
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '517'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Tue, 03 Jan 2023 20:43:09 GMT
- ETag:
- - CAQ=
- Expires:
- - Tue, 03 Jan 2023 20:43:09 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ADPycdvmLlQkgCZJUJTjm4uQaMDVVAP2L4b4X5uM1thgLe5FX_a86_G6Dp81u3f6d8KZCQorw2WDHmTIjdMOHbdPqpPg1MyMeU2m
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_obj.yaml b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_obj.yaml
index af1fa9475..012fffc1b 100644
--- a/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_obj.yaml
+++ b/tests/unit/storage/cassetes/test_gcp/TestGCPStorateService/test_write_then_read_file_obj.yaml
@@ -65,51 +65,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.11.0 gl-python/3.9.16 grpc/1.59.0 gax/2.12.0 gccl/2.11.0
- x-allowed-locations:
- - '0x0'
- x-goog-api-client:
- - cred-type/sa
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testing?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testing","id":"testing","name":"testing","projectNumber":"600182812669","metageneration":"2","location":"US","storageClass":"STANDARD","etag":"CAI=","timeCreated":"2023-11-29T18:21:26.716Z","updated":"2023-11-29T18:28:58.136Z","retentionPolicy":{"retentionPeriod":"8035200","effectiveTime":"2023-11-29T18:21:26.716Z","isLocked":false},"iamConfiguration":{"bucketPolicyOnly":{"enabled":true,"lockedTime":"2024-02-27T18:21:26.716Z"},"uniformBucketLevelAccess":{"enabled":true,"lockedTime":"2024-02-27T18:21:26.716Z"},"publicAccessPrevention":"enforced"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '747'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 04 Dec 2023 21:05:10 GMT
- ETag:
- - CAI=
- Expires:
- - Mon, 04 Dec 2023 21:05:10 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ABPtcPpEAnmdbCyqk95y2rk-0Io0SxKLWeSikZHyhHG2Bq59j42Gvkf1f1cASM8lSQZ9gVITkOK4zoOV-g
- status:
- code: 200
- message: OK
- request:
body: '{"name": "test_write_then_read_file_obj/result"}'
headers:
@@ -227,51 +182,6 @@ interactions:
status:
code: 200
message: OK
-- request:
- body: null
- headers:
- Accept:
- - '*/*'
- Accept-Encoding:
- - gzip
- Connection:
- - keep-alive
- User-Agent:
- - gcloud-python/2.11.0 gl-python/3.9.16 grpc/1.59.0 gax/2.12.0 gccl/2.11.0
- x-allowed-locations:
- - '0x0'
- x-goog-api-client:
- - cred-type/sa
- method: GET
- uri: https://storage.googleapis.com/storage/v1/b/testing?prettyPrint=false&projection=noAcl
- response:
- body:
- string: '{"kind":"storage#bucket","selfLink":"https://www.googleapis.com/storage/v1/b/testing","id":"testing","name":"testing","projectNumber":"600182812669","metageneration":"2","location":"US","storageClass":"STANDARD","etag":"CAI=","timeCreated":"2023-11-29T18:21:26.716Z","updated":"2023-11-29T18:28:58.136Z","retentionPolicy":{"retentionPeriod":"8035200","effectiveTime":"2023-11-29T18:21:26.716Z","isLocked":false},"iamConfiguration":{"bucketPolicyOnly":{"enabled":true,"lockedTime":"2024-02-27T18:21:26.716Z"},"uniformBucketLevelAccess":{"enabled":true,"lockedTime":"2024-02-27T18:21:26.716Z"},"publicAccessPrevention":"enforced"},"locationType":"multi-region","rpo":"DEFAULT"}'
- headers:
- Alt-Svc:
- - h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
- Cache-Control:
- - private, max-age=0, must-revalidate, no-transform
- Content-Length:
- - '747'
- Content-Type:
- - application/json; charset=UTF-8
- Date:
- - Mon, 04 Dec 2023 21:05:11 GMT
- ETag:
- - CAI=
- Expires:
- - Mon, 04 Dec 2023 21:05:11 GMT
- Server:
- - UploadServer
- Vary:
- - Origin
- - X-Origin
- X-GUploader-UploadID:
- - ABPtcPosp4lhHF7SUDPvkO_mhPyrMie0d1rmH39mWjQtePaymKeNKEIXdb97J1WpheqKPn3fU-UFiUOOXQ
- status:
- code: 200
- message: OK
- request:
body: null
headers:
diff --git a/tests/unit/storage/cassetes/test_minio/TestMinioStorageService/test_append_to_non_existing_file.yaml b/tests/unit/storage/cassetes/test_minio/TestMinioStorageService/test_append_to_non_existing_file.yaml
deleted file mode 100644
index 439b9dde6..000000000
--- a/tests/unit/storage/cassetes/test_minio/TestMinioStorageService/test_append_to_non_existing_file.yaml
+++ /dev/null
@@ -1,180 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- x-amz-date:
- - 20230303T184926Z
- method: GET
- uri: http://minio:9000/archivetest
- response:
- body:
- string: '
-
- '
- headers:
- Accept-Ranges:
- - bytes
- Content-Security-Policy:
- - block-all-mixed-content
- Content-Type:
- - application/xml
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9BD368D8
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- x-amz-date:
- - 20230303T184926Z
- method: GET
- uri: http://minio:9000/archivetest/test_append_to_non_existing_file/result.txt
- response:
- body:
- string: '
-
- NoSuchKey
The specified key does not exist.test_append_to_non_existing_file/result.txtarchivetest/archivetest/test_append_to_non_existing_file/result.txt1748FD4C9C080D683db02b4e-899f-4daa-a9d3-fea142b68ee9'
- headers:
- Accept-Ranges:
- - bytes
- Content-Security-Policy:
- - block-all-mixed-content
- Content-Type:
- - application/xml
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9C080D68
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 404
- message: Not Found
-- request:
- body: !!binary |
- H4sIADZBAmQC/8vNz9VRyMnPz1ZILFHITdVRSCwoSM1LycxLV0hJLEkEAMTXCy8fAAAA
- headers:
- Content-Encoding:
- - gzip
- Content-Length:
- - '51'
- Content-Type:
- - text/plain
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - b9102c1a97ccc636e2fd806555c1214bf1e67d03f9e217c19487cab3486fd153
- x-amz-date:
- - 20230303T184926Z
- method: PUT
- uri: http://minio:9000/archivetest/test_append_to_non_existing_file/result.txt
- response:
- body:
- string: ''
- headers:
- Accept-Ranges:
- - bytes
- Content-Length:
- - '0'
- Content-Security-Policy:
- - block-all-mixed-content
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- ETag:
- - '"5530caebbcfba96ec217e02a9eb136e1"'
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9C3A1218
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- x-amz-date:
- - 20230303T184926Z
- method: GET
- uri: http://minio:9000/archivetest/test_append_to_non_existing_file/result.txt
- response:
- body:
- string: !!binary |
- H4sIADZBAmQC/8vNz9VRyMnPz1ZILFHITdVRSCwoSM1LycxLV0hJLEkEAMTXCy8fAAAA
- headers:
- Accept-Ranges:
- - bytes
- Content-Encoding:
- - gzip
- Content-Length:
- - '51'
- Content-Security-Policy:
- - block-all-mixed-content
- Content-Type:
- - text/plain
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- ETag:
- - '"5530caebbcfba96ec217e02a9eb136e1"'
- Last-Modified:
- - Fri, 03 Mar 2023 18:49:26 GMT
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9C8363A0
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/unit/storage/cassetes/test_minio/TestMinioStorageService/test_write_then_append_then_read_file.yaml b/tests/unit/storage/cassetes/test_minio/TestMinioStorageService/test_write_then_append_then_read_file.yaml
deleted file mode 100644
index 3a4dc7818..000000000
--- a/tests/unit/storage/cassetes/test_minio/TestMinioStorageService/test_write_then_append_then_read_file.yaml
+++ /dev/null
@@ -1,236 +0,0 @@
-interactions:
-- request:
- body: null
- headers:
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- x-amz-date:
- - 20230303T184926Z
- method: GET
- uri: http://minio:9000/archivetest
- response:
- body:
- string: '
-
- '
- headers:
- Accept-Ranges:
- - bytes
- Content-Security-Policy:
- - block-all-mixed-content
- Content-Type:
- - application/xml
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Transfer-Encoding:
- - chunked
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9A117170
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: !!binary |
- H4sIADZBAmQC/8vJL0rNVcgsKC7NVUjJz8kvUihJLS6JLy/KLEmNL8lIzYsvSk1MiU/LzElVOLwQ
- ABQu+7guAAAA
- headers:
- Content-Encoding:
- - gzip
- Content-Length:
- - '66'
- Content-Type:
- - text/plain
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - 576f9547d514d18ba635cada9a5436c328452318373bee43ee3fc3872a3592dc
- x-amz-date:
- - 20230303T184926Z
- method: PUT
- uri: http://minio:9000/archivetest/test_write_then_append_then_read_file/result
- response:
- body:
- string: ''
- headers:
- Accept-Ranges:
- - bytes
- Content-Length:
- - '0'
- Content-Security-Policy:
- - block-all-mixed-content
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- ETag:
- - '"1e07eb1e057b4fa3be7795787edc06be"'
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9A451818
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- x-amz-date:
- - 20230303T184926Z
- method: GET
- uri: http://minio:9000/archivetest/test_write_then_append_then_read_file/result
- response:
- body:
- string: !!binary |
- H4sIADZBAmQC/8vJL0rNVcgsKC7NVUjJz8kvUihJLS6JLy/KLEmNL8lIzYsvSk1MiU/LzElVOLwQ
- ABQu+7guAAAA
- headers:
- Accept-Ranges:
- - bytes
- Content-Encoding:
- - gzip
- Content-Length:
- - '66'
- Content-Security-Policy:
- - block-all-mixed-content
- Content-Type:
- - text/plain
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- ETag:
- - '"1e07eb1e057b4fa3be7795787edc06be"'
- Last-Modified:
- - Fri, 03 Mar 2023 18:49:26 GMT
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9A950508
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: !!binary |
- H4sIADZBAmQC/wXB0Q2AMAgFwH+neAN0J0ICKrGUhmKcx1lczLseqQ6b63ZI9EiUrqInrZTq1EGp
- LLRbV3zv5uENPeICF1wbeE4dYuOAcPEP0gfeaU4AAAA=
- headers:
- Content-Encoding:
- - gzip
- Content-Length:
- - '89'
- Content-Type:
- - text/plain
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - 61a2219bb349416d93dd338009860ae1c51602c30f699f64ad24deb230b8dc47
- x-amz-date:
- - 20230303T184926Z
- method: PUT
- uri: http://minio:9000/archivetest/test_write_then_append_then_read_file/result
- response:
- body:
- string: ''
- headers:
- Accept-Ranges:
- - bytes
- Content-Length:
- - '0'
- Content-Security-Policy:
- - block-all-mixed-content
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- ETag:
- - '"802850e37ced44ab5a18f38f761f76ea"'
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9ACC5918
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-- request:
- body: null
- headers:
- Host:
- - minio:9000
- User-Agent:
- - MinIO (Darwin; arm64) minio-py/7.1.13
- x-amz-content-sha256:
- - e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855
- x-amz-date:
- - 20230303T184926Z
- method: GET
- uri: http://minio:9000/archivetest/test_write_then_append_then_read_file/result
- response:
- body:
- string: !!binary |
- H4sIADZBAmQC/wXB0Q2AMAgFwH+neAN0J0ICKrGUhmKcx1lczLseqQ6b63ZI9EiUrqInrZTq1EGp
- LLRbV3zv5uENPeICF1wbeE4dYuOAcPEP0gfeaU4AAAA=
- headers:
- Accept-Ranges:
- - bytes
- Content-Encoding:
- - gzip
- Content-Length:
- - '89'
- Content-Security-Policy:
- - block-all-mixed-content
- Content-Type:
- - text/plain
- Date:
- - Fri, 03 Mar 2023 18:49:26 GMT
- ETag:
- - '"802850e37ced44ab5a18f38f761f76ea"'
- Last-Modified:
- - Fri, 03 Mar 2023 18:49:26 GMT
- Server:
- - Minio/RELEASE.2019-04-09T01-22-30Z
- Vary:
- - Origin
- X-Amz-Request-Id:
- - 1748FD4C9B34B008
- X-Minio-Deployment-Id:
- - 3db02b4e-899f-4daa-a9d3-fea142b68ee9
- X-Xss-Protection:
- - 1; mode=block
- status:
- code: 200
- message: OK
-version: 1
diff --git a/tests/unit/storage/test_gcp.py b/tests/unit/storage/test_gcp.py
index 0c2d9ebb7..37770fbcf 100644
--- a/tests/unit/storage/test_gcp.py
+++ b/tests/unit/storage/test_gcp.py
@@ -138,7 +138,6 @@ def test_read_file_application_gzip(self, request, codecov_vcr):
f, size=f.tell(), rewind=True, content_type="application/x-gzip"
)
content = storage.read_file(bucket_name, path)
- print(content)
assert content.decode() == content_to_upload
def test_write_then_delete_file(self, request, codecov_vcr):
@@ -216,9 +215,7 @@ def test_list_folder_contents(self, request, codecov_vcr):
)
@patch("shared.storage.gcp.storage")
- def test_read_file_retry_success(self, mock_storage):
- storage = GCPStorageService(gcp_config)
- mock_storage.Client.assert_called()
+ def test_read_file_retry_success(self, mock_storage, mocker):
mock_blob = MagicMock(
name="fake_blob",
download_as_bytes=MagicMock(
@@ -228,14 +225,17 @@ def test_read_file_retry_success(self, mock_storage):
]
),
)
- mock_storage.Blob.return_value = mock_blob
+ mocker.patch(
+ "shared.storage.gcp.GCPStorageService.get_blob", return_value=mock_blob
+ )
+
+ storage = GCPStorageService(gcp_config)
+ mock_storage.Client.assert_called()
response = storage.read_file("root_bucket", "path/to/blob", None)
assert response == b"contents"
@patch("shared.storage.gcp.storage")
- def test_read_file_retry_fail_twice(self, mock_storage):
- storage = GCPStorageService(gcp_config)
- mock_storage.Client.assert_called()
+ def test_read_file_retry_fail_twice(self, mock_storage, mocker):
mock_blob = MagicMock(
name="fake_blob",
download_as_bytes=MagicMock(
@@ -245,6 +245,11 @@ def test_read_file_retry_fail_twice(self, mock_storage):
]
),
)
- mock_storage.Blob.return_value = mock_blob
+ mocker.patch(
+ "shared.storage.gcp.GCPStorageService.get_blob", return_value=mock_blob
+ )
+
+ storage = GCPStorageService(gcp_config)
+ mock_storage.Client.assert_called()
with pytest.raises(DataCorruption):
storage.read_file("root_bucket", "path/to/blob", None)