diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_as_list.json new file mode 100644 index 0000000000000..e6a0a58748b87 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_as_list.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestuc3h2z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "220", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "f9c87e18-4679-11ec-a89c-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u00229b1c4d6c-3261-4a88-a65c-f252e4d7926e\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:10:23.728617\u002B00:00\u0022, \u0022data\u0022: \u0022hello world\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:10:24 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "d85ccf24-795b-4171-a5a7-615acee9b3a8" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_base64_using_data.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_base64_using_data.json new file mode 100644 index 0000000000000..35b29534b92aa --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_base64_using_data.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestuc3h2z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "232", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "f917c86e-4679-11ec-8b28-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u00227ed46708-8286-46fe-8a16-e3abaf272ae5\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:10:22.570532\u002B00:00\u0022, \u0022data_base64\u0022: \u0022aGVsbG8gd29ybGQ=\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:10:22 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "c19c892f-6464-45dd-bb63-faf4c107b15f" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_dict.json new file mode 100644 index 0000000000000..d302e136f521c --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_dict.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestuc3h2z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "234", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "f8940ffe-4679-11ec-82f6-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022c7e7a746-b2d2-480d-bace-0fc6506212a0\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:10:21.707288\u002B00:00\u0022, \u0022data\u0022: {\u0022message\u0022: \u0022Hello World!\u0022}}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:10:21 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "055f55a3-26f1-4897-a0a5-fa1ac73e7825" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_none.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_none.json new file mode 100644 index 0000000000000..fefc9f5a2aea1 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_none.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestuc3h2z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "197", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "f962504a-4679-11ec-8b56-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022fcb3425e-639b-4c1f-8209-fc1c47ef5c8e\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:10:23.058976\u002B00:00\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:10:22 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "2deb2182-aae1-4c6c-9b23-b349289ba47e" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_str.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_str.json new file mode 100644 index 0000000000000..d0b8d0dcdd6cf --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_str.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestuc3h2z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "220", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "f98c2a52-4679-11ec-a349-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u00222898bc41-866c-4b3b-9f9a-292caa2c98c6\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:10:23.333253\u002B00:00\u0022, \u0022data\u0022: \u0022hello world\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:10:22 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "c457049e-846b-4593-9303-df5e2a1f5c43" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_with_extensions.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_with_extensions.json new file mode 100644 index 0000000000000..f934e24fd2896 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_with_extensions.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestuc3h2z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "241", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "f9eed29e-4679-11ec-8270-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022eea70a56-902d-4290-a59e-f630266e3e8d\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:10:23.979816\u002B00:00\u0022, \u0022data\u0022: \u0022hello world\u0022, \u0022ext1\u0022: \u0022extension\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:10:24 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "3a43bd8d-f4b1-4332-a040-fcf635e84467" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_as_list.yaml deleted file mode 100644 index f96bbe12ff137..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_as_list.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "84b41e66-8127-4f46-850e-d62e8386e87e", "time": - "2021-10-25T03:07:58.245751+00:00", "data": "hello world"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '220' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Mon, 25 Oct 2021 03:07:57 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_base64_using_data.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_base64_using_data.yaml deleted file mode 100644 index b472fd4927a4a..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_base64_using_data.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "630d2dfe-6a48-455b-bd59-7c08cd070226", "time": - "2021-10-25T03:07:58.780277+00:00", "data_base64": "b''hello world''"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '230' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Mon, 25 Oct 2021 03:07:58 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_dict.yaml deleted file mode 100644 index a4a9d8fb97a91..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_dict.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "f687bede-e758-4bbd-aec9-d3f284b92238", "time": - "2021-10-25T03:07:59.100133+00:00", "data": {"message": "Hello World!"}}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '234' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Mon, 25 Oct 2021 03:07:59 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_none.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_none.yaml deleted file mode 100644 index dd845acb4e6ea..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_none.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "0adea5e4-44e6-4c88-83f2-ab009c09ac43", "time": - "2021-10-25T03:07:59.496961+00:00", "data": null}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '211' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Mon, 25 Oct 2021 03:07:59 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_str.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_str.yaml deleted file mode 100644 index 27c9e9babb74e..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_str.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "5e41b091-7dea-4f94-a483-5d28846050b1", "time": - "2021-10-25T03:07:59.815085+00:00", "data": "hello world"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '220' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Mon, 25 Oct 2021 03:07:59 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_with_extensions.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_with_extensions.yaml deleted file mode 100644 index 1277587dff0af..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events.test_send_cloud_event_data_with_extensions.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "ext1": "extension", "specversion": "1.0", "id": "c55886a8-b944-4f73-acd7-a309323f07ed", - "time": "2021-10-25T03:08:00.178627+00:00", "data": "hello world"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '241' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Mon, 25 Oct 2021 03:07:59 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_as_list.json new file mode 100644 index 0000000000000..838fa7df8ad88 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_as_list.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestek6npr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "220", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "daa5382c-4679-11ec-bf9c-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022825ed25d-4c7b-40a6-a263-ca52791eb87d\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:09:31.488079\u002B00:00\u0022, \u0022data\u0022: \u0022hello world\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:09:31 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "c5b9b34e-7865-4b96-a418-0a6c39d1fdc5" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_base64_using_data.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_base64_using_data.json new file mode 100644 index 0000000000000..02ff98da4c03e --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_base64_using_data.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestek6npr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "232", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "da176cf6-4679-11ec-9c94-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u002214dc8e24-3dd0-4556-8114-06cb4ddc0e0c\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:09:30.558821\u002B00:00\u0022, \u0022data_base64\u0022: \u0022aGVsbG8gd29ybGQ=\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:09:30 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "d065efd8-058e-4b05-92d3-e567890227e7" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_dict.json new file mode 100644 index 0000000000000..a9226c09523d1 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_dict.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestek6npr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "234", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "d98cf174-4679-11ec-a9b8-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022bc6c50cc-ab48-4472-be8d-953d386fe59f\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:09:29.651260\u002B00:00\u0022, \u0022data\u0022: {\u0022message\u0022: \u0022Hello World!\u0022}}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:09:30 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "52303162-3d58-4966-9d2e-ee78f8d51df9" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_none.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_none.json new file mode 100644 index 0000000000000..46538ad6313fd --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_none.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestek6npr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "197", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "da394440-4679-11ec-9fea-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022746d23b0-75d2-4c19-a17e-bf12316dbcb7\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:09:30.780599\u002B00:00\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:09:30 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "244d5ee3-49ca-4270-8163-fc09c105c5b4" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_str.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_str.json new file mode 100644 index 0000000000000..abc37642ca803 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_str.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestek6npr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "220", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "da784fc6-4679-11ec-984a-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022f4dc2477-76f3-4421-89dc-438244adf3bc\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:09:31.192750\u002B00:00\u0022, \u0022data\u0022: \u0022hello world\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:09:31 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "3e8836aa-ccc8-4f84-8f08-1197e9d6dab6" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_with_extensions.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_with_extensions.json new file mode 100644 index 0000000000000..612869dc8e322 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.pyTestEventGridPublisherClientCncftest_send_cloud_event_data_with_extensions.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestek6npr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "241", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "dacdcb62-4679-11ec-8e2a-2816a845e8c6" + }, + "RequestBody": "[{\u0022specversion\u0022: \u00221.0\u0022, \u0022id\u0022: \u0022847cd245-5e17-4a51-aabd-493c9795eeb3\u0022, \u0022source\u0022: \u0022https://example.com/event-producer\u0022, \u0022type\u0022: \u0022com.example.sampletype1\u0022, \u0022time\u0022: \u00222021-11-16T01:09:31.753994\u002B00:00\u0022, \u0022data\u0022: \u0022hello world\u0022, \u0022ext1\u0022: \u0022extension\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:09:31 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "1fa736fc-11e7-474a-90c5-d9bb830e0250" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_as_list.yaml deleted file mode 100644 index 50e2b52dd3f26..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_as_list.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "2048d6b4-fd6e-43c1-8b21-bf5d0fac8100", "time": - "2021-10-25T03:08:54.519646+00:00", "data": "hello world"}]' - headers: - Content-Length: - - '220' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Mon, 25 Oct 2021 03:08:55 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestpwti6z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_base64_using_data.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_base64_using_data.yaml deleted file mode 100644 index b1bf0b301b7b6..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_base64_using_data.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "d9467f83-a523-4dce-a4ef-65d8d3c03e1b", "time": - "2021-10-25T03:08:55.027961+00:00", "data_base64": "b''hello world''"}]' - headers: - Content-Length: - - '230' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Mon, 25 Oct 2021 03:08:55 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestpwti6z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_dict.yaml deleted file mode 100644 index 1203fea626e97..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_dict.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "e281a27b-9da4-4714-a9a5-837f2684fd3a", "time": - "2021-10-25T03:08:55.227972+00:00", "data": {"message": "Hello World!"}}]' - headers: - Content-Length: - - '234' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Mon, 25 Oct 2021 03:08:55 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestpwti6z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_none.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_none.yaml deleted file mode 100644 index 3923b07a8cee8..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_none.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "0b0b96a4-b764-41b4-81a9-431c894e0739", "time": - "2021-10-25T03:08:55.587395+00:00", "data": null}]' - headers: - Content-Length: - - '211' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Mon, 25 Oct 2021 03:08:55 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestpwti6z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_str.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_str.yaml deleted file mode 100644 index d2a169aa567ec..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_str.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "specversion": "1.0", "id": "26d60fa4-2290-4222-8362-7ced528cc96b", "time": - "2021-10-25T03:08:55.916341+00:00", "data": "hello world"}]' - headers: - Content-Length: - - '220' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Mon, 25 Oct 2021 03:08:56 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestpwti6z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_with_extensions.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_with_extensions.yaml deleted file mode 100644 index 276b1b08010c7..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_cncf_events_async.test_send_cloud_event_data_with_extensions.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"type": "com.example.sampletype1", "source": "https://example.com/event-producer", - "ext1": "extension", "specversion": "1.0", "id": "5aca51d6-0b0c-478b-b479-c86bfc16ff61", - "time": "2021-10-25T03:08:56.295866+00:00", "data": "hello world"}]' - headers: - Content-Length: - - '241' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Mon, 25 Oct 2021 03:08:56 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestpwti6z.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_NONE_credential.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_NONE_credential.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_NONE_credential.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_as_list.json new file mode 100644 index 0000000000000..209de0ba566a4 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_as_list.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "198", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "6126bee6-4678-11ec-ada4-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022d7f9d39f-4a8c-4ced-99f2-2be7f7860e42\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:58.158148Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:58 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "8fedef80-3563-4dcd-bf14-baa894885b32" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_base64_using_data.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_base64_using_data.json new file mode 100644 index 0000000000000..93c577a7a295c --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_base64_using_data.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "211", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "605b5f82-4678-11ec-a0cb-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022f8439b08-d2c8-4fdd-bbb1-1d07db2a56b3\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data_base64\u0022: \u0022Y2xvdWRldmVudA==\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:56.825355Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:56 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "04152277-a5b1-4eb8-959e-d71f4d1ea206" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_bytes.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_bytes.json new file mode 100644 index 0000000000000..a1a8c51b3feb3 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_bytes.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "211", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "60fd6c5c-4678-11ec-b289-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u002202497202-e73e-408e-94a0-9d68a10f2d07\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data_base64\u0022: \u0022Y2xvdWRldmVudA==\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:57.887367Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:57 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "ef6c03ce-c881-4e42-aa6e-293cca1cd876" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_dict.json new file mode 100644 index 0000000000000..09bdf4efb0539 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_dict.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "210", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "5ffaf49c-4678-11ec-bda6-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022494f508f-0753-4c12-8d07-96fae4466d5a\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022cloudevent\u0022}, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:56.193471Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:56 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "7d904f43-82ca-4c9b-aab1-9dddfdc8f6b9" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_none.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_none.json new file mode 100644 index 0000000000000..a5b8f840a5afe --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_none.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "175", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "60833424-4678-11ec-938c-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022df4850aa-bb73-479d-83a5-01268e3406d8\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:57.08639Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:57 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "4b5e36af-b25c-4173-8788-075e361bb568" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_str.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_str.json new file mode 100644 index 0000000000000..4f37d975eb043 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_str.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "198", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "60a77f7a-4678-11ec-975f-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022899ba91f-599a-4999-8ce9-5c4f9b82d404\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:57.324248Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:57 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "6319a5ec-f258-4324-ae5a-f02e2760d51e" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_with_extensions.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_with_extensions.json new file mode 100644 index 0000000000000..f07ca23274813 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_data_with_extensions.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "239", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "615032da-4678-11ec-baf6-2816a845e8c6" + }, + "RequestBody": "[{\u0022reasoncode\u0022: 204, \u0022extension\u0022: \u0022hello\u0022, \u0022id\u0022: \u00229659efe1-d38f-49d9-8611-e139df195351\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T00:58:58.429818Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:58 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "64285376-fdde-493b-881f-b3da6870bdd3" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_dict.json new file mode 100644 index 0000000000000..4d19f871b1fd9 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_cloud_event_dict.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtestla5wgu.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "127", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "61bcfd24-4678-11ec-9fb0-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00221234\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022specversion\u0022: \u00221.0\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:59 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "973befed-c8df-47ed-a776-286d7ea55dbe" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_custom_schema_event.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_custom_schema_event.json new file mode 100644 index 0000000000000..68421c3173e04 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_custom_schema_event.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://customeventgridtestarqkc.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "696e9626-4678-11ec-9224-2816a845e8c6" + }, + "RequestBody": "[{\u0022customSubject\u0022: \u0022sample\u0022, \u0022customEventType\u0022: \u0022sample.event\u0022, \u0022customDataVersion\u0022: \u00222.0\u0022, \u0022customId\u0022: \u00221234\u0022, \u0022customEventTime\u0022: \u00222021-11-16T00:59:12.050735\u002B00:00\u0022, \u0022customData\u0022: \u0022sample data\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:59:12 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "25cf9339-0a57-496a-b6fc-e04b7bc34363" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_custom_schema_event_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_custom_schema_event_as_list.json new file mode 100644 index 0000000000000..7e4055114fe06 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_custom_schema_event_as_list.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://customeventgridtestarqkc.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "396", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "69e471a8-4678-11ec-8c9c-2816a845e8c6" + }, + "RequestBody": "[{\u0022customSubject\u0022: \u0022sample\u0022, \u0022customEventType\u0022: \u0022sample.event\u0022, \u0022customDataVersion\u0022: \u00222.0\u0022, \u0022customId\u0022: \u00221234\u0022, \u0022customEventTime\u0022: \u00222021-11-16T00:59:12.823157\u002B00:00\u0022, \u0022customData\u0022: \u0022sample data\u0022}, {\u0022customSubject\u0022: \u0022sample2\u0022, \u0022customEventType\u0022: \u0022sample.event\u0022, \u0022customDataVersion\u0022: \u00222.0\u0022, \u0022customId\u0022: \u002212345\u0022, \u0022customEventTime\u0022: \u00222021-11-16T00:59:12.823157\u002B00:00\u0022, \u0022customData\u0022: \u0022sample data 2\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:59:13 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "f0e5d5ff-6a0a-4aad-9ac6-2dc66dec6adc" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_as_list.json new file mode 100644 index 0000000000000..76926a31f0b02 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_as_list.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtestzup7kkexjmx.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "402", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "583511b8-4678-11ec-ac61-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022328cf238-3c12-4cd7-abc4-a1f891c87951\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: \u0022eventgridevent\u0022, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T00:58:43.152553Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}, {\u0022id\u0022: \u00222f541761-ec6f-4f63-8370-fcc0eeaafea7\u0022, \u0022subject\u0022: \u0022sample2\u0022, \u0022data\u0022: \u0022eventgridevent2\u0022, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T00:58:43.152553Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:43 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "ff6dbf17-0bcf-4ddb-aec0-2474404ce49d" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_bytes.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_bytes.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_bytes.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_dict.json new file mode 100644 index 0000000000000..32c9ac5fdb6fb --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_dict.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtestzup7kkexjmx.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "212", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "57b323d4-4678-11ec-945a-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00225a01fe33-3896-44d5-9d6e-3fc008f7411a\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022eventgridevent\u0022}, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T00:58:42.295055Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:43 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "77e81a0c-5aa8-42c8-ad00-c6f625a7ba6e" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_str.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_str.json new file mode 100644 index 0000000000000..509e7dc2a3f8c --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_data_str.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtestzup7kkexjmx.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "200", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "585b164a-4678-11ec-90b9-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022070bfe28-f99e-453d-866b-a3e15befe1f6\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: \u0022eventgridevent\u0022, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T00:58:43.400712Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:43 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "acbf0f6d-ce0f-4c5f-ba8b-852f31b07978" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_bytes.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_bytes.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_bytes.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_dict.json new file mode 100644 index 0000000000000..70af139aa547e --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_dict.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtestzup7kkexjmx.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "217", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "58b4cbc2-4678-11ec-85fa-2816a845e8c6" + }, + "RequestBody": "[{\u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: {\u0022key1\u0022: \u0022Sample.EventGrid.Event\u0022}, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022dataVersion\u0022: \u00222.0\u0022, \u0022id\u0022: \u00225678df6a-14c8-4e10-9806-103c788b127a\u0022, \u0022eventTime\u0022: \u00222021-11-15 16:58:43.989625\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:44 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "5b4c758a-22d6-4be1-b68e-0eed66c1fd1d" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_fails_without_full_url.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_fails_without_full_url.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_event_grid_event_fails_without_full_url.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_signature_credential.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_signature_credential.json new file mode 100644 index 0000000000000..3acd31ec9c159 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_signature_credential.json @@ -0,0 +1,29 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtestzup7kkexjmx.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Content-Length": "212", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "61f1b40c-4678-11ec-ba46-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022ca0a76bf-1382-4bde-a9f2-55b6dc254c3c\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022eventgridevent\u0022}, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T00:58:59.487275Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 00:58:59 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "bb248521-1211-4243-8872-b3c98993d638" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_token_credential.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_token_credential.json new file mode 100644 index 0000000000000..e4c163af343a3 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.pyTestEventGridPublisherClienttest_send_token_credential.json @@ -0,0 +1,264 @@ +{ + "Entries": [ + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0/.well-known/openid-configuration", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.7.3 (Windows-10-10.0.18362-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "1753", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 16 Nov 2021 00:59:13 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Aq6frIgzYJ5GrSMS51nYacw; expires=Thu, 16-Dec-2021 00:59:13 GMT; path=/; secure; HttpOnly; SameSite=None", + "esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrR-paoSABnxO3AcFSs0Xn9AaHDaAaBGU800_MuXajkHkkPaMkO3k1pGZINQhTOCX38IYu3gfB82Qi7Opag_P977zVs2jm7hVaCuGqDjJfqkOXF8Z5loOUgOvs5kbsuyiN43x4dn220pkOK9rVl4xtGWbd1iwz6Jc9TRYDgAPGqZkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12249.11 - NCUS ProdSlices", + "x-ms-request-id": "a372ecbf-a761-404d-ab92-76ce98ff0400" + }, + "ResponseBody": { + "token_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "token_endpoint_auth_methods_supported": [ + "client_secret_post", + "private_key_jwt", + "client_secret_basic" + ], + "jwks_uri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/discovery/v2.0/keys", + "response_modes_supported": [ + "query", + "fragment", + "form_post" + ], + "subject_types_supported": [ + "pairwise" + ], + "id_token_signing_alg_values_supported": [ + "RS256" + ], + "response_types_supported": [ + "code", + "id_token", + "code id_token", + "id_token token" + ], + "scopes_supported": [ + "openid", + "profile", + "email", + "offline_access" + ], + "issuer": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/v2.0", + "request_uri_parameter_supported": false, + "userinfo_endpoint": "https://graph.microsoft.com/oidc/userinfo", + "authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/authorize", + "device_authorization_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/devicecode", + "http_logout_supported": true, + "frontchannel_logout_supported": true, + "end_session_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/logout", + "claims_supported": [ + "sub", + "iss", + "cloud_instance_name", + "cloud_instance_host_name", + "cloud_graph_host_name", + "msgraph_host", + "aud", + "exp", + "iat", + "auth_time", + "acr", + "nonce", + "preferred_username", + "name", + "tid", + "ver", + "at_hash", + "c_hash", + "email" + ], + "kerberos_endpoint": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/kerberos", + "tenant_region_scope": "WW", + "cloud_instance_name": "microsoftonline.com", + "cloud_graph_host_name": "graph.windows.net", + "msgraph_host": "graph.microsoft.com", + "rbac_url": "https://pas.windows.net" + } + }, + { + "RequestUri": "https://login.microsoftonline.com/common/discovery/instance?api-version=1.1\u0026authorization_endpoint=https://login.microsoftonline.com/common/oauth2/authorize", + "RequestMethod": "GET", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + "Cookie": "fpc=Aq6frIgzYJ5GrSMS51nYacw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.7.3 (Windows-10-10.0.18362-SP0)" + }, + "RequestBody": null, + "StatusCode": 200, + "ResponseHeaders": { + "Access-Control-Allow-Methods": "GET, OPTIONS", + "Access-Control-Allow-Origin": "*", + "Cache-Control": "max-age=86400, private", + "Content-Length": "945", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 16 Nov 2021 00:59:13 GMT", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Set-Cookie": [ + "fpc=Aq6frIgzYJ5GrSMS51nYacw; expires=Thu, 16-Dec-2021 00:59:13 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-ests-server": "2.1.12249.11 - EUS ProdSlices", + "x-ms-request-id": "66c72b80-246c-4c01-bc65-9f4b238c0400" + }, + "ResponseBody": { + "tenant_discovery_endpoint": "https://login.microsoftonline.com/common/.well-known/openid-configuration", + "api-version": "1.1", + "metadata": [ + { + "preferred_network": "login.microsoftonline.com", + "preferred_cache": "login.windows.net", + "aliases": [ + "login.microsoftonline.com", + "login.windows.net", + "login.microsoft.com", + "sts.windows.net" + ] + }, + { + "preferred_network": "login.partner.microsoftonline.cn", + "preferred_cache": "login.partner.microsoftonline.cn", + "aliases": [ + "login.partner.microsoftonline.cn", + "login.chinacloudapi.cn" + ] + }, + { + "preferred_network": "login.microsoftonline.de", + "preferred_cache": "login.microsoftonline.de", + "aliases": [ + "login.microsoftonline.de" + ] + }, + { + "preferred_network": "login.microsoftonline.us", + "preferred_cache": "login.microsoftonline.us", + "aliases": [ + "login.microsoftonline.us", + "login.usgovcloudapi.net" + ] + }, + { + "preferred_network": "login-us.microsoftonline.com", + "preferred_cache": "login-us.microsoftonline.com", + "aliases": [ + "login-us.microsoftonline.com" + ] + } + ] + } + }, + { + "RequestUri": "https://login.microsoftonline.com/72f988bf-86f1-41af-91ab-2d7cd011db47/oauth2/v2.0/token", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "application/json", + "Accept-Encoding": "gzip, deflate", + "client-request-id": "ebf313c7-e4b2-4dc5-8355-514a929ae6ca", + "Connection": "keep-alive", + "Content-Length": "291", + "Content-Type": "application/x-www-form-urlencoded", + "Cookie": "fpc=Aq6frIgzYJ5GrSMS51nYacw; stsservicecookie=estsfd; x-ms-gateway-slice=estsfd", + "User-Agent": "azsdk-python-identity/1.7.2 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-client-cpu": "x86", + "x-client-current-telemetry": "4|730,0|", + "x-client-last-telemetry": "4|0|||", + "x-client-os": "win32", + "x-client-sku": "MSAL.Python", + "x-client-ver": "1.12.0" + }, + "RequestBody": "client_id=f850650c-1fcf-4489-b46f-71af2e30d360\u0026grant_type=client_credentials\u0026client_info=1\u0026client_secret=s%3F%3Dq2ZAdO%3D-Vn8ecVgo0Hv64-%3D4ril2t\u0026claims=%7B%22access_token%22%3A\u002B%7B%22xms_cc%22%3A\u002B%7B%22values%22%3A\u002B%5B%22CP1%22%5D%7D%7D%7D\u0026scope=https%3A%2F%2Feventgrid.azure.net%2F.default", + "StatusCode": 200, + "ResponseHeaders": { + "Cache-Control": "no-store, no-cache", + "client-request-id": "ebf313c7-e4b2-4dc5-8355-514a929ae6ca", + "Content-Length": "1321", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 16 Nov 2021 00:59:13 GMT", + "Expires": "-1", + "P3P": "CP=\u0022DSP CUR OTPi IND OTRi ONL FIN\u0022", + "Pragma": "no-cache", + "Set-Cookie": [ + "fpc=Aq6frIgzYJ5GrSMS51nYacxZIlfUAQAAAGH5JNkOAAAA; expires=Thu, 16-Dec-2021 00:59:14 GMT; path=/; secure; HttpOnly; SameSite=None", + "x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly", + "stsservicecookie=estsfd; path=/; secure; samesite=none; httponly" + ], + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "X-Content-Type-Options": "nosniff", + "x-ms-clitelem": "1,0,0,,", + "x-ms-ests-server": "2.1.12249.11 - NCUS ProdSlices", + "x-ms-request-id": "65f3178d-7536-4d90-af24-908d37440400" + }, + "ResponseBody": { + "token_type": "Bearer", + "expires_in": 86399, + "ext_expires_in": 86399, + "access_token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiIsIng1dCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCIsImtpZCI6Imwzc1EtNTBjQ0g0eEJWWkxIVEd3blNSNzY4MCJ9.eyJhdWQiOiJodHRwczovL2V2ZW50Z3JpZC5henVyZS5uZXQiLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC83MmY5ODhiZi04NmYxLTQxYWYtOTFhYi0yZDdjZDAxMWRiNDcvIiwiaWF0IjoxNjM3MDI0MDU0LCJuYmYiOjE2MzcwMjQwNTQsImV4cCI6MTYzNzExMDc1NCwiYWlvIjoiRTJaZ1lMaHc3OWlUajdPUDIvQzNOM1ovTC9sYUFnQT0iLCJhcHBpZCI6ImY4NTA2NTBjLTFmY2YtNDQ4OS1iNDZmLTcxYWYyZTMwZDM2MCIsImFwcGlkYWNyIjoiMSIsImlkcCI6Imh0dHBzOi8vc3RzLndpbmRvd3MubmV0LzcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0Ny8iLCJvaWQiOiIzMDUxMWM5ZC1iYTFhLTRjN2ItYjQyMi01YjU0M2RhMTFiM2YiLCJyaCI6IjAuQVFFQXY0ajVjdkdHcjBHUnF5MTgwQkhiUnd4bFVQalBINGxFdEc5eHJ5NHcwMkFhQUFBLiIsInN1YiI6IjMwNTExYzlkLWJhMWEtNGM3Yi1iNDIyLTViNTQzZGExMWIzZiIsInRpZCI6IjcyZjk4OGJmLTg2ZjEtNDFhZi05MWFiLTJkN2NkMDExZGI0NyIsInV0aSI6ImpSZnpaVFoxa0UydkpKQ05OMFFFQUEiLCJ2ZXIiOiIxLjAifQ.Hv-SgZBh-wkn8arYFl7Q2wNmYSj345LirrNoiyS0zWlTo7FHn-JfgBzEXXvIR2rAsMbWYpSPWEV_Ij2Ff6Da9hEgbWWfbufQwmEJJraCwwI7f0r-8mjLbNwt7oGdJccasPrSSOs8MZ5a1XPs-IThnfCxI_uNp7jM3Nw-ZCZHm_9i1at24ybd8mE3sXot09aeBBBbeOhmxeEsdVMFm054gseeFKkWDyXgJGLhp9AVV_oGw1N8Ni-VQ9gZjN6r9Ow1dc0_DrNjMm0tgnnU1mfS8-YccZAkWzpp-3FpUnY_IANI3domzakJ1gkUqS1PJKKq3sgbhP-D-FNRkpweLE00dQ" + } + }, + { + "RequestUri": "https://eventgridtestzup7kkexjmx.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Authorization": "Sanitized", + "Connection": "keep-alive", + "Content-Length": "212", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgrid/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "6a27ea0a-4678-11ec-8a01-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u002247e400db-1a7a-48be-a836-b68fde05ebbc\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022eventgridevent\u0022}, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T00:59:13.264341Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 401, + "ResponseHeaders": { + "Content-Length": "981", + "Content-Type": "application/json; charset=utf-8", + "Date": "Tue, 16 Nov 2021 00:59:15 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "11aa84ef-1766-4b06-994f-2887b31872d9" + }, + "ResponseBody": [ + "{\r\n", + " \u0022error\u0022: {\r\n", + " \u0022code\u0022: \u0022Unauthorized\u0022,\r\n", + " \u0022message\u0022: \u0022The principal associated with access token presented with the incoming request does not have permission to send data to /subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/eventgridtestrgname/providers/Microsoft.EventGrid/topics/eventgridtestzup7kkexjmx. Report \u002711aa84ef-1766-4b06-994f-2887b31872d9:7:11/16/2021 12:59:15 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.\u0022,\r\n", + " \u0022details\u0022: [{\r\n", + " \u0022code\u0022: \u0022Unauthorized\u0022,\r\n", + " \u0022message\u0022: \u0022The principal associated with access token presented with the incoming request does not have permission to send data to /subscriptions/faa080af-c1d8-40ad-9cce-e1a450ca5b57/resourceGroups/eventgridtestrgname/providers/Microsoft.EventGrid/topics/eventgridtestzup7kkexjmx. Report \u002711aa84ef-1766-4b06-994f-2887b31872d9:7:11/16/2021 12:59:15 AM (UTC)\u0027 to our forums for assistance or raise a support ticket.\u0022\r\n", + " }]\r\n", + " }\r\n", + "}" + ] + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_as_list.yaml deleted file mode 100644 index 51865651d7947..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_as_list.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "faf85db8-1f8e-45df-afee-a58858789404", "source": "http://samplesource.dev", - "data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:36:13.142724Z", - "specversion": "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '198' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:13 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_base64_using_data.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_base64_using_data.yaml deleted file mode 100644 index dff2f78a2f823..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_base64_using_data.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "87d70d3b-c581-4301-b95a-25afe75fb263", "source": "http://samplesource.dev", - "data_base64": "Y2xvdWRldmVudA==", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:36:13.799001Z", - "specversion": "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '211' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:13 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_bytes.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_bytes.yaml deleted file mode 100644 index be5c3d880645c..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_bytes.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "e18be644-6df9-428d-b32b-ad3db396b1e4", "source": "http://samplesource.dev", - "data_base64": "Y2xvdWRldmVudA==", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:36:14.337313Z", - "specversion": "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '211' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:14 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_dict.yaml deleted file mode 100644 index ec666a8293563..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_dict.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "a7e381a2-b5de-4e41-87ac-a87c53c53a37", "source": "http://samplesource.dev", - "data": {"sample": "cloudevent"}, "type": "Sample.Cloud.Event", "time": "2021-03-09T23:36:14.619707Z", - "specversion": "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '210' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:14 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_none.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_none.yaml deleted file mode 100644 index 1f41ea5994035..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_none.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "b0cf1bb0-c01f-4bc8-9356-52ad52e49a73", "source": "http://samplesource.dev", - "type": "Sample.Cloud.Event", "time": "2021-03-09T23:36:15.038105Z", "specversion": - "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '176' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:15 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_str.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_str.yaml deleted file mode 100644 index bf6fff9406936..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_str.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "c8950e2d-c3af-40e0-b1c1-ce75211c3238", "source": "http://samplesource.dev", - "data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:36:15.623974Z", - "specversion": "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '198' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:15 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_with_extensions.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_with_extensions.yaml deleted file mode 100644 index e73909b49a3ae..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_with_extensions.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"reasoncode": 204, "extension": "hello", "id": "264e57c5-feb9-4a1a-b681-fefcec1a8fc2", - "source": "http://samplesource.dev", "data": "cloudevent", "type": "Sample.Cloud.Event", - "time": "2021-03-09T23:36:15.973973Z", "specversion": "1.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '239' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:15 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_dict.yaml deleted file mode 100644 index 634ac4d4ee7ef..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_dict.yaml +++ /dev/null @@ -1,37 +0,0 @@ -interactions: -- request: - body: '[{"id": "1234", "source": "http://samplesource.dev", "specversion": "1.0", - "data": "cloudevent", "type": "Sample.Cloud.Event"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '127' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:15 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event.yaml deleted file mode 100644 index d39fff8101fe3..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion": - "2.0", "customId": "1234", "customEventTime": "2021-03-09T23:36:30.264615+00:00", - "customData": "sample data"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '196' - Content-Type: - - application/json - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:30 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event_as_list.yaml deleted file mode 100644 index 14ef78662cd06..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event_as_list.yaml +++ /dev/null @@ -1,40 +0,0 @@ -interactions: -- request: - body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion": - "2.0", "customId": "1234", "customEventTime": "2021-03-09T23:36:30.800753+00:00", - "customData": "sample data"}, {"customSubject": "sample2", "customEventType": - "sample.event", "customDataVersion": "2.0", "customId": "12345", "customEventTime": - "2021-03-09T23:36:30.800753+00:00", "customData": "sample data 2"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '396' - Content-Type: - - application/json - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:30 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_as_list.yaml deleted file mode 100644 index f6224cd4edf04..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_as_list.yaml +++ /dev/null @@ -1,40 +0,0 @@ -interactions: -- request: - body: '[{"id": "6afb5986-c134-4bd6-92a6-c2e6728d7526", "subject": "sample", "data": - "eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2021-03-09T23:36:31.238209Z", - "dataVersion": "2.0"}, {"id": "8b752ec6-9f19-40ea-ac55-3452ce1ae592", "subject": - "sample2", "data": "eventgridevent2", "eventType": "Sample.EventGrid.Event", - "eventTime": "2021-03-09T23:36:31.238209Z", "dataVersion": "2.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '402' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:31 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_dict.yaml deleted file mode 100644 index aef53977c9400..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_dict.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "c6c6ca30-f093-4620-bbb9-aad357fbae48", "subject": "sample", "data": - {"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime": - "2021-03-09T23:36:31.662708Z", "dataVersion": "2.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '212' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:31 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_str.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_str.yaml deleted file mode 100644 index 251875991b09b..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_str.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "a4019f70-62cf-4b9c-84c6-542a1f88b37f", "subject": "sample", "data": - "eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2021-03-09T23:36:32.059713Z", - "dataVersion": "2.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '200' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:31 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_dict_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_dict_data_dict.yaml deleted file mode 100644 index d4e255c797c81..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_dict_data_dict.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"subject": "sample", "data": {"key1": "Sample.EventGrid.Event"}, "eventType": - "Sample.EventGrid.Event", "dataVersion": "2.0", "id": "f53822f8-12a4-4c27-9077-fe66058c07af", - "eventTime": "2021-03-09 15:36:32.481019"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '217' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Tue, 09 Mar 2021 23:36:32 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_signature_credential.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_signature_credential.yaml deleted file mode 100644 index b4c5db7e0cdc4..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_signature_credential.yaml +++ /dev/null @@ -1,38 +0,0 @@ -interactions: -- request: - body: '[{"id": "cc5be5f0-2829-40e0-87a9-d61647c3a3a5", "subject": "sample", "data": - {"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime": - "2021-03-10T17:45:27.319301Z", "dataVersion": "2.0"}]' - headers: - Accept: - - '*/*' - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '212' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgrid/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: - - '2018-01-01' - content-length: - - '0' - date: - - Wed, 10 Mar 2021 17:45:26 GMT - server: - - Microsoft-HTTPAPI/2.0 - strict-transport-security: - - max-age=31536000; includeSubDomains - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_NONE_credential_async.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_NONE_credential_async.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_NONE_credential_async.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_and_close_async_session.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_and_close_async_session.json new file mode 100644 index 0000000000000..c0f0346f4376d --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_and_close_async_session.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "41ef1f4c-4679-11ec-ba06-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022f18633b6-5e92-4536-97d7-4ec3089841c0\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:05:15.280004Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:05:15 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "63b80915-4ec5-43a0-bc4c-ea822a2eae5a" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_as_list.json new file mode 100644 index 0000000000000..d50bf186f0c02 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_as_list.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "38f6b974-4679-11ec-a589-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022b62b72a0-f69c-4544-9fc0-0f19842b6d20\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:05:00.230325Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:59 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "5c39431a-7d27-41d6-90fe-13ccdacb5861" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_bytes.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_bytes.json new file mode 100644 index 0000000000000..8da5698b27c42 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_bytes.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "211", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "38c911e4-4679-11ec-887d-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022f67d6c33-a010-4bb8-b8af-1ffef1532894\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data_base64\u0022: \u0022Y2xvdWRldmVudA==\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:04:59.932128Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:59 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "fd471413-0c2d-4e41-99cf-d1d189aca8d2" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_dict.json new file mode 100644 index 0000000000000..3f438f7302b17 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_dict.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "210", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "382467cc-4679-11ec-931b-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00224846af36-7d4b-472b-ba20-6a72e0289b12\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022cloudevent\u0022}, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:04:58.851985Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:58 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "f1f35f6d-03c5-4347-8be1-d5a556435e9d" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_none.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_none.json new file mode 100644 index 0000000000000..211746c7fadd4 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_none.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "176", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "3982a9b8-4679-11ec-b73b-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00224ee49bba-1392-4a00-a644-59c7d5a6cc32\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:05:01.148433Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:05:00 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "d3a94bde-3a7c-4a68-b2e3-454085905ae9" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_str.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_str.json new file mode 100644 index 0000000000000..cda81dc46adcb --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_str.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "198", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "38925406-4679-11ec-8c7b-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00220defc4f4-f3e1-43b3-8811-4c3a9ae4bd6c\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:04:59.573374Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:59 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "1722c43c-a441-4ef5-a79d-0661bd86e6df" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_with_extensions.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_with_extensions.json new file mode 100644 index 0000000000000..e1f8e95505d18 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_data_with_extensions.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "239", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "3923b56e-4679-11ec-9902-2816a845e8c6" + }, + "RequestBody": "[{\u0022reasoncode\u0022: 204, \u0022extension\u0022: \u0022hello\u0022, \u0022id\u0022: \u0022b3f8484c-fce3-4426-a061-cf5bafda32ca\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022, \u0022time\u0022: \u00222021-11-16T01:05:00.525141Z\u0022, \u0022specversion\u0022: \u00221.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:59 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "0ddcf498-dea6-43cc-946a-05adc077abe7" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_dict.json new file mode 100644 index 0000000000000..b1706a92b6a61 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_cloud_event_dict.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://cloudeventgridtest7cdw2t.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "127", + "Content-Type": "application/cloudevents-batch\u002Bjson; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "395ad626-4679-11ec-b2e5-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00221234\u0022, \u0022source\u0022: \u0022http://samplesource.dev\u0022, \u0022specversion\u0022: \u00221.0\u0022, \u0022data\u0022: \u0022cloudevent\u0022, \u0022type\u0022: \u0022Sample.Cloud.Event\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:05:00 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "aa1928a0-bab5-4d97-8a02-f399c008b304" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_custom_schema_event.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_custom_schema_event.json new file mode 100644 index 0000000000000..cdb6ef581bcc9 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_custom_schema_event.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://customeventgridtestx5jqb.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "196", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "417773c2-4679-11ec-8fc1-2816a845e8c6" + }, + "RequestBody": "[{\u0022customSubject\u0022: \u0022sample\u0022, \u0022customEventType\u0022: \u0022sample.event\u0022, \u0022customDataVersion\u0022: \u00222.0\u0022, \u0022customId\u0022: \u00221234\u0022, \u0022customEventTime\u0022: \u00222021-11-16T01:05:14.495687\u002B00:00\u0022, \u0022customData\u0022: \u0022sample data\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:05:14 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "be1943c8-4218-4ee5-b1ad-86b606b11c36" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_custom_schema_event_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_custom_schema_event_as_list.json new file mode 100644 index 0000000000000..3f03429886eaf --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_custom_schema_event_as_list.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://customeventgridtestx5jqb.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "396", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "41c1d024-4679-11ec-9ad1-2816a845e8c6" + }, + "RequestBody": "[{\u0022customSubject\u0022: \u0022sample\u0022, \u0022customEventType\u0022: \u0022sample.event\u0022, \u0022customDataVersion\u0022: \u00222.0\u0022, \u0022customId\u0022: \u00221234\u0022, \u0022customEventTime\u0022: \u00222021-11-16T01:05:14.984097\u002B00:00\u0022, \u0022customData\u0022: \u0022sample data\u0022}, {\u0022customSubject\u0022: \u0022sample2\u0022, \u0022customEventType\u0022: \u0022sample.event\u0022, \u0022customDataVersion\u0022: \u00222.0\u0022, \u0022customId\u0022: \u002212345\u0022, \u0022customEventTime\u0022: \u00222021-11-16T01:05:14.984097\u002B00:00\u0022, \u0022customData\u0022: \u0022sample data 2\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:05:14 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "b9920870-20dc-4b1e-8187-6a146652cc57" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_as_list.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_as_list.json new file mode 100644 index 0000000000000..b5bdd0e76c999 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_as_list.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtest3wrayat2zrp.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "402", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "2fd77f26-4679-11ec-9d08-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00220656f260-aae5-4651-9ead-f1255cfc8b9e\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: \u0022eventgridevent\u0022, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T01:04:44.925181Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}, {\u0022id\u0022: \u002284c2d32f-f474-4af7-947c-ec8b9c864646\u0022, \u0022subject\u0022: \u0022sample2\u0022, \u0022data\u0022: \u0022eventgridevent2\u0022, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T01:04:44.925181Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:44 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "461d53d0-e6bf-470b-abad-db1148e5d4b6" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_bytes.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_bytes.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_bytes.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_dict.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_dict.json new file mode 100644 index 0000000000000..3cda1758eff70 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_dict.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtest3wrayat2zrp.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "212", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "2f17a9a8-4679-11ec-89cb-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u002269649cca-81fe-44b4-b39f-2ad6e607a712\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022eventgridevent\u0022}, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T01:04:43.658975Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:44 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "3dd3f1c1-71b8-41c5-a36e-0a089c6d780b" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_str.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_str.json new file mode 100644 index 0000000000000..e50fa07cb11a6 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_data_str.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtest3wrayat2zrp.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "200", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "30202d74-4679-11ec-8585-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u0022c62a7117-660b-4c16-b380-525287f7f61a\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: \u0022eventgridevent\u0022, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T01:04:45.403503Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:04:45 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "e5e03242-2ffe-4b45-ae50-3ad96542c022" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_bytes.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_bytes.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_dict_data_bytes.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_fails_without_full_url.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_fails_without_full_url.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_event_grid_event_fails_without_full_url.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_signature_credential.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_signature_credential.json new file mode 100644 index 0000000000000..89eb9325c5e52 --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_signature_credential.json @@ -0,0 +1,28 @@ +{ + "Entries": [ + { + "RequestUri": "https://eventgridtest3wrayat2zrp.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01", + "RequestMethod": "POST", + "RequestHeaders": { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Content-Length": "212", + "Content-Type": "application/json; charset=utf-8", + "User-Agent": "azsdk-python-eventgridpublisherclient/4.7.0 Python/3.7.3 (Windows-10-10.0.18362-SP0)", + "x-ms-client-request-id": "39a61d2e-4679-11ec-a4c2-2816a845e8c6" + }, + "RequestBody": "[{\u0022id\u0022: \u00221035f129-e468-416f-aa41-f88a80269862\u0022, \u0022subject\u0022: \u0022sample\u0022, \u0022data\u0022: {\u0022sample\u0022: \u0022eventgridevent\u0022}, \u0022eventType\u0022: \u0022Sample.EventGrid.Event\u0022, \u0022eventTime\u0022: \u00222021-11-16T01:05:01.379764Z\u0022, \u0022dataVersion\u0022: \u00222.0\u0022}]", + "StatusCode": 200, + "ResponseHeaders": { + "api-supported-versions": "2018-01-01", + "Content-Length": "0", + "Date": "Tue, 16 Nov 2021 01:05:01 GMT", + "Server": "Microsoft-HTTPAPI/2.0", + "Strict-Transport-Security": "max-age=31536000; includeSubDomains", + "x-ms-request-id": "233c59ea-65a3-4062-b9ac-cbb454ef706e" + }, + "ResponseBody": null + } + ], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_token_credential.json b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_token_credential.json new file mode 100644 index 0000000000000..f721723386d8a --- /dev/null +++ b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.pyTestEventGridPublisherClienttest_send_token_credential.json @@ -0,0 +1,4 @@ +{ + "Entries": [], + "Variables": {} +} diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_and_close_async_session.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_and_close_async_session.yaml deleted file mode 100644 index 4ea66ba31ab94..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_and_close_async_session.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "662ab79d-a155-4c36-b73a-2128a30e359c", "source": "http://samplesource.dev", - "data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:37:08.531001Z", - "specversion": "1.0"}]' - headers: - Content-Length: - - '198' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:08 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_as_list.yaml deleted file mode 100644 index b977cec6ca935..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_as_list.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "a09030c8-7c28-4118-bf44-4c0d05ecd9d6", "source": "http://samplesource.dev", - "data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:37:08.925482Z", - "specversion": "1.0"}]' - headers: - Content-Length: - - '198' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:08 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_bytes.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_bytes.yaml deleted file mode 100644 index 41240c98edf02..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_bytes.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "574e66bf-58f3-402c-883b-cff60825153d", "source": "http://samplesource.dev", - "data_base64": "Y2xvdWRldmVudA==", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:37:09.279372Z", - "specversion": "1.0"}]' - headers: - Content-Length: - - '211' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:09 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_dict.yaml deleted file mode 100644 index eda7d1210dd8f..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_dict.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "5d2286cd-d7a5-472f-a6b4-c8c061acce32", "source": "http://samplesource.dev", - "data": {"sample": "cloudevent"}, "type": "Sample.Cloud.Event", "time": "2021-03-09T23:37:09.581385Z", - "specversion": "1.0"}]' - headers: - Content-Length: - - '210' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:09 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_none.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_none.yaml deleted file mode 100644 index 4b3d6949337da..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_none.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "68e29039-ef5c-46a5-a77b-063b6736a445", "source": "http://samplesource.dev", - "type": "Sample.Cloud.Event", "time": "2021-03-09T23:37:09.987352Z", "specversion": - "1.0"}]' - headers: - Content-Length: - - '176' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:09 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_str.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_str.yaml deleted file mode 100644 index 1dac0a3edac2c..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_str.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "bf72d636-e0ce-4241-a94f-2d6047d9fe86", "source": "http://samplesource.dev", - "data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2021-03-09T23:37:10.278325Z", - "specversion": "1.0"}]' - headers: - Content-Length: - - '198' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:09 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_with_extensions.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_with_extensions.yaml deleted file mode 100644 index 439a2ea90be28..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_data_with_extensions.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"reasoncode": 204, "extension": "hello", "id": "7b760fe0-a828-4df8-b1bd-cc6cdcfc1f49", - "source": "http://samplesource.dev", "data": "cloudevent", "type": "Sample.Cloud.Event", - "time": "2021-03-09T23:37:10.543913Z", "specversion": "1.0"}]' - headers: - Content-Length: - - '239' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:10 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_dict.yaml deleted file mode 100644 index 007589d04eb81..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_cloud_event_dict.yaml +++ /dev/null @@ -1,27 +0,0 @@ -interactions: -- request: - body: '[{"id": "1234", "source": "http://samplesource.dev", "specversion": "1.0", - "data": "cloudevent", "type": "Sample.Cloud.Event"}]' - headers: - Content-Length: - - '127' - Content-Type: - - application/cloudevents-batch+json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:10 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://cloudeventgridtestcxhotk.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_custom_schema_event.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_custom_schema_event.yaml deleted file mode 100644 index d0f1ccb87f7c7..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_custom_schema_event.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion": - "2.0", "customId": "1234", "customEventTime": "2021-03-09T23:37:24.167980+00:00", - "customData": "sample data"}]' - headers: - Content-Length: - - '196' - Content-Type: - - application/json - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:24 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://customeventgridtestbz4pr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_custom_schema_event_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_custom_schema_event_as_list.yaml deleted file mode 100644 index 18582c0d63b3e..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_custom_schema_event_as_list.yaml +++ /dev/null @@ -1,30 +0,0 @@ -interactions: -- request: - body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion": - "2.0", "customId": "1234", "customEventTime": "2021-03-09T23:37:24.600983+00:00", - "customData": "sample data"}, {"customSubject": "sample2", "customEventType": - "sample.event", "customDataVersion": "2.0", "customId": "12345", "customEventTime": - "2021-03-09T23:37:24.600983+00:00", "customData": "sample data 2"}]' - headers: - Content-Length: - - '396' - Content-Type: - - application/json - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:23 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://customeventgridtestbz4pr.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_as_list.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_as_list.yaml deleted file mode 100644 index bff67118749f3..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_as_list.yaml +++ /dev/null @@ -1,30 +0,0 @@ -interactions: -- request: - body: '[{"id": "382fff4a-c3cb-4646-992c-3f0d5b369de6", "subject": "sample", "data": - "eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2021-03-09T23:37:37.658738Z", - "dataVersion": "2.0"}, {"id": "fd0af8df-871a-4138-aef7-2e13d27564f2", "subject": - "sample2", "data": "eventgridevent2", "eventType": "Sample.EventGrid.Event", - "eventTime": "2021-03-09T23:37:37.658738Z", "dataVersion": "2.0"}]' - headers: - Content-Length: - - '402' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:37 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://eventgridtestzs77j53quzy.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_dict.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_dict.yaml deleted file mode 100644 index 16a819e6eb9ad..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_dict.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "19b5b900-2f95-41c9-8b26-7f4997b0407b", "subject": "sample", "data": - {"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime": - "2021-03-09T23:37:38.133744Z", "dataVersion": "2.0"}]' - headers: - Content-Length: - - '212' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:37 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://eventgridtestzs77j53quzy.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_str.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_str.yaml deleted file mode 100644 index 062ea7e53744b..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_event_grid_event_data_str.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "c9f98dbc-9b68-40e2-9446-58c7b7a2d745", "subject": "sample", "data": - "eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2021-03-09T23:37:38.476044Z", - "dataVersion": "2.0"}]' - headers: - Content-Length: - - '200' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Tue, 09 Mar 2021 23:37:38 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://eventgridtestzs77j53quzy.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_signature_credential.yaml b/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_signature_credential.yaml deleted file mode 100644 index 0f6323935732a..0000000000000 --- a/sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client_async.test_send_signature_credential.yaml +++ /dev/null @@ -1,28 +0,0 @@ -interactions: -- request: - body: '[{"id": "ff9a22f0-95f4-4aab-85a5-6719e5396d5c", "subject": "sample", "data": - {"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime": - "2021-03-10T17:46:05.537294Z", "dataVersion": "2.0"}]' - headers: - Content-Length: - - '212' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - azsdk-python-eventgridpublisherclient/4.0.0 Python/3.7.3 (Windows-10-10.0.18362-SP0) - method: POST - uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 - response: - body: - string: '' - headers: - api-supported-versions: '2018-01-01' - content-length: '0' - date: Wed, 10 Mar 2021 17:46:04 GMT - server: Microsoft-HTTPAPI/2.0 - strict-transport-security: max-age=31536000; includeSubDomains - status: - code: 200 - message: OK - url: https://eventgridtesti6xu5cqpiro.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01 -version: 1 diff --git a/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events.py b/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events.py index b533e6fc12fcc..83bca40b7108f 100644 --- a/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events.py +++ b/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events.py @@ -1,6 +1,6 @@ import json -from devtools_testutils import AzureRecordedTestCase, recorded_by_proxy, CachedResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, recorded_by_proxy, CachedResourceGroupPreparer from azure.core.credentials import AzureKeyCredential, AzureSasCredential from azure.eventgrid import EventGridPublisherClient @@ -10,7 +10,7 @@ CachedEventGridTopicPreparer, ) -class TestEventGridPublisherClientCncf(AzureRecordedTestCase): +class TestEventGridPublisherClientCncf(AzureMgmtRecordedTestCase): @CachedResourceGroupPreparer(name_prefix='eventgridtest') @CachedEventGridTopicPreparer(name_prefix='cloudeventgridtest') diff --git a/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events_async.py b/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events_async.py index ce683e8b91066..b77545243121d 100644 --- a/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events_async.py +++ b/sdk/eventgrid/azure-eventgrid/tests/test_cncf_events_async.py @@ -1,7 +1,7 @@ import json import pytest -from devtools_testutils import AzureRecordedTestCase, CachedResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, CachedResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async from azure.core.credentials import AzureKeyCredential, AzureSasCredential @@ -12,7 +12,7 @@ CachedEventGridTopicPreparer, ) -class TestEventGridPublisherClientCncf(AzureRecordedTestCase): +class TestEventGridPublisherClientCncf(AzureMgmtRecordedTestCase): @CachedResourceGroupPreparer(name_prefix='eventgridtest') @CachedEventGridTopicPreparer(name_prefix='cloudeventgridtest') diff --git a/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client.py b/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client.py index c9ff238680a3f..27a705494ea89 100644 --- a/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client.py +++ b/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client.py @@ -19,7 +19,7 @@ except ImportError: from urlparse import urlparse -from devtools_testutils import AzureRecordedTestCase, recorded_by_proxy, CachedResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, recorded_by_proxy, CachedResourceGroupPreparer from azure.core.credentials import AzureKeyCredential, AzureSasCredential from azure.core.messaging import CloudEvent @@ -31,7 +31,7 @@ CachedEventGridTopicPreparer, ) -class TestEventGridPublisherClient(AzureRecordedTestCase): +class TestEventGridPublisherClient(AzureMgmtRecordedTestCase): @CachedResourceGroupPreparer(name_prefix='eventgridtest') @CachedEventGridTopicPreparer(name_prefix='eventgridtest') diff --git a/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client_async.py b/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client_async.py index 54e81e731de07..e4531c4151af9 100644 --- a/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client_async.py +++ b/sdk/eventgrid/azure-eventgrid/tests/test_eg_publisher_client_async.py @@ -15,10 +15,9 @@ from urllib.parse import urlparse import datetime as dt -from devtools_testutils import AzureRecordedTestCase, CachedResourceGroupPreparer +from devtools_testutils import AzureMgmtRecordedTestCase, CachedResourceGroupPreparer from devtools_testutils.aio import recorded_by_proxy_async -from azure_devtools.scenario_tests import ReplayableTest from azure.core.credentials import AzureKeyCredential, AzureSasCredential from azure.core.messaging import CloudEvent from azure.core.serialization import NULL @@ -31,7 +30,7 @@ ) -class TestEventGridPublisherClient(AzureRecordedTestCase): +class TestEventGridPublisherClient(AzureMgmtRecordedTestCase): @CachedResourceGroupPreparer(name_prefix='eventgridtest') @CachedEventGridTopicPreparer(name_prefix='eventgridtest') @@ -344,8 +343,6 @@ async def test_send_and_close_async_session(self, resource_group, eventgrid_topi @CachedResourceGroupPreparer(name_prefix='eventgridtest') @CachedEventGridTopicPreparer(name_prefix='cloudeventgridtest') - @recorded_by_proxy_async - @pytest.mark.asyncio def test_send_NONE_credential_async(self, resource_group, eventgrid_topic, eventgrid_topic_primary_key, eventgrid_topic_endpoint): with pytest.raises(ValueError, match="Parameter 'self._credential' must not be None."): client = EventGridPublisherClient(eventgrid_topic_endpoint, None)