Skip to content

Commit 5fe6516

Browse files
committed
tests fix
1 parent 977e140 commit 5fe6516

11 files changed

+108
-80
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '[{"id": "fe01f535-bfe8-4bfb-9732-5530cac95677", "source": "http://samplesource.dev",
4-
"data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2020-08-19T02:54:26.937747Z",
3+
body: '[{"id": "3dc4b913-4bc2-41f8-be9b-bf1f67069806", "source": "http://samplesource.dev",
4+
"data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2020-08-19T03:36:41.947462Z",
55
"specversion": "1.0"}]'
66
headers:
77
Accept:
@@ -17,31 +17,24 @@ interactions:
1717
User-Agent:
1818
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1919
aeg-sas-key:
20-
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
20+
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
2121
method: POST
22-
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
22+
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2323
response:
2424
body:
25-
string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\":
26-
\"Unexpected property 'source' found in JSON. Report '2ce71012-6cad-4ba0-8fdb-b910b7f03670:1:8/19/2020
27-
2:54:28 AM (UTC)' to our forums for assistance or raise a support ticket.\",\r\n
28-
\ \"details\": [{\r\n \"code\": \"InputJsonInvalid\",\r\n
29-
\ \"message\": \"Unexpected property 'source' found in JSON. Report
30-
'2ce71012-6cad-4ba0-8fdb-b910b7f03670:1:8/19/2020 2:54:28 AM (UTC)' to our
31-
forums for assistance or raise a support ticket.\"\r\n }]\r\n }\r\n}"
25+
string: ''
3226
headers:
27+
api-supported-versions:
28+
- '2018-01-01'
3329
content-length:
34-
- '527'
35-
content-type:
36-
- application/json; charset=utf-8
30+
- '0'
3731
date:
38-
- Wed, 19 Aug 2020 02:54:27 GMT
32+
- Wed, 19 Aug 2020 03:36:43 GMT
3933
server:
4034
- Microsoft-HTTPAPI/2.0
4135
strict-transport-security:
4236
- max-age=31536000; includeSubDomains
4337
status:
44-
code: 400
45-
message: Unexpected property 'source' found in JSON. Report '2ce71012-6cad-4ba0-8fdb-b910b7f03670:1:8/19/2020
46-
2:54:28 AM (UTC)' to our forums for assistance or raise a support ticket.
38+
code: 200
39+
message: OK
4740
version: 1

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_data_dict.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '[{"id": "b97b41af-2e19-4889-87a1-e289766ecf89", "source": "http://samplesource.dev",
4-
"data": {"sample": "cloudevent"}, "type": "Sample.Cloud.Event", "time": "2020-08-19T02:54:40.927831Z",
3+
body: '[{"id": "51c18497-2a25-45f1-b9ba-fdaf08c00263", "source": "http://samplesource.dev",
4+
"data": {"sample": "cloudevent"}, "type": "Sample.Cloud.Event", "time": "2020-08-19T03:36:42.304479Z",
55
"specversion": "1.0"}]'
66
headers:
77
Accept:
@@ -17,7 +17,7 @@ interactions:
1717
User-Agent:
1818
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1919
aeg-sas-key:
20-
- 1H1Q60s9Apm1iLiSOyunHE0EF2NeA1muzLR2Q6VOSps=
20+
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
2121
method: POST
2222
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2323
response:
@@ -29,7 +29,7 @@ interactions:
2929
content-length:
3030
- '0'
3131
date:
32-
- Wed, 19 Aug 2020 02:54:41 GMT
32+
- Wed, 19 Aug 2020 03:36:43 GMT
3333
server:
3434
- Microsoft-HTTPAPI/2.0
3535
strict-transport-security:
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
interactions:
2+
- request:
3+
body: '[{"id": "6a315e93-a59c-4eca-b2f2-6bf3b8f27984", "source": "http://samplesource.dev",
4+
"data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2020-08-19T03:36:42.629467Z",
5+
"specversion": "1.0"}]'
6+
headers:
7+
Accept:
8+
- '*/*'
9+
Accept-Encoding:
10+
- gzip, deflate
11+
Connection:
12+
- keep-alive
13+
Content-Length:
14+
- '198'
15+
Content-Type:
16+
- application/cloudevents-batch+json; charset=utf-8
17+
User-Agent:
18+
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
19+
aeg-sas-key:
20+
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
21+
method: POST
22+
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
23+
response:
24+
body:
25+
string: ''
26+
headers:
27+
api-supported-versions:
28+
- '2018-01-01'
29+
content-length:
30+
- '0'
31+
date:
32+
- Wed, 19 Aug 2020 03:36:43 GMT
33+
server:
34+
- Microsoft-HTTPAPI/2.0
35+
strict-transport-security:
36+
- max-age=31536000; includeSubDomains
37+
status:
38+
code: 200
39+
message: OK
40+
version: 1

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_cloud_event_dict.yaml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,31 +16,24 @@ interactions:
1616
User-Agent:
1717
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1818
aeg-sas-key:
19-
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
19+
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
2020
method: POST
21-
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
21+
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2222
response:
2323
body:
24-
string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\":
25-
\"Unexpected property 'source' found in JSON. Report '5a0ead52-e8aa-4b1e-b34e-6c70f25010d7:3:8/19/2020
26-
2:54:42 AM (UTC)' to our forums for assistance or raise a support ticket.\",\r\n
27-
\ \"details\": [{\r\n \"code\": \"InputJsonInvalid\",\r\n
28-
\ \"message\": \"Unexpected property 'source' found in JSON. Report
29-
'5a0ead52-e8aa-4b1e-b34e-6c70f25010d7:3:8/19/2020 2:54:42 AM (UTC)' to our
30-
forums for assistance or raise a support ticket.\"\r\n }]\r\n }\r\n}"
24+
string: ''
3125
headers:
26+
api-supported-versions:
27+
- '2018-01-01'
3228
content-length:
33-
- '527'
34-
content-type:
35-
- application/json; charset=utf-8
29+
- '0'
3630
date:
37-
- Wed, 19 Aug 2020 02:54:42 GMT
31+
- Wed, 19 Aug 2020 03:36:44 GMT
3832
server:
3933
- Microsoft-HTTPAPI/2.0
4034
strict-transport-security:
4135
- max-age=31536000; includeSubDomains
4236
status:
43-
code: 400
44-
message: Unexpected property 'source' found in JSON. Report '5a0ead52-e8aa-4b1e-b34e-6c70f25010d7:3:8/19/2020
45-
2:54:42 AM (UTC)' to our forums for assistance or raise a support ticket.
37+
code: 200
38+
message: OK
4639
version: 1

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion":
4-
"2.0", "customId": "1234", "customEventTime": "2020-08-19T02:54:55.283370+00:00",
4+
"2.0", "customId": "1234", "customEventTime": "2020-08-19T03:36:56.936961+00:00",
55
"customData": "sample data"}]'
66
headers:
77
Accept:
@@ -17,7 +17,7 @@ interactions:
1717
User-Agent:
1818
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1919
aeg-sas-key:
20-
- bnShWuasxyRJT++S3CR8dxx+MBjyJ06zq9X/JxxNNKM=
20+
- uPQPJHQHsAhBxWOWtRXslz3sXf7TJ5lcqLZ6SC4QzJ4=
2121
method: POST
2222
uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2323
response:
@@ -29,7 +29,7 @@ interactions:
2929
content-length:
3030
- '0'
3131
date:
32-
- Wed, 19 Aug 2020 02:54:56 GMT
32+
- Wed, 19 Aug 2020 03:36:57 GMT
3333
server:
3434
- Microsoft-HTTPAPI/2.0
3535
strict-transport-security:

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_custom_schema_event_as_list.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
interactions:
22
- request:
33
body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion":
4-
"2.0", "customId": "1234", "customEventTime": "2020-08-19T02:54:55.786334+00:00",
4+
"2.0", "customId": "1234", "customEventTime": "2020-08-19T03:36:57.422734+00:00",
55
"customData": "sample data"}, {"customSubject": "sample2", "customEventType":
66
"sample.event", "customDataVersion": "2.0", "customId": "12345", "customEventTime":
7-
"2020-08-19T02:54:55.787335+00:00", "customData": "sample data 2"}]'
7+
"2020-08-19T03:36:57.422734+00:00", "customData": "sample data 2"}]'
88
headers:
99
Accept:
1010
- '*/*'
@@ -19,7 +19,7 @@ interactions:
1919
User-Agent:
2020
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
2121
aeg-sas-key:
22-
- bnShWuasxyRJT++S3CR8dxx+MBjyJ06zq9X/JxxNNKM=
22+
- uPQPJHQHsAhBxWOWtRXslz3sXf7TJ5lcqLZ6SC4QzJ4=
2323
method: POST
2424
uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2525
response:
@@ -28,10 +28,12 @@ interactions:
2828
headers:
2929
api-supported-versions:
3030
- '2018-01-01'
31+
connection:
32+
- close
3133
content-length:
3234
- '0'
3335
date:
34-
- Wed, 19 Aug 2020 02:54:57 GMT
36+
- Wed, 19 Aug 2020 03:36:58 GMT
3537
server:
3638
- Microsoft-HTTPAPI/2.0
3739
strict-transport-security:

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_as_list.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
interactions:
22
- request:
3-
body: '[{"id": "f7813081-9a94-48b1-b92a-a812fa10512b", "subject": "sample", "data":
4-
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T02:54:56.159379Z",
5-
"dataVersion": "2.0"}, {"id": "d73c89b5-639d-4900-aef9-d91df428a2c4", "subject":
3+
body: '[{"id": "576f3e27-5433-47b3-8b4e-e31ea6a1bdde", "subject": "sample", "data":
4+
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T03:37:11.07064Z",
5+
"dataVersion": "2.0"}, {"id": "6c359c8d-b1fe-4458-96c5-eaffcd864573", "subject":
66
"sample2", "data": "eventgridevent2", "eventType": "Sample.EventGrid.Event",
7-
"eventTime": "2020-08-19T02:54:56.159379Z", "dataVersion": "2.0"}]'
7+
"eventTime": "2020-08-19T03:37:11.071641Z", "dataVersion": "2.0"}]'
88
headers:
99
Accept:
1010
- '*/*'
@@ -13,13 +13,13 @@ interactions:
1313
Connection:
1414
- keep-alive
1515
Content-Length:
16-
- '402'
16+
- '401'
1717
Content-Type:
1818
- application/json; charset=utf-8
1919
User-Agent:
2020
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
2121
aeg-sas-key:
22-
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
22+
- dS38eoc9IPjofR5npZ1QXrsb3Gz/Kdt99ZdK9SJ+99w=
2323
method: POST
2424
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2525
response:
@@ -31,7 +31,7 @@ interactions:
3131
content-length:
3232
- '0'
3333
date:
34-
- Wed, 19 Aug 2020 02:54:56 GMT
34+
- Wed, 19 Aug 2020 03:37:12 GMT
3535
server:
3636
- Microsoft-HTTPAPI/2.0
3737
strict-transport-security:

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_dict.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
interactions:
22
- request:
3-
body: '[{"id": "de0ca0b5-a8ab-48e4-8c50-d96545c5af76", "subject": "sample", "data":
3+
body: '[{"id": "fbf293f1-d609-4fd8-8d3b-b0ed0e406795", "subject": "sample", "data":
44
{"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime":
5-
"2020-08-19T02:54:56.478324Z", "dataVersion": "2.0"}]'
5+
"2020-08-19T03:37:11.563581Z", "dataVersion": "2.0"}]'
66
headers:
77
Accept:
88
- '*/*'
@@ -17,7 +17,7 @@ interactions:
1717
User-Agent:
1818
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1919
aeg-sas-key:
20-
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
20+
- dS38eoc9IPjofR5npZ1QXrsb3Gz/Kdt99ZdK9SJ+99w=
2121
method: POST
2222
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2323
response:
@@ -29,7 +29,7 @@ interactions:
2929
content-length:
3030
- '0'
3131
date:
32-
- Wed, 19 Aug 2020 02:54:57 GMT
32+
- Wed, 19 Aug 2020 03:37:12 GMT
3333
server:
3434
- Microsoft-HTTPAPI/2.0
3535
strict-transport-security:

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_event_grid_event_data_str.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
3-
body: '[{"id": "9d3e0cd3-57a8-448c-85a5-4eedef1a2d8e", "subject": "sample", "data":
4-
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T02:54:56.786336Z",
3+
body: '[{"id": "10994707-90e7-431e-88f0-2abae07cc806", "subject": "sample", "data":
4+
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T03:37:11.893631Z",
55
"dataVersion": "2.0"}]'
66
headers:
77
Accept:
@@ -17,7 +17,7 @@ interactions:
1717
User-Agent:
1818
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1919
aeg-sas-key:
20-
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
20+
- dS38eoc9IPjofR5npZ1QXrsb3Gz/Kdt99ZdK9SJ+99w=
2121
method: POST
2222
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2323
response:
@@ -29,7 +29,7 @@ interactions:
2929
content-length:
3030
- '0'
3131
date:
32-
- Wed, 19 Aug 2020 02:54:57 GMT
32+
- Wed, 19 Aug 2020 03:37:12 GMT
3333
server:
3434
- Microsoft-HTTPAPI/2.0
3535
strict-transport-security:

sdk/eventgrid/azure-eventgrid/tests/recordings/test_eg_publisher_client.test_send_signature_credential.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
interactions:
22
- request:
3-
body: '[{"id": "b2997db2-24a8-42bc-b254-a3bb83217e3a", "subject": "sample", "data":
3+
body: '[{"id": "18fe69c3-59bf-4e53-97e1-2e5310e4884f", "subject": "sample", "data":
44
{"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime":
5-
"2020-08-19T02:54:57.067382Z", "dataVersion": "2.0"}]'
5+
"2020-08-19T03:37:12.238633Z", "dataVersion": "2.0"}]'
66
headers:
77
Accept:
88
- '*/*'
@@ -17,7 +17,7 @@ interactions:
1717
User-Agent:
1818
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
1919
aeg-sas-token:
20-
- r=https%3A%2F%2Feventgridtestj5ziptothnf.westus-1.eventgrid.azure.net%2Fapi%2Fevents%3FapiVersion%3D2018-01-01&e=2020-08-19%2003%3A54%3A57.065388%2B00%3A00&s=bDccCYZSzjz0%2BQ6nwsQ1ZDJdO%2BIJrbwqQRTG%2BGPaTrw%3D
20+
- r=https%3A%2F%2Feventgridtestpm22oyo2kyl.westus-1.eventgrid.azure.net%2Fapi%2Fevents%3FapiVersion%3D2018-01-01&e=2020-08-19%2004%3A37%3A12.237630%2B00%3A00&s=NiA404pCphKDcLVP9%2FjN%2FY0%2BnejDRolHVkrEnfrXk6c%3D
2121
method: POST
2222
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
2323
response:
@@ -29,7 +29,7 @@ interactions:
2929
content-length:
3030
- '0'
3131
date:
32-
- Wed, 19 Aug 2020 02:54:57 GMT
32+
- Wed, 19 Aug 2020 03:37:12 GMT
3333
server:
3434
- Microsoft-HTTPAPI/2.0
3535
strict-transport-security:

0 commit comments

Comments
 (0)