From 636acaff7f30e1ead2806ca5363626f7ed6b69ae Mon Sep 17 00:00:00 2001 From: Sebastian Molenda Date: Thu, 5 Dec 2024 20:38:56 +0100 Subject: [PATCH] Should work --- pubnub/pubnub_asyncio.py | 16 +- requirements-dev.txt | 3 +- .../integrational/asyncio/test_invocations.py | 4 +- .../asyncio/file_upload/delete_file.yaml | 511 ---------------- .../file_upload/fetch_s3_upload_data.yaml | 32 - .../asyncio/file_upload/get_file_url.yaml | 512 ---------------- .../asyncio/file_upload/list_files.yaml | 31 - .../publish_file_message_encrypted.yaml | 31 - .../file_upload/send_and_download_file.yaml | 549 ------------------ .../asyncio/publish/do_not_store.json | 8 +- .../fixtures/asyncio/publish/fire_get.json | 22 +- .../fixtures/asyncio/publish/invalid_key.json | 8 +- .../fixtures/asyncio/publish/meta_object.json | 8 +- .../asyncio/publish/mixed_via_get.json | 32 +- .../publish/mixed_via_get_encrypted.json | 32 +- .../asyncio/publish/mixed_via_post.json | 42 +- .../publish/mixed_via_post_encrypted.json | 42 +- .../asyncio/publish/not_permitted.json | 6 +- .../asyncio/publish/object_via_get.json | 8 +- .../publish/object_via_get_encrypted.json | 8 +- .../asyncio/publish/object_via_post.json | 8 +- .../publish/object_via_post_encrypted.json | 8 +- .../integrational/native_sync/test_publish.py | 5 +- 23 files changed, 140 insertions(+), 1786 deletions(-) delete mode 100644 tests/integrational/fixtures/asyncio/file_upload/delete_file.yaml delete mode 100644 tests/integrational/fixtures/asyncio/file_upload/fetch_s3_upload_data.yaml delete mode 100644 tests/integrational/fixtures/asyncio/file_upload/get_file_url.yaml delete mode 100644 tests/integrational/fixtures/asyncio/file_upload/list_files.yaml delete mode 100644 tests/integrational/fixtures/asyncio/file_upload/publish_file_message_encrypted.yaml delete mode 100644 tests/integrational/fixtures/asyncio/file_upload/send_and_download_file.yaml diff --git a/pubnub/pubnub_asyncio.py b/pubnub/pubnub_asyncio.py index f51c0acd..62d7d494 100644 --- a/pubnub/pubnub_asyncio.py +++ b/pubnub/pubnub_asyncio.py @@ -8,6 +8,7 @@ from asyncio import Event, Queue, Semaphore from yarl import URL +from httpx import AsyncHTTPTransport from pubnub.event_engine.containers import PresenceStateContainer from pubnub.event_engine.models import events, states @@ -33,6 +34,14 @@ logger = logging.getLogger("pubnub") +class PubNubAsyncHTTPTransport(AsyncHTTPTransport): + is_closed: bool = False + + def close(self): + self.is_closed = True + super().aclose() + + class PubNubAsyncio(PubNubCore): """ PubNub Python SDK for asyncio framework @@ -45,10 +54,7 @@ def __init__(self, config, custom_event_loop=None, subscription_manager=None): self._connector = None self._session = None - self._connector = httpx.AsyncHTTPTransport() - - if not hasattr(self._connector, 'close'): - self._connector.close = self._connector.aclose + self._connector = PubNubAsyncHTTPTransport() if not subscription_manager: subscription_manager = EventEngineSubscriptionManager @@ -150,6 +156,8 @@ async def _request_helper(self, options_func, cancellation_event): :param cancellation_event: :return: """ + if self._connector and self._connector.is_closed: + raise RuntimeError('Session is closed') if cancellation_event is not None: assert isinstance(cancellation_event, Event) diff --git a/requirements-dev.txt b/requirements-dev.txt index ee2fe324..b22c9a38 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -4,8 +4,7 @@ pycryptodomex flake8 pytest pytest-asyncio -aiohttp -requests +httpx cbor2 behave vcrpy diff --git a/tests/integrational/asyncio/test_invocations.py b/tests/integrational/asyncio/test_invocations.py index db69a0f2..d62e07bb 100644 --- a/tests/integrational/asyncio/test_invocations.py +++ b/tests/integrational/asyncio/test_invocations.py @@ -55,7 +55,7 @@ async def test_publish_future_raises_pubnub_error(event_loop): async def test_publish_future_raises_lower_level_error(event_loop): pubnub = PubNubAsyncio(corrupted_keys, custom_event_loop=event_loop) - pubnub._connector.aclose() + pubnub._connector.close() with pytest.raises(RuntimeError) as exinfo: await pubnub.publish().message('hey').channel('blah').result() @@ -102,7 +102,7 @@ async def test_publish_envelope_raises(event_loop): async def test_publish_envelope_raises_lower_level_error(event_loop): pubnub = PubNubAsyncio(corrupted_keys, custom_event_loop=event_loop) - pubnub._connector.aclose() + pubnub._connector.close() e = await pubnub.publish().message('hey').channel('blah').future() assert isinstance(e, PubNubAsyncioException) diff --git a/tests/integrational/fixtures/asyncio/file_upload/delete_file.yaml b/tests/integrational/fixtures/asyncio/file_upload/delete_file.yaml deleted file mode 100644 index 32748226..00000000 --- a/tests/integrational/fixtures/asyncio/file_upload/delete_file.yaml +++ /dev/null @@ -1,511 +0,0 @@ -interactions: -- request: - body: '{"name": "king_arthur.txt"}' - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: POST - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - response: - body: - string: '{"status":200,"data":{"id":"e85323dd-b082-485e-a75b-37aaee3e2070","name":"king_arthur.txt"},"file_upload_request":{"url":"https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/","method":"POST","expiration_date":"2020-11-25T12:42:47Z","form_fields":[{"key":"tagging","value":"\u003cTagging\u003e\u003cTagSet\u003e\u003cTag\u003e\u003cKey\u003eObjectTTLInDays\u003c/Key\u003e\u003cValue\u003e1\u003c/Value\u003e\u003c/Tag\u003e\u003c/TagSet\u003e\u003c/Tagging\u003e"},{"key":"key","value":"sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/e85323dd-b082-485e-a75b-37aaee3e2070/king_arthur.txt"},{"key":"Content-Type","value":"text/plain; - charset=utf-8"},{"key":"X-Amz-Credential","value":"AKIAY7AU6GQD5KWBS3FG/20201125/eu-central-1/s3/aws4_request"},{"key":"X-Amz-Security-Token","value":""},{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20201125T124247Z"},{"key":"Policy","value":"CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTEtMjVUMTI6NDI6NDdaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvZTg1MzIzZGQtYjA4Mi00ODVlLWE3NWItMzdhYWVlM2UyMDcwL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMTI1L2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDExMjVUMTI0MjQ3WiIgfQoJXQp9Cg=="},{"key":"X-Amz-Signature","value":"dab33a8e9f06ca5ca7022eeef41ed974869096322f28d31e3dbbb445b898a527"}]}}' - headers: - Access-Control-Allow-Origin: '*' - Connection: keep-alive - Content-Encoding: gzip - Content-Type: application/json - Date: Wed, 25 Nov 2020 12:41:47 GMT - Transfer-Encoding: chunked - Vary: Accept-Encoding - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - - pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=files_asyncio_uuid - - '' -- request: - body: !!python/object:aiohttp.formdata.FormData - _charset: null - _fields: - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - tagging - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - ObjectTTLInDays1 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - key - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/e85323dd-b082-485e-a75b-37aaee3e2070/king_arthur.txt - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - Content-Type - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - text/plain; charset=utf-8 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Credential - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - AKIAY7AU6GQD5KWBS3FG/20201125/eu-central-1/s3/aws4_request - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Security-Token - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - '' - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Algorithm - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - AWS4-HMAC-SHA256 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Date - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - 20201125T124247Z - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - Policy - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTEtMjVUMTI6NDI6NDdaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvZTg1MzIzZGQtYjA4Mi00ODVlLWE3NWItMzdhYWVlM2UyMDcwL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMTI1L2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDExMjVUMTI0MjQ3WiIgfQoJXQp9Cg== - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Signature - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - dab33a8e9f06ca5ca7022eeef41ed974869096322f28d31e3dbbb445b898a527 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - file - - !!python/tuple - - filename - - king_arthur.txt - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : application/octet-stream - - !!binary | - S25pZ2h0cyB3aG8gc2F5IE5pIQ== - _is_multipart: true - _quote_fields: true - _writer: !!python/object:aiohttp.multipart.MultipartWriter - _boundary: !!binary | - NmI4MmNkOTVjMWRkNDBmNzljMTM1MDI4YzgzNGVjNGE= - _content_type: multipart/form-data; boundary="6b82cd95c1dd40f79c135028c834ec4a" - _encoding: null - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data; boundary="6b82cd95c1dd40f79c135028c834ec4a" - _parts: - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="tagging" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '89' - _size: 89 - _value: !!binary | - PFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8 - L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4= - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9InRhZ2dpbmciDQpDT05URU5ULUxFTkdUSDogODkNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="key" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '139' - _size: 139 - _value: !!binary | - c3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4 - d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvZTg1MzIzZGQtYjA4Mi00ODVlLWE3NWItMzdh - YWVlM2UyMDcwL2tpbmdfYXJ0aHVyLnR4dA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9ImtleSINCkNPTlRFTlQtTEVOR1RIOiAxMzkNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="Content-Type" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '25' - _size: 25 - _value: !!binary | - dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IkNvbnRlbnQtVHlwZSINCkNPTlRFTlQtTEVOR1RIOiAyNQ0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Credential" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '58' - _size: 58 - _value: !!binary | - QUtJQVk3QVU2R1FENUtXQlMzRkcvMjAyMDExMjUvZXUtY2VudHJhbC0xL3MzL2F3czRfcmVxdWVz - dA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LUNyZWRlbnRpYWwiDQpDT05URU5ULUxFTkdUSDogNTgNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Security-Token" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '0' - _size: 0 - _value: !!binary "" - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LVNlY3VyaXR5LVRva2VuIg0KQ09OVEVOVC1MRU5HVEg6IDAN - Cg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Algorithm" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '16' - _size: 16 - _value: !!binary | - QVdTNC1ITUFDLVNIQTI1Ng== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LUFsZ29yaXRobSINCkNPTlRFTlQtTEVOR1RIOiAxNg0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Date" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '16' - _size: 16 - _value: !!binary | - MjAyMDExMjVUMTI0MjQ3Wg== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LURhdGUiDQpDT05URU5ULUxFTkdUSDogMTYNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="Policy" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '904' - _size: 904 - _value: !!binary | - Q25zS0NTSmxlSEJwY21GMGFXOXVJam9nSWpJd01qQXRNVEV0TWpWVU1USTZOREk2TkRkYUlpd0tD - U0pqYjI1a2FYUnBiMjV6SWpvZ1d3b0pDWHNpWW5WamEyVjBJam9nSW5CMVltNTFZaTF0Ym1WdGIz - TjVibVV0Wm1sc1pYTXRaWFV0WTJWdWRISmhiQzB4TFhCeVpDSjlMQW9KQ1ZzaVpYRWlMQ0FpSkhS - aFoyZHBibWNpTENBaVBGUmhaMmRwYm1jK1BGUmhaMU5sZEQ0OFZHRm5QanhMWlhrK1QySnFaV04w - VkZSTVNXNUVZWGx6UEM5TFpYaytQRlpoYkhWbFBqRThMMVpoYkhWbFBqd3ZWR0ZuUGp3dlZHRm5V - MlYwUGp3dlZHRm5aMmx1Wno0aVhTd0tDUWxiSW1WeElpd2dJaVJyWlhraUxDQWljM1ZpTFdNdFl6 - ZzRNalF5Wm1FdE1UTmhaUzB4TVdWaUxXSmpNelF0WTJVMlptUTVOamRoWmprMUx6Qk5VakV0ZWpK - M01HNVRTbGw0ZDBWNU56UndOVkZxVmpnMVZHMW5Ua0pMVUhKV056RjBOVFZPVkRBdlpUZzFNekl6 - WkdRdFlqQTRNaTAwT0RWbExXRTNOV0l0TXpkaFlXVmxNMlV5TURjd0wydHBibWRmWVhKMGFIVnlM - blI0ZENKZExBb0pDVnNpWTI5dWRHVnVkQzFzWlc1bmRHZ3RjbUZ1WjJVaUxDQXdMQ0ExTWpReU9E - Z3dYU3dLQ1FsYkluTjBZWEowY3kxM2FYUm9JaXdnSWlSRGIyNTBaVzUwTFZSNWNHVWlMQ0FpSWww - c0Nna0pleUo0TFdGdGVpMWpjbVZrWlc1MGFXRnNJam9nSWtGTFNVRlpOMEZWTmtkUlJEVkxWMEpU - TTBaSEx6SXdNakF4TVRJMUwyVjFMV05sYm5SeVlXd3RNUzl6TXk5aGQzTTBYM0psY1hWbGMzUWlm - U3dLQ1FsN0luZ3RZVzE2TFhObFkzVnlhWFI1TFhSdmEyVnVJam9nSWlKOUxBb0pDWHNpZUMxaGJY - b3RZV3huYjNKcGRHaHRJam9nSWtGWFV6UXRTRTFCUXkxVFNFRXlOVFlpZlN3S0NRbDdJbmd0WVcx - NkxXUmhkR1VpT2lBaU1qQXlNREV4TWpWVU1USTBNalEzV2lJZ2ZRb0pYUXA5Q2c9PQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlBvbGljeSINCkNPTlRFTlQtTEVOR1RIOiA5MDQNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Signature" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '64' - _size: 64 - _value: !!binary | - ZGFiMzNhOGU5ZjA2Y2E1Y2E3MDIyZWVlZjQxZWQ5NzQ4NjkwOTYzMjJmMjhkMzFlM2RiYmI0NDVi - ODk4YTUyNw== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LVNpZ25hdHVyZSINCkNPTlRFTlQtTEVOR1RIOiA2NA0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.BytesPayload - _content_type: application/octet-stream - _encoding: null - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - application/octet-stream - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="file"; filename="king_arthur.txt"; filename*=utf-8''king_arthur.txt - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '19' - _size: 19 - _value: !!binary | - S25pZ2h0cyB3aG8gc2F5IE5pIQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW0NCkNPTlRFTlQtRElTUE9TSVRJ - T046IGZvcm0tZGF0YTsgbmFtZT0iZmlsZSI7IGZpbGVuYW1lPSJraW5nX2FydGh1ci50eHQiOyBm - aWxlbmFtZSo9dXRmLTgnJ2tpbmdfYXJ0aHVyLnR4dA0KQ09OVEVOVC1MRU5HVEg6IDE5DQoNCg== - - '' - - '' - _value: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: POST - uri: https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/ - response: - body: - string: '' - headers: - Date: Wed, 25 Nov 2020 12:41:48 GMT - ETag: '"3676cdb7a927db43c846070c4e7606c7"' - Location: https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/sub-c-mock-key%2F0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0%2Fe85323dd-b082-485e-a75b-37aaee3e2070%2Fking_arthur.txt - Server: AmazonS3 - x-amz-expiration: expiry-date="Fri, 27 Nov 2020 00:00:00 GMT", rule-id="Archive - file 1 day after creation" - x-amz-id-2: NC2+aieHq2kClmdnt37tgjFISi4rhO44dUFew8D6AKKuaOVSX+7RDvSyrMgTehvYQ9O3+eQHlWY= - x-amz-request-id: 53CABDEECA691146 - x-amz-server-side-encryption: AES256 - status: - code: 204 - message: No Content - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com - - / - - '' - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: GET - uri: https://ps.pndsn.com/v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test_message%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%22e85323dd-b082-485e-a75b-37aaee3e2070%22%2C%20%22name%22%3A%20%22king_arthur.txt%22%7D%7D?l_file=0.22842562198638916&meta=null&store=1&ttl=222 - response: - body: - string: '[1,"Sent","16063081076885278"]' - headers: - Access-Control-Allow-Methods: GET - Access-Control-Allow-Origin: '*' - Cache-Control: no-cache - Connection: keep-alive - Content-Length: '30' - Content-Type: text/javascript; charset="UTF-8" - Date: Wed, 25 Nov 2020 12:41:47 GMT - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test_message%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%22e85323dd-b082-485e-a75b-37aaee3e2070%22%2C%20%22name%22%3A%20%22king_arthur.txt%22%7D%7D - - meta=null&ttl=222&store=1&pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=files_asyncio_uuid&l_file=0.22842562198638916 - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: DELETE - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/files/e85323dd-b082-485e-a75b-37aaee3e2070/king_arthur.txt?l_file=0.16370232899983725 - response: - body: - string: '{"status":200}' - headers: - Access-Control-Allow-Origin: '*' - Connection: keep-alive - Content-Length: '14' - Content-Type: application/json - Date: Wed, 25 Nov 2020 12:41:47 GMT - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/files/e85323dd-b082-485e-a75b-37aaee3e2070/king_arthur.txt - - pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=files_asyncio_uuid&l_file=0.16370232899983725 - - '' -version: 1 diff --git a/tests/integrational/fixtures/asyncio/file_upload/fetch_s3_upload_data.yaml b/tests/integrational/fixtures/asyncio/file_upload/fetch_s3_upload_data.yaml deleted file mode 100644 index 1ff9887e..00000000 --- a/tests/integrational/fixtures/asyncio/file_upload/fetch_s3_upload_data.yaml +++ /dev/null @@ -1,32 +0,0 @@ -interactions: -- request: - body: '{"name": "king_arthur.txt"}' - headers: - User-Agent: - - PubNub-Python-Asyncio/4.5.4 - method: POST - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url?pnsdk=PubNub-Python-Asyncio%2F4.5.4&uuid=291d63f9-3b21-48b9-8088-8a21fb1ba39a - response: - body: - string: '{"status":200,"data":{"id":"7191ce86-eb00-46d5-be04-fd273f0ad721","name":"king_arthur.txt"},"file_upload_request":{"url":"https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/","method":"POST","expiration_date":"2020-10-21T15:32:33Z","form_fields":[{"key":"tagging","value":"\u003cTagging\u003e\u003cTagSet\u003e\u003cTag\u003e\u003cKey\u003eObjectTTLInDays\u003c/Key\u003e\u003cValue\u003e1\u003c/Value\u003e\u003c/Tag\u003e\u003c/TagSet\u003e\u003c/Tagging\u003e"},{"key":"key","value":"sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/7191ce86-eb00-46d5-be04-fd273f0ad721/king_arthur.txt"},{"key":"Content-Type","value":"text/plain; - charset=utf-8"},{"key":"X-Amz-Credential","value":"AKIAY7AU6GQD5KWBS3FG/20201021/eu-central-1/s3/aws4_request"},{"key":"X-Amz-Security-Token","value":""},{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20201021T153233Z"},{"key":"Policy","value":"CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTAtMjFUMTU6MzI6MzNaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvNzE5MWNlODYtZWIwMC00NmQ1LWJlMDQtZmQyNzNmMGFkNzIxL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMDIxL2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDEwMjFUMTUzMjMzWiIgfQoJXQp9Cg=="},{"key":"X-Amz-Signature","value":"409079715b1bb3062f2c243c6cabe75175b24c758c8c723154bd2aa89f500e75"}]}}' - headers: - Access-Control-Allow-Origin: '*' - Connection: keep-alive - Content-Encoding: gzip - Content-Type: application/json - Date: Wed, 21 Oct 2020 15:31:33 GMT - Transfer-Encoding: chunked - Vary: Accept-Encoding - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - - pnsdk=PubNub-Python-Asyncio%2F4.5.4&uuid=291d63f9-3b21-48b9-8088-8a21fb1ba39a - - '' -version: 1 diff --git a/tests/integrational/fixtures/asyncio/file_upload/get_file_url.yaml b/tests/integrational/fixtures/asyncio/file_upload/get_file_url.yaml deleted file mode 100644 index 374c484f..00000000 --- a/tests/integrational/fixtures/asyncio/file_upload/get_file_url.yaml +++ /dev/null @@ -1,512 +0,0 @@ -interactions: -- request: - body: '{"name": "king_arthur.txt"}' - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: POST - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - response: - body: - string: '{"status":200,"data":{"id":"42d7e28e-a724-4416-9328-b9fa13201041","name":"king_arthur.txt"},"file_upload_request":{"url":"https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/","method":"POST","expiration_date":"2020-11-24T19:39:37Z","form_fields":[{"key":"tagging","value":"\u003cTagging\u003e\u003cTagSet\u003e\u003cTag\u003e\u003cKey\u003eObjectTTLInDays\u003c/Key\u003e\u003cValue\u003e1\u003c/Value\u003e\u003c/Tag\u003e\u003c/TagSet\u003e\u003c/Tagging\u003e"},{"key":"key","value":"sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/42d7e28e-a724-4416-9328-b9fa13201041/king_arthur.txt"},{"key":"Content-Type","value":"text/plain; - charset=utf-8"},{"key":"X-Amz-Credential","value":"AKIAY7AU6GQD5KWBS3FG/20201124/eu-central-1/s3/aws4_request"},{"key":"X-Amz-Security-Token","value":""},{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20201124T193937Z"},{"key":"Policy","value":"CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTEtMjRUMTk6Mzk6MzdaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvNDJkN2UyOGUtYTcyNC00NDE2LTkzMjgtYjlmYTEzMjAxMDQxL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMTI0L2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDExMjRUMTkzOTM3WiIgfQoJXQp9Cg=="},{"key":"X-Amz-Signature","value":"0354f6687225f98712b599f42f56c4b4780cbb63d47f469b7d2edf2326b6844a"}]}}' - headers: - Access-Control-Allow-Origin: '*' - Connection: keep-alive - Content-Encoding: gzip - Content-Type: application/json - Date: Tue, 24 Nov 2020 19:38:37 GMT - Transfer-Encoding: chunked - Vary: Accept-Encoding - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - - pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=f1b39735-2ad2-463c-9576-b65fac9d776b - - '' -- request: - body: !!python/object:aiohttp.formdata.FormData - _charset: null - _fields: - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - tagging - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - ObjectTTLInDays1 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - key - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/42d7e28e-a724-4416-9328-b9fa13201041/king_arthur.txt - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - Content-Type - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - text/plain; charset=utf-8 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Credential - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - AKIAY7AU6GQD5KWBS3FG/20201124/eu-central-1/s3/aws4_request - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Security-Token - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - '' - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Algorithm - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - AWS4-HMAC-SHA256 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Date - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - 20201124T193937Z - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - Policy - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTEtMjRUMTk6Mzk6MzdaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvNDJkN2UyOGUtYTcyNC00NDE2LTkzMjgtYjlmYTEzMjAxMDQxL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMTI0L2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDExMjRUMTkzOTM3WiIgfQoJXQp9Cg== - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Signature - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - 0354f6687225f98712b599f42f56c4b4780cbb63d47f469b7d2edf2326b6844a - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - file - - !!python/tuple - - filename - - king_arthur.txt - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : application/octet-stream - - !!binary | - S25pZ2h0cyB3aG8gc2F5IE5pIQ== - _is_multipart: true - _quote_fields: true - _writer: !!python/object:aiohttp.multipart.MultipartWriter - _boundary: !!binary | - MTk0MDM1ZWYxNTQ2NGQ1NWEyNWUzZTZiODk2MGEyMzU= - _content_type: multipart/form-data; boundary="194035ef15464d55a25e3e6b8960a235" - _encoding: null - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data; boundary="194035ef15464d55a25e3e6b8960a235" - _parts: - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="tagging" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '89' - _size: 89 - _value: !!binary | - PFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8 - L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4= - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9InRhZ2dpbmciDQpDT05URU5ULUxFTkdUSDogODkNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="key" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '139' - _size: 139 - _value: !!binary | - c3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4 - d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvNDJkN2UyOGUtYTcyNC00NDE2LTkzMjgtYjlm - YTEzMjAxMDQxL2tpbmdfYXJ0aHVyLnR4dA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9ImtleSINCkNPTlRFTlQtTEVOR1RIOiAxMzkNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="Content-Type" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '25' - _size: 25 - _value: !!binary | - dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IkNvbnRlbnQtVHlwZSINCkNPTlRFTlQtTEVOR1RIOiAyNQ0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Credential" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '58' - _size: 58 - _value: !!binary | - QUtJQVk3QVU2R1FENUtXQlMzRkcvMjAyMDExMjQvZXUtY2VudHJhbC0xL3MzL2F3czRfcmVxdWVz - dA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LUNyZWRlbnRpYWwiDQpDT05URU5ULUxFTkdUSDogNTgNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Security-Token" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '0' - _size: 0 - _value: !!binary "" - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LVNlY3VyaXR5LVRva2VuIg0KQ09OVEVOVC1MRU5HVEg6IDAN - Cg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Algorithm" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '16' - _size: 16 - _value: !!binary | - QVdTNC1ITUFDLVNIQTI1Ng== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LUFsZ29yaXRobSINCkNPTlRFTlQtTEVOR1RIOiAxNg0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Date" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '16' - _size: 16 - _value: !!binary | - MjAyMDExMjRUMTkzOTM3Wg== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LURhdGUiDQpDT05URU5ULUxFTkdUSDogMTYNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="Policy" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '904' - _size: 904 - _value: !!binary | - Q25zS0NTSmxlSEJwY21GMGFXOXVJam9nSWpJd01qQXRNVEV0TWpSVU1UazZNems2TXpkYUlpd0tD - U0pqYjI1a2FYUnBiMjV6SWpvZ1d3b0pDWHNpWW5WamEyVjBJam9nSW5CMVltNTFZaTF0Ym1WdGIz - TjVibVV0Wm1sc1pYTXRaWFV0WTJWdWRISmhiQzB4TFhCeVpDSjlMQW9KQ1ZzaVpYRWlMQ0FpSkhS - aFoyZHBibWNpTENBaVBGUmhaMmRwYm1jK1BGUmhaMU5sZEQ0OFZHRm5QanhMWlhrK1QySnFaV04w - VkZSTVNXNUVZWGx6UEM5TFpYaytQRlpoYkhWbFBqRThMMVpoYkhWbFBqd3ZWR0ZuUGp3dlZHRm5V - MlYwUGp3dlZHRm5aMmx1Wno0aVhTd0tDUWxiSW1WeElpd2dJaVJyWlhraUxDQWljM1ZpTFdNdFl6 - ZzRNalF5Wm1FdE1UTmhaUzB4TVdWaUxXSmpNelF0WTJVMlptUTVOamRoWmprMUx6Qk5VakV0ZWpK - M01HNVRTbGw0ZDBWNU56UndOVkZxVmpnMVZHMW5Ua0pMVUhKV056RjBOVFZPVkRBdk5ESmtOMlV5 - T0dVdFlUY3lOQzAwTkRFMkxUa3pNamd0WWpsbVlURXpNakF4TURReEwydHBibWRmWVhKMGFIVnlM - blI0ZENKZExBb0pDVnNpWTI5dWRHVnVkQzFzWlc1bmRHZ3RjbUZ1WjJVaUxDQXdMQ0ExTWpReU9E - Z3dYU3dLQ1FsYkluTjBZWEowY3kxM2FYUm9JaXdnSWlSRGIyNTBaVzUwTFZSNWNHVWlMQ0FpSWww - c0Nna0pleUo0TFdGdGVpMWpjbVZrWlc1MGFXRnNJam9nSWtGTFNVRlpOMEZWTmtkUlJEVkxWMEpU - TTBaSEx6SXdNakF4TVRJMEwyVjFMV05sYm5SeVlXd3RNUzl6TXk5aGQzTTBYM0psY1hWbGMzUWlm - U3dLQ1FsN0luZ3RZVzE2TFhObFkzVnlhWFI1TFhSdmEyVnVJam9nSWlKOUxBb0pDWHNpZUMxaGJY - b3RZV3huYjNKcGRHaHRJam9nSWtGWFV6UXRTRTFCUXkxVFNFRXlOVFlpZlN3S0NRbDdJbmd0WVcx - NkxXUmhkR1VpT2lBaU1qQXlNREV4TWpSVU1Ua3pPVE0zV2lJZ2ZRb0pYUXA5Q2c9PQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlBvbGljeSINCkNPTlRFTlQtTEVOR1RIOiA5MDQNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Signature" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '64' - _size: 64 - _value: !!binary | - MDM1NGY2Njg3MjI1Zjk4NzEyYjU5OWY0MmY1NmM0YjQ3ODBjYmI2M2Q0N2Y0NjliN2QyZWRmMjMy - NmI2ODQ0YQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LVNpZ25hdHVyZSINCkNPTlRFTlQtTEVOR1RIOiA2NA0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.BytesPayload - _content_type: application/octet-stream - _encoding: null - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - application/octet-stream - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="file"; filename="king_arthur.txt"; filename*=utf-8''king_arthur.txt - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '19' - _size: 19 - _value: !!binary | - S25pZ2h0cyB3aG8gc2F5IE5pIQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW0NCkNPTlRFTlQtRElTUE9TSVRJ - T046IGZvcm0tZGF0YTsgbmFtZT0iZmlsZSI7IGZpbGVuYW1lPSJraW5nX2FydGh1ci50eHQiOyBm - aWxlbmFtZSo9dXRmLTgnJ2tpbmdfYXJ0aHVyLnR4dA0KQ09OVEVOVC1MRU5HVEg6IDE5DQoNCg== - - '' - - '' - _value: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: POST - uri: https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/ - response: - body: - string: '' - headers: - Date: Tue, 24 Nov 2020 19:38:38 GMT - ETag: '"3676cdb7a927db43c846070c4e7606c7"' - Location: https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/sub-c-mock-key%2F0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0%2F42d7e28e-a724-4416-9328-b9fa13201041%2Fking_arthur.txt - Server: AmazonS3 - x-amz-expiration: expiry-date="Thu, 26 Nov 2020 00:00:00 GMT", rule-id="Archive - file 1 day after creation" - x-amz-id-2: Phvsyy15eFvzfe3SpH6Xy/zLlmNsCKfEwgaojqHToMnUWf1READ4CzFH270s9lcyZ5A+LydSoWo= - x-amz-request-id: 7D7D74E38CD52A03 - x-amz-server-side-encryption: AES256 - status: - code: 204 - message: No Content - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com - - / - - '' - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: GET - uri: https://ps.pndsn.com/v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test_message%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%2242d7e28e-a724-4416-9328-b9fa13201041%22%2C%20%22name%22%3A%20%22king_arthur.txt%22%7D%7D?l_file=0.24198853969573975&meta=null&store=1&ttl=222 - response: - body: - string: '[1,"Sent","16062467174849849"]' - headers: - Access-Control-Allow-Methods: GET - Access-Control-Allow-Origin: '*' - Cache-Control: no-cache - Connection: keep-alive - Content-Length: '30' - Content-Type: text/javascript; charset="UTF-8" - Date: Tue, 24 Nov 2020 19:38:37 GMT - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test_message%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%2242d7e28e-a724-4416-9328-b9fa13201041%22%2C%20%22name%22%3A%20%22king_arthur.txt%22%7D%7D - - meta=null&ttl=222&store=1&pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=f1b39735-2ad2-463c-9576-b65fac9d776b&l_file=0.24198853969573975 - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: GET - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/files/42d7e28e-a724-4416-9328-b9fa13201041/king_arthur.txt?l_file=0.17324558893839517 - response: - body: - string: '' - headers: - Access-Control-Allow-Origin: '*' - Cache-Control: public, max-age=1523, immutable - Connection: keep-alive - Content-Length: '0' - Date: Tue, 24 Nov 2020 19:38:37 GMT - Location: https://files-eu-central-1.pndsn.com/sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/42d7e28e-a724-4416-9328-b9fa13201041/king_arthur.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY7AU6GQD5KWBS3FG%2F20201124%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20201124T190000Z&X-Amz-Expires=3900&X-Amz-SignedHeaders=host&X-Amz-Signature=32fe06a247ad954b82c0ba17710778480a32db9faabb5ff3fd0449f4db372a6e - status: - code: 307 - message: Temporary Redirect - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/files/42d7e28e-a724-4416-9328-b9fa13201041/king_arthur.txt - - pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=f1b39735-2ad2-463c-9576-b65fac9d776b&l_file=0.17324558893839517 - - '' -version: 1 diff --git a/tests/integrational/fixtures/asyncio/file_upload/list_files.yaml b/tests/integrational/fixtures/asyncio/file_upload/list_files.yaml deleted file mode 100644 index 2af014f5..00000000 --- a/tests/integrational/fixtures/asyncio/file_upload/list_files.yaml +++ /dev/null @@ -1,31 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.5.4 - method: GET - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/files - response: - body: - string: '{"status":200,"data":[{"name":"king_arthur.txt","id":"05fe1901-dfea-4ccf-abd6-423deda262aa","size":19,"created":"2020-10-21T15:27:06Z"},{"name":"king_arthur.txt","id":"2a7d29c8-e8f4-4c2b-a24d-4b5f165d366e","size":19,"created":"2020-10-21T15:20:48Z"},{"name":"king_arthur.txt","id":"2f9c0888-375b-4599-a086-0f47837eee87","size":19,"created":"2020-10-21T15:31:34Z"},{"name":"king_arthur.txt","id":"320a8c88-a412-43a4-957e-fec73a4a781f","size":19,"created":"2020-10-21T15:31:13Z"},{"name":"king_arthur.txt","id":"7ce8d4ad-92b7-430a-ab8a-ba6b3489049f","size":19,"created":"2020-10-21T16:59:30Z"},{"name":"king_arthur.txt","id":"803716aa-7624-4a80-bf58-142c6b665eea","size":19,"created":"2020-10-21T17:04:01Z"},{"name":"king_arthur.txt","id":"8051678d-ed6c-45b6-9e93-6aa261c6b4b8","size":48,"created":"2020-10-21T17:02:45Z"},{"name":"king_arthur.txt","id":"826b36c4-638c-43d6-ba68-9911494599ec","size":19,"created":"2020-10-21T15:27:04Z"},{"name":"king_arthur.txt","id":"865fee42-6f14-4bcf-bd00-745a26cd1eda","size":48,"created":"2020-10-21T15:20:47Z"},{"name":"king_arthur.txt","id":"883119dc-b2d9-4b5a-9d46-2750f5619668","size":19,"created":"2020-10-21T17:00:43Z"},{"name":"king_arthur.txt","id":"945b11a9-156f-4506-a90f-ded77fcdcb44","size":48,"created":"2020-10-21T17:02:11Z"},{"name":"king_arthur.txt","id":"9dae0510-5c78-408d-b372-8f6401c9d127","size":19,"created":"2020-10-21T15:31:12Z"},{"name":"king_arthur.txt","id":"9efbccf0-91d7-4e86-a6db-6904c6aa955f","size":19,"created":"2020-10-21T15:27:13Z"},{"name":"king_arthur.txt","id":"a0dfd470-f114-4bfc-9f20-b1d4a1be940e","size":48,"created":"2020-10-21T15:27:05Z"},{"name":"king_arthur.txt","id":"a5dc8c14-a663-4f34-b7af-b5cb5f4a1694","size":19,"created":"2020-10-21T17:00:35Z"},{"name":"king_arthur.txt","id":"aa6b6b1a-0d40-4044-ad08-3535667ea9ef","size":19,"created":"2020-10-21T15:27:12Z"},{"name":"king_arthur.txt","id":"b0749af2-8ffc-4ac4-bc11-c81d50491d95","size":19,"created":"2020-10-21T17:01:45Z"},{"name":"king_arthur.txt","id":"c4476763-522b-4408-9743-ed5777151e8b","size":19,"created":"2020-10-21T15:20:46Z"},{"name":"king_arthur.txt","id":"c97c65ea-7f35-43cf-b3b9-a01117e38f63","size":19,"created":"2020-10-21T15:31:32Z"},{"name":"king_arthur.txt","id":"d3a8e2e5-d925-4b21-aa77-a036dd1c21dc","size":48,"created":"2020-10-21T15:31:33Z"},{"name":"king_arthur.txt","id":"efa78132-b224-4c77-8b7e-ce834381ce9a","size":19,"created":"2020-10-21T17:03:43Z"},{"name":"king_arthur.txt","id":"f6fd8772-0d7c-48e4-b161-dce210a947e8","size":19,"created":"2020-10-21T16:59:35Z"},{"name":"king_arthur.txt","id":"ffce293c-1ccc-43f8-9952-808505cc3803","size":19,"created":"2020-10-21T17:00:24Z"}],"next":null,"count":23}' - headers: - Access-Control-Allow-Origin: '*' - Connection: keep-alive - Content-Encoding: gzip - Content-Type: application/json - Date: Wed, 21 Oct 2020 17:05:38 GMT - Transfer-Encoding: chunked - Vary: Accept-Encoding - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/files - - pnsdk=PubNub-Python-Asyncio%2F4.5.4&uuid=43086006-0f8e-422b-8e88-43fea4afde7d - - '' -version: 1 diff --git a/tests/integrational/fixtures/asyncio/file_upload/publish_file_message_encrypted.yaml b/tests/integrational/fixtures/asyncio/file_upload/publish_file_message_encrypted.yaml deleted file mode 100644 index f04d6bc0..00000000 --- a/tests/integrational/fixtures/asyncio/file_upload/publish_file_message_encrypted.yaml +++ /dev/null @@ -1,31 +0,0 @@ -interactions: -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.6.1 - method: GET - uri: https://ps.pndsn.com/v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%222222%22%2C%20%22name%22%3A%20%22test%22%7D%7D?meta=%7B%7D&store=1&ttl=222 - response: - body: - string: '[1,"Sent","16058168227970293"]' - headers: - Access-Control-Allow-Methods: GET - Access-Control-Allow-Origin: '*' - Cache-Control: no-cache - Connection: keep-alive - Content-Length: '30' - Content-Type: text/javascript; charset="UTF-8" - Date: Thu, 19 Nov 2020 20:13:42 GMT - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%222222%22%2C%20%22name%22%3A%20%22test%22%7D%7D - - meta=%7B%7D&ttl=222&store=1&pnsdk=PubNub-Python-Asyncio%2F4.6.1&uuid=9b1fa4b9-75b2-4001-98d7-bf25c45bcaf3 - - '' -version: 1 diff --git a/tests/integrational/fixtures/asyncio/file_upload/send_and_download_file.yaml b/tests/integrational/fixtures/asyncio/file_upload/send_and_download_file.yaml deleted file mode 100644 index 96225fc1..00000000 --- a/tests/integrational/fixtures/asyncio/file_upload/send_and_download_file.yaml +++ /dev/null @@ -1,549 +0,0 @@ -interactions: -- request: - body: '{"name": "king_arthur.txt"}' - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: POST - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - response: - body: - string: '{"status":200,"data":{"id":"862168ec-0048-4578-9e6d-4c69361e9780","name":"king_arthur.txt"},"file_upload_request":{"url":"https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/","method":"POST","expiration_date":"2020-11-25T13:26:54Z","form_fields":[{"key":"tagging","value":"\u003cTagging\u003e\u003cTagSet\u003e\u003cTag\u003e\u003cKey\u003eObjectTTLInDays\u003c/Key\u003e\u003cValue\u003e1\u003c/Value\u003e\u003c/Tag\u003e\u003c/TagSet\u003e\u003c/Tagging\u003e"},{"key":"key","value":"sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt"},{"key":"Content-Type","value":"text/plain; - charset=utf-8"},{"key":"X-Amz-Credential","value":"AKIAY7AU6GQD5KWBS3FG/20201125/eu-central-1/s3/aws4_request"},{"key":"X-Amz-Security-Token","value":""},{"key":"X-Amz-Algorithm","value":"AWS4-HMAC-SHA256"},{"key":"X-Amz-Date","value":"20201125T132654Z"},{"key":"Policy","value":"CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTEtMjVUMTM6MjY6NTRaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvODYyMTY4ZWMtMDA0OC00NTc4LTllNmQtNGM2OTM2MWU5NzgwL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMTI1L2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDExMjVUMTMyNjU0WiIgfQoJXQp9Cg=="},{"key":"X-Amz-Signature","value":"8c4bc66e328da99c3158877ad5abd093394b24bd22a693af8bd8f9f8438f3471"}]}}' - headers: - Access-Control-Allow-Origin: '*' - Connection: keep-alive - Content-Encoding: gzip - Content-Type: application/json - Date: Wed, 25 Nov 2020 13:25:54 GMT - Transfer-Encoding: chunked - Vary: Accept-Encoding - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/generate-upload-url - - pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=ee97d818-f36d-4524-908f-5738e917bd42 - - '' -- request: - body: !!python/object:aiohttp.formdata.FormData - _charset: null - _fields: - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - tagging - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - ObjectTTLInDays1 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - key - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - Content-Type - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - text/plain; charset=utf-8 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Credential - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - AKIAY7AU6GQD5KWBS3FG/20201125/eu-central-1/s3/aws4_request - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Security-Token - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - '' - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Algorithm - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - AWS4-HMAC-SHA256 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Date - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - 20201125T132654Z - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - Policy - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - CnsKCSJleHBpcmF0aW9uIjogIjIwMjAtMTEtMjVUMTM6MjY6NTRaIiwKCSJjb25kaXRpb25zIjogWwoJCXsiYnVja2V0IjogInB1Ym51Yi1tbmVtb3N5bmUtZmlsZXMtZXUtY2VudHJhbC0xLXByZCJ9LAoJCVsiZXEiLCAiJHRhZ2dpbmciLCAiPFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4iXSwKCQlbImVxIiwgIiRrZXkiLCAic3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvODYyMTY4ZWMtMDA0OC00NTc4LTllNmQtNGM2OTM2MWU5NzgwL2tpbmdfYXJ0aHVyLnR4dCJdLAoJCVsiY29udGVudC1sZW5ndGgtcmFuZ2UiLCAwLCA1MjQyODgwXSwKCQlbInN0YXJ0cy13aXRoIiwgIiRDb250ZW50LVR5cGUiLCAiIl0sCgkJeyJ4LWFtei1jcmVkZW50aWFsIjogIkFLSUFZN0FVNkdRRDVLV0JTM0ZHLzIwMjAxMTI1L2V1LWNlbnRyYWwtMS9zMy9hd3M0X3JlcXVlc3QifSwKCQl7IngtYW16LXNlY3VyaXR5LXRva2VuIjogIiJ9LAoJCXsieC1hbXotYWxnb3JpdGhtIjogIkFXUzQtSE1BQy1TSEEyNTYifSwKCQl7IngtYW16LWRhdGUiOiAiMjAyMDExMjVUMTMyNjU0WiIgfQoJXQp9Cg== - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - X-Amz-Signature - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : multipart/form-data - - 8c4bc66e328da99c3158877ad5abd093394b24bd22a693af8bd8f9f8438f3471 - - !!python/tuple - - !!python/object/apply:multidict._multidict.MultiDict - - - !!python/tuple - - name - - file - - !!python/tuple - - filename - - king_arthur.txt - - ? !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - : application/octet-stream - - !!binary | - S25pZ2h0cyB3aG8gc2F5IE5pIQ== - _is_multipart: true - _quote_fields: true - _writer: !!python/object:aiohttp.multipart.MultipartWriter - _boundary: !!binary | - OTJkNThmNDZjMTlmNDhkMGE3ZDVmN2MyOGZlMGQzNmM= - _content_type: multipart/form-data; boundary="92d58f46c19f48d0a7d5f7c28fe0d36c" - _encoding: null - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data; boundary="92d58f46c19f48d0a7d5f7c28fe0d36c" - _parts: - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="tagging" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '89' - _size: 89 - _value: !!binary | - PFRhZ2dpbmc+PFRhZ1NldD48VGFnPjxLZXk+T2JqZWN0VFRMSW5EYXlzPC9LZXk+PFZhbHVlPjE8 - L1ZhbHVlPjwvVGFnPjwvVGFnU2V0PjwvVGFnZ2luZz4= - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9InRhZ2dpbmciDQpDT05URU5ULUxFTkdUSDogODkNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="key" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '139' - _size: 139 - _value: !!binary | - c3ViLWMtYzg4MjQyZmEtMTNhZS0xMWViLWJjMzQtY2U2ZmQ5NjdhZjk1LzBNUjEtejJ3MG5TSll4 - d0V5NzRwNVFqVjg1VG1nTkJLUHJWNzF0NTVOVDAvODYyMTY4ZWMtMDA0OC00NTc4LTllNmQtNGM2 - OTM2MWU5NzgwL2tpbmdfYXJ0aHVyLnR4dA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9ImtleSINCkNPTlRFTlQtTEVOR1RIOiAxMzkNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="Content-Type" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '25' - _size: 25 - _value: !!binary | - dGV4dC9wbGFpbjsgY2hhcnNldD11dGYtOA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IkNvbnRlbnQtVHlwZSINCkNPTlRFTlQtTEVOR1RIOiAyNQ0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Credential" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '58' - _size: 58 - _value: !!binary | - QUtJQVk3QVU2R1FENUtXQlMzRkcvMjAyMDExMjUvZXUtY2VudHJhbC0xL3MzL2F3czRfcmVxdWVz - dA== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LUNyZWRlbnRpYWwiDQpDT05URU5ULUxFTkdUSDogNTgNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Security-Token" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '0' - _size: 0 - _value: !!binary "" - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LVNlY3VyaXR5LVRva2VuIg0KQ09OVEVOVC1MRU5HVEg6IDAN - Cg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Algorithm" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '16' - _size: 16 - _value: !!binary | - QVdTNC1ITUFDLVNIQTI1Ng== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LUFsZ29yaXRobSINCkNPTlRFTlQtTEVOR1RIOiAxNg0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Date" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '16' - _size: 16 - _value: !!binary | - MjAyMDExMjVUMTMyNjU0Wg== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LURhdGUiDQpDT05URU5ULUxFTkdUSDogMTYNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="Policy" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '904' - _size: 904 - _value: !!binary | - Q25zS0NTSmxlSEJwY21GMGFXOXVJam9nSWpJd01qQXRNVEV0TWpWVU1UTTZNalk2TlRSYUlpd0tD - U0pqYjI1a2FYUnBiMjV6SWpvZ1d3b0pDWHNpWW5WamEyVjBJam9nSW5CMVltNTFZaTF0Ym1WdGIz - TjVibVV0Wm1sc1pYTXRaWFV0WTJWdWRISmhiQzB4TFhCeVpDSjlMQW9KQ1ZzaVpYRWlMQ0FpSkhS - aFoyZHBibWNpTENBaVBGUmhaMmRwYm1jK1BGUmhaMU5sZEQ0OFZHRm5QanhMWlhrK1QySnFaV04w - VkZSTVNXNUVZWGx6UEM5TFpYaytQRlpoYkhWbFBqRThMMVpoYkhWbFBqd3ZWR0ZuUGp3dlZHRm5V - MlYwUGp3dlZHRm5aMmx1Wno0aVhTd0tDUWxiSW1WeElpd2dJaVJyWlhraUxDQWljM1ZpTFdNdFl6 - ZzRNalF5Wm1FdE1UTmhaUzB4TVdWaUxXSmpNelF0WTJVMlptUTVOamRoWmprMUx6Qk5VakV0ZWpK - M01HNVRTbGw0ZDBWNU56UndOVkZxVmpnMVZHMW5Ua0pMVUhKV056RjBOVFZPVkRBdk9EWXlNVFk0 - WldNdE1EQTBPQzAwTlRjNExUbGxObVF0TkdNMk9UTTJNV1U1Tnpnd0wydHBibWRmWVhKMGFIVnlM - blI0ZENKZExBb0pDVnNpWTI5dWRHVnVkQzFzWlc1bmRHZ3RjbUZ1WjJVaUxDQXdMQ0ExTWpReU9E - Z3dYU3dLQ1FsYkluTjBZWEowY3kxM2FYUm9JaXdnSWlSRGIyNTBaVzUwTFZSNWNHVWlMQ0FpSWww - c0Nna0pleUo0TFdGdGVpMWpjbVZrWlc1MGFXRnNJam9nSWtGTFNVRlpOMEZWTmtkUlJEVkxWMEpU - TTBaSEx6SXdNakF4TVRJMUwyVjFMV05sYm5SeVlXd3RNUzl6TXk5aGQzTTBYM0psY1hWbGMzUWlm - U3dLQ1FsN0luZ3RZVzE2TFhObFkzVnlhWFI1TFhSdmEyVnVJam9nSWlKOUxBb0pDWHNpZUMxaGJY - b3RZV3huYjNKcGRHaHRJam9nSWtGWFV6UXRTRTFCUXkxVFNFRXlOVFlpZlN3S0NRbDdJbmd0WVcx - NkxXUmhkR1VpT2lBaU1qQXlNREV4TWpWVU1UTXlOalUwV2lJZ2ZRb0pYUXA5Q2c9PQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlBvbGljeSINCkNPTlRFTlQtTEVOR1RIOiA5MDQNCg0K - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.StringPayload - _content_type: multipart/form-data - _encoding: utf-8 - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - multipart/form-data - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="X-Amz-Signature" - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '64' - _size: 64 - _value: !!binary | - OGM0YmM2NmUzMjhkYTk5YzMxNTg4NzdhZDVhYmQwOTMzOTRiMjRiZDIyYTY5M2FmOGJkOGY5Zjg0 - MzhmMzQ3MQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBtdWx0aXBhcnQvZm9ybS1kYXRhDQpDT05URU5ULURJU1BPU0lUSU9OOiBm - b3JtLWRhdGE7IG5hbWU9IlgtQW16LVNpZ25hdHVyZSINCkNPTlRFTlQtTEVOR1RIOiA2NA0KDQo= - - '' - - '' - - !!python/tuple - - !!python/object:aiohttp.payload.BytesPayload - _content_type: application/octet-stream - _encoding: null - _filename: null - _headers: !!python/object/apply:multidict._multidict.CIMultiDict - - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-TYPE - - application/octet-stream - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-DISPOSITION - - form-data; name="file"; filename="king_arthur.txt"; filename*=utf-8''king_arthur.txt - - !!python/tuple - - !!python/object/new:multidict._multidict.istr - - CONTENT-LENGTH - - '19' - _size: 19 - _value: !!binary | - S25pZ2h0cyB3aG8gc2F5IE5pIQ== - - !!binary | - Q09OVEVOVC1UWVBFOiBhcHBsaWNhdGlvbi9vY3RldC1zdHJlYW0NCkNPTlRFTlQtRElTUE9TSVRJ - T046IGZvcm0tZGF0YTsgbmFtZT0iZmlsZSI7IGZpbGVuYW1lPSJraW5nX2FydGh1ci50eHQiOyBm - aWxlbmFtZSo9dXRmLTgnJ2tpbmdfYXJ0aHVyLnR4dA0KQ09OVEVOVC1MRU5HVEg6IDE5DQoNCg== - - '' - - '' - _value: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: POST - uri: https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/ - response: - body: - string: '' - headers: - Date: Wed, 25 Nov 2020 13:25:55 GMT - ETag: '"3676cdb7a927db43c846070c4e7606c7"' - Location: https://pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com/sub-c-mock-key%2F0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0%2F862168ec-0048-4578-9e6d-4c69361e9780%2Fking_arthur.txt - Server: AmazonS3 - x-amz-expiration: expiry-date="Fri, 27 Nov 2020 00:00:00 GMT", rule-id="Archive - file 1 day after creation" - x-amz-id-2: oQNsM/Ih2gVYskQl1csWFbx5mbP7t37lMPdjnQHfbtFN85qNiV9JHA73kmWqaGnIk4nak5urV6s= - x-amz-request-id: 6P1NBGDZDW4NBJ6T - x-amz-server-side-encryption: AES256 - status: - code: 204 - message: No Content - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - pubnub-mnemosyne-files-eu-central-1-prd.s3.amazonaws.com - - / - - '' - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: GET - uri: https://ps.pndsn.com/v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test_message%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%22862168ec-0048-4578-9e6d-4c69361e9780%22%2C%20%22name%22%3A%20%22king_arthur.txt%22%7D%7D?meta=null&store=1&ttl=222 - response: - body: - string: '[1,"Sent","16063107548270363"]' - headers: - Access-Control-Allow-Methods: GET - Access-Control-Allow-Origin: '*' - Cache-Control: no-cache - Connection: keep-alive - Content-Length: '30' - Content-Type: text/javascript; charset="UTF-8" - Date: Wed, 25 Nov 2020 13:25:54 GMT - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/publish-file/pub-c-mock-key/sub-c-mock-key/0/files_asyncio_ch/0/%7B%22message%22%3A%20%7B%22test_message%22%3A%20%22test%22%7D%2C%20%22file%22%3A%20%7B%22id%22%3A%20%22862168ec-0048-4578-9e6d-4c69361e9780%22%2C%20%22name%22%3A%20%22king_arthur.txt%22%7D%7D - - meta=null&ttl=222&store=1&pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=ee97d818-f36d-4524-908f-5738e917bd42&l_file=0.27685248851776123 - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: GET - uri: https://ps.pndsn.com/v1/files/sub-c-mock-key/channels/files_asyncio_ch/files/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt - response: - body: - string: '' - headers: - Access-Control-Allow-Origin: '*' - Cache-Control: public, max-age=2286, immutable - Connection: keep-alive - Content-Length: '0' - Date: Wed, 25 Nov 2020 13:25:54 GMT - Location: https://files-eu-central-1.pndsn.com/sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY7AU6GQD5KWBS3FG%2F20201125%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T130000Z&X-Amz-Expires=3900&X-Amz-SignedHeaders=host&X-Amz-Signature=094b5452e8788ee0ace5be5397c41cb3b0ba0b9db93797630010a250fae4b196 - status: - code: 307 - message: Temporary Redirect - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - ps.pndsn.com - - /v1/files/sub-c-mock-key/channels/files_asyncio_ch/files/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt - - pnsdk=PubNub-Python-Asyncio%2F4.7.0&uuid=ee97d818-f36d-4524-908f-5738e917bd42&l_file=0.19709094365437826 - - '' -- request: - body: null - headers: - User-Agent: - - PubNub-Python-Asyncio/4.7.0 - method: GET - uri: https://files-eu-central-1.pndsn.com/sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY7AU6GQD5KWBS3FG%2F20201125%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T130000Z&X-Amz-Expires=3900&X-Amz-Signature=094b5452e8788ee0ace5be5397c41cb3b0ba0b9db93797630010a250fae4b196&X-Amz-SignedHeaders=host - response: - body: - string: Knights who say Ni! - headers: - Accept-Ranges: bytes - Connection: keep-alive - Content-Length: '19' - Content-Type: text/plain; charset=utf-8 - Date: Wed, 25 Nov 2020 13:25:56 GMT - ETag: '"3676cdb7a927db43c846070c4e7606c7"' - Last-Modified: Wed, 25 Nov 2020 13:25:55 GMT - Server: AmazonS3 - Via: 1.1 e86025dac63232624d2273c5fd256ce4.cloudfront.net (CloudFront) - X-Amz-Cf-Id: JxKntRKPJTqm1yjJBSY8tGTsbQ6V23bKVqmt6efKi_hJ5BrLEyLaUw== - X-Amz-Cf-Pop: FRA2-C1 - X-Cache: Miss from cloudfront - x-amz-expiration: expiry-date="Fri, 27 Nov 2020 00:00:00 GMT", rule-id="Archive - file 1 day after creation" - x-amz-server-side-encryption: AES256 - status: - code: 200 - message: OK - url: !!python/object/new:yarl.URL - state: !!python/tuple - - !!python/object/new:urllib.parse.SplitResult - - https - - files-eu-central-1.pndsn.com - - /sub-c-mock-key/0MR1-z2w0nSJYxwEy74p5QjV85TmgNBKPrV71t55NT0/862168ec-0048-4578-9e6d-4c69361e9780/king_arthur.txt - - X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAY7AU6GQD5KWBS3FG%2F20201125%2Feu-central-1%2Fs3%2Faws4_request&X-Amz-Date=20201125T130000Z&X-Amz-Expires=3900&X-Amz-SignedHeaders=host&X-Amz-Signature=094b5452e8788ee0ace5be5397c41cb3b0ba0b9db93797630010a250fae4b196 - - '' -version: 1 diff --git a/tests/integrational/fixtures/asyncio/publish/do_not_store.json b/tests/integrational/fixtures/asyncio/publish/do_not_store.json index 9b1c4eec..9bb522e9 100644 --- a/tests/integrational/fixtures/asyncio/publish/do_not_store.json +++ b/tests/integrational/fixtures/asyncio/publish/do_not_store.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22hey%22?store=0", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22hey%22?store=0", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:32 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,7 +56,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814518791750\"]" + "string": "[1,\"Sent\",\"17334108326343660\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/fire_get.json b/tests/integrational/fixtures/asyncio/publish/fire_get.json index a600a169..5992ad6a 100644 --- a/tests/integrational/fixtures/asyncio/publish/fire_get.json +++ b/tests/integrational/fixtures/asyncio/publish/fire_get.json @@ -5,10 +5,22 @@ "request": { "method": "GET", "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/unique_sync/0/%22bla%22?norep=1&store=0", - "body": null, + "body": "", "headers": { - "User-Agent": [ - "PubNub-Python-Asyncio/9.0.0" + "host": [ + "ps.pndsn.com" + ], + "accept": [ + "*/*" + ], + "accept-encoding": [ + "gzip, deflate" + ], + "connection": [ + "keep-alive" + ], + "user-agent": [ + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -19,7 +31,7 @@ }, "headers": { "Date": [ - "Wed, 06 Nov 2024 09:02:46 GMT" + "Thu, 05 Dec 2024 15:02:03 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -44,7 +56,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17308837665022824\"]" + "string": "[1,\"Sent\",\"17334109234005323\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/invalid_key.json b/tests/integrational/fixtures/asyncio/publish/invalid_key.json index 9a2369f1..011bd8d5 100644 --- a/tests/integrational/fixtures/asyncio/publish/invalid_key.json +++ b/tests/integrational/fixtures/asyncio/publish/invalid_key.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-98863562-19a6-4760-bf0b-d537d1f5c582/sub-c-7ba2ac4c-4836-11e6-85a4-0619f8945a4f/0/asyncio-int-publish/0/%22hey%22?signature=v2.4M6YAw0h3h9DlHYeay10TKjyslKmg0LtlasLj9Y18Wg×tamp=1732781451", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PAM_PUBLISH}/{PN_KEY_PAM_SUBSCRIBE}/0/asyncio-int-publish/0/%22hey%22?timestamp=1733410832", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:52 GMT" + "Thu, 05 Dec 2024 15:00:32 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,7 +56,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814520248690\"]" + "string": "[1,\"Sent\",\"17334108327846111\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/meta_object.json b/tests/integrational/fixtures/asyncio/publish/meta_object.json index 605dc6bd..e6cc0feb 100644 --- a/tests/integrational/fixtures/asyncio/publish/meta_object.json +++ b/tests/integrational/fixtures/asyncio/publish/meta_object.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22hey%22?meta=%7B%22a%22%3A+2%2C+%22b%22%3A+%22qwer%22%7D", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22hey%22?meta=%7B%22a%22%3A+2%2C+%22b%22%3A+%22qwer%22%7D", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:32 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,7 +56,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814517559683\"]" + "string": "[1,\"Sent\",\"17334108324343105\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/mixed_via_get.json b/tests/integrational/fixtures/asyncio/publish/mixed_via_get.json index c5e17fae..928991d5 100644 --- a/tests/integrational/fixtures/asyncio/publish/mixed_via_get.json +++ b/tests/integrational/fixtures/asyncio/publish/mixed_via_get.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22hi%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/5", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:30 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,14 +56,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814505205290\"]" + "string": "[1,\"Sent\",\"17334108309073692\"]" } } }, { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/5", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/true", "body": "", "headers": { "host": [ @@ -79,7 +79,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -90,7 +90,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:30 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -115,14 +115,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814505210879\"]" + "string": "[1,\"Sent\",\"17334108309078547\"]" } } }, { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%5B%22hi%22%2C%20%22hi2%22%2C%20%22hi3%22%5D", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%5B%22hi%22%2C%20%22hi2%22%2C%20%22hi3%22%5D", "body": "", "headers": { "host": [ @@ -138,7 +138,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -149,7 +149,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:30 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -174,14 +174,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814505217874\"]" + "string": "[1,\"Sent\",\"17334108309084840\"]" } } }, { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/true", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22hi%22", "body": "", "headers": { "host": [ @@ -197,7 +197,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -208,7 +208,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:30 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -233,7 +233,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814505243996\"]" + "string": "[1,\"Sent\",\"17334108309088320\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/mixed_via_get_encrypted.json b/tests/integrational/fixtures/asyncio/publish/mixed_via_get_encrypted.json index d3514360..21024c8b 100644 --- a/tests/integrational/fixtures/asyncio/publish/mixed_via_get_encrypted.json +++ b/tests/integrational/fixtures/asyncio/publish/mixed_via_get_encrypted.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NdOBbiWd7zGph7bFEv5GX%2BmTa3M0vVg2xcyYg7CW45mG%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NdOBbiWd7zGph7bFEv5GX%2BmTa3M0vVg2xcyYg7CW45mG%22", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,14 +56,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814511050381\"]" + "string": "[1,\"Sent\",\"17334108315447185\"]" } } }, { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NQ66CzLYXFOKoI1a9G0s0hA%3D%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NQ66CzLYXFOKoI1a9G0s0hA%3D%22", "body": "", "headers": { "host": [ @@ -79,7 +79,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -90,7 +90,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -115,14 +115,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814511072139\"]" + "string": "[1,\"Sent\",\"17334108315532626\"]" } } }, { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NclhU9jqi%2B5cNMXFiry5TPU%3D%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NclhU9jqi%2B5cNMXFiry5TPU%3D%22", "body": "", "headers": { "host": [ @@ -138,7 +138,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -149,7 +149,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -174,14 +174,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814511141823\"]" + "string": "[1,\"Sent\",\"17334108315533708\"]" } } }, { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NS%2FB7ZYYL%2F8ZE%2FNEGBapOF0%3D%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NS%2FB7ZYYL%2F8ZE%2FNEGBapOF0%3D%22", "body": "", "headers": { "host": [ @@ -197,7 +197,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -208,7 +208,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -233,7 +233,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814511152366\"]" + "string": "[1,\"Sent\",\"17334108315555981\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/mixed_via_post.json b/tests/integrational/fixtures/asyncio/publish/mixed_via_post.json index 81c76c51..5547b5a9 100644 --- a/tests/integrational/fixtures/asyncio/publish/mixed_via_post.json +++ b/tests/integrational/fixtures/asyncio/publish/mixed_via_post.json @@ -4,8 +4,8 @@ { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", - "body": "5", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", + "body": "\"hi\"", "headers": { "host": [ "ps.pndsn.com" @@ -20,13 +20,13 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" ], "content-length": [ - "1" + "4" ] } }, @@ -37,7 +37,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -62,15 +62,15 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814508078560\"]" + "string": "[1,\"Sent\",\"17334108312181183\"]" } } }, { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", - "body": "true", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", + "body": "5", "headers": { "host": [ "ps.pndsn.com" @@ -85,13 +85,13 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" ], "content-length": [ - "4" + "1" ] } }, @@ -102,7 +102,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -127,14 +127,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814508116328\"]" + "string": "[1,\"Sent\",\"17334108312184536\"]" } } }, { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", "body": "[\"hi\", \"hi2\", \"hi3\"]", "headers": { "host": [ @@ -150,7 +150,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" @@ -167,7 +167,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -192,15 +192,15 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814508163459\"]" + "string": "[1,\"Sent\",\"17334108312228688\"]" } } }, { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", - "body": "\"hi\"", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", + "body": "true", "headers": { "host": [ "ps.pndsn.com" @@ -215,7 +215,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" @@ -232,7 +232,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -257,7 +257,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814508167027\"]" + "string": "[1,\"Sent\",\"17334108312261591\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/mixed_via_post_encrypted.json b/tests/integrational/fixtures/asyncio/publish/mixed_via_post_encrypted.json index 8d858163..aaec71f2 100644 --- a/tests/integrational/fixtures/asyncio/publish/mixed_via_post_encrypted.json +++ b/tests/integrational/fixtures/asyncio/publish/mixed_via_post_encrypted.json @@ -4,8 +4,8 @@ { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", - "body": "\"a25pZ2h0c29mbmkxMjM0NclhU9jqi+5cNMXFiry5TPU=\"", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", + "body": "\"a25pZ2h0c29mbmkxMjM0NdOBbiWd7zGph7bFEv5GX+mTa3M0vVg2xcyYg7CW45mG\"", "headers": { "host": [ "ps.pndsn.com" @@ -20,13 +20,13 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" ], "content-length": [ - "46" + "66" ] } }, @@ -37,7 +37,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -62,15 +62,15 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814514281042\"]" + "string": "[1,\"Sent\",\"17334108318604078\"]" } } }, { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", - "body": "\"a25pZ2h0c29mbmkxMjM0NS/B7ZYYL/8ZE/NEGBapOF0=\"", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", + "body": "\"a25pZ2h0c29mbmkxMjM0NclhU9jqi+5cNMXFiry5TPU=\"", "headers": { "host": [ "ps.pndsn.com" @@ -85,7 +85,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" @@ -102,7 +102,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -127,15 +127,15 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814514290630\"]" + "string": "[1,\"Sent\",\"17334108318621552\"]" } } }, { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", - "body": "\"a25pZ2h0c29mbmkxMjM0NdOBbiWd7zGph7bFEv5GX+mTa3M0vVg2xcyYg7CW45mG\"", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", + "body": "\"a25pZ2h0c29mbmkxMjM0NS/B7ZYYL/8ZE/NEGBapOF0=\"", "headers": { "host": [ "ps.pndsn.com" @@ -150,13 +150,13 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" ], "content-length": [ - "66" + "46" ] } }, @@ -167,7 +167,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -192,14 +192,14 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814514297687\"]" + "string": "[1,\"Sent\",\"17334108318645172\"]" } } }, { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", "body": "\"a25pZ2h0c29mbmkxMjM0NQ66CzLYXFOKoI1a9G0s0hA=\"", "headers": { "host": [ @@ -215,7 +215,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" @@ -232,7 +232,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:32 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -257,7 +257,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814514313760\"]" + "string": "[1,\"Sent\",\"17334108320605934\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/not_permitted.json b/tests/integrational/fixtures/asyncio/publish/not_permitted.json index e0d593cc..04ca4bba 100644 --- a/tests/integrational/fixtures/asyncio/publish/not_permitted.json +++ b/tests/integrational/fixtures/asyncio/publish/not_permitted.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-98863562-19a6-4760-bf0b-d537d1f5c582/sub-c-7ba2ac4c-4836-11e6-85a4-0619f8945a4f/0/asyncio-int-publish/0/%22hey%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PAM_PUBLISH}/{PN_KEY_PAM_SUBSCRIBE}/0/asyncio-int-publish/0/%22hey%22", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:52 GMT" + "Thu, 05 Dec 2024 15:00:32 GMT" ], "Content-Type": [ "text/javascript; charset=UTF-8" diff --git a/tests/integrational/fixtures/asyncio/publish/object_via_get.json b/tests/integrational/fixtures/asyncio/publish/object_via_get.json index d2bac3b9..2728778d 100644 --- a/tests/integrational/fixtures/asyncio/publish/object_via_get.json +++ b/tests/integrational/fixtures/asyncio/publish/object_via_get.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%7B%22name%22%3A%20%22Alex%22%2C%20%22online%22%3A%20true%7D", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%7B%22name%22%3A%20%22Alex%22%2C%20%22online%22%3A%20true%7D", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,7 +56,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814506635096\"]" + "string": "[1,\"Sent\",\"17334108310602900\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/object_via_get_encrypted.json b/tests/integrational/fixtures/asyncio/publish/object_via_get_encrypted.json index ee731202..6d49587e 100644 --- a/tests/integrational/fixtures/asyncio/publish/object_via_get_encrypted.json +++ b/tests/integrational/fixtures/asyncio/publish/object_via_get_encrypted.json @@ -4,7 +4,7 @@ { "request": { "method": "GET", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NZJdqrQwIy2EGbanaofVioxjgR2wkk02J3Z3NvR%2BzhR3WaTKTArF54xtAoq4J7zUtg%3D%3D%22", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0/%22a25pZ2h0c29mbmkxMjM0NZJdqrQwIy2EGbanaofVioxjgR2wkk02J3Z3NvR%2BzhR3WaTKTArF54xtAoq4J7zUtg%3D%3D%22", "body": "", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ] } }, @@ -31,7 +31,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -56,7 +56,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814512572544\"]" + "string": "[1,\"Sent\",\"17334108317005269\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/object_via_post.json b/tests/integrational/fixtures/asyncio/publish/object_via_post.json index 1140fe66..70fe7642 100644 --- a/tests/integrational/fixtures/asyncio/publish/object_via_post.json +++ b/tests/integrational/fixtures/asyncio/publish/object_via_post.json @@ -4,7 +4,7 @@ { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", "body": "{\"name\": \"Alex\", \"online\": true}", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" @@ -37,7 +37,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:50 GMT" + "Thu, 05 Dec 2024 15:00:31 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -62,7 +62,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814509661189\"]" + "string": "[1,\"Sent\",\"17334108313923637\"]" } } } diff --git a/tests/integrational/fixtures/asyncio/publish/object_via_post_encrypted.json b/tests/integrational/fixtures/asyncio/publish/object_via_post_encrypted.json index fbbcd302..741c15d8 100644 --- a/tests/integrational/fixtures/asyncio/publish/object_via_post_encrypted.json +++ b/tests/integrational/fixtures/asyncio/publish/object_via_post_encrypted.json @@ -4,7 +4,7 @@ { "request": { "method": "POST", - "uri": "https://ps.pndsn.com/publish/pub-c-739aa0fc-3ed5-472b-af26-aca1b333ec52/sub-c-33f55052-190b-11e6-bfbc-02ee2ddab7fe/0/asyncio-int-publish/0", + "uri": "https://ps.pndsn.com/publish/{PN_KEY_PUBLISH}/{PN_KEY_SUBSCRIBE}/0/asyncio-int-publish/0", "body": "\"a25pZ2h0c29mbmkxMjM0NZJdqrQwIy2EGbanaofVioxjgR2wkk02J3Z3NvR+zhR3WaTKTArF54xtAoq4J7zUtg==\"", "headers": { "host": [ @@ -20,7 +20,7 @@ "keep-alive" ], "user-agent": [ - "PubNub-Python-Asyncio/9.0.0" + "PubNub-Python-Asyncio/9.1.0" ], "content-type": [ "application/json" @@ -37,7 +37,7 @@ }, "headers": { "Date": [ - "Thu, 28 Nov 2024 08:10:51 GMT" + "Thu, 05 Dec 2024 15:00:32 GMT" ], "Content-Type": [ "text/javascript; charset=\"UTF-8\"" @@ -62,7 +62,7 @@ ] }, "body": { - "string": "[1,\"Sent\",\"17327814515859746\"]" + "string": "[1,\"Sent\",\"17334108322170052\"]" } } } diff --git a/tests/integrational/native_sync/test_publish.py b/tests/integrational/native_sync/test_publish.py index 9eac37cc..b7911905 100644 --- a/tests/integrational/native_sync/test_publish.py +++ b/tests/integrational/native_sync/test_publish.py @@ -1,6 +1,7 @@ import logging import unittest import urllib +import urllib.parse import pubnub from pubnub.exceptions import PubNubException @@ -385,7 +386,7 @@ def test_publish_custom_message_type(self): assert isinstance(envelope.result, PNPublishResult) assert envelope.result.timetoken > 1 assert len(cassette) == 1 - uri = urlparse(cassette.requests[0].uri) - query = parse_qs(uri.query) + uri = urllib.parse.urlparse(cassette.requests[0].uri) + query = urllib.parse.parse_qs(uri.query) assert 'custom_message_type' in query.keys() assert query['custom_message_type'] == ['test_message']