Skip to content

Commit

Permalink
tests fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rakshith91 committed Aug 20, 2020
1 parent 977e140 commit 5fe6516
Show file tree
Hide file tree
Showing 11 changed files with 108 additions and 80 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '[{"id": "fe01f535-bfe8-4bfb-9732-5530cac95677", "source": "http://samplesource.dev",
"data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2020-08-19T02:54:26.937747Z",
body: '[{"id": "3dc4b913-4bc2-41f8-be9b-bf1f67069806", "source": "http://samplesource.dev",
"data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2020-08-19T03:36:41.947462Z",
"specversion": "1.0"}]'
headers:
Accept:
Expand All @@ -17,31 +17,24 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
method: POST
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
body:
string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\":
\"Unexpected property 'source' found in JSON. Report '2ce71012-6cad-4ba0-8fdb-b910b7f03670:1:8/19/2020
2:54:28 AM (UTC)' to our forums for assistance or raise a support ticket.\",\r\n
\ \"details\": [{\r\n \"code\": \"InputJsonInvalid\",\r\n
\ \"message\": \"Unexpected property 'source' found in JSON. Report
'2ce71012-6cad-4ba0-8fdb-b910b7f03670:1:8/19/2020 2:54:28 AM (UTC)' to our
forums for assistance or raise a support ticket.\"\r\n }]\r\n }\r\n}"
string: ''
headers:
api-supported-versions:
- '2018-01-01'
content-length:
- '527'
content-type:
- application/json; charset=utf-8
- '0'
date:
- Wed, 19 Aug 2020 02:54:27 GMT
- Wed, 19 Aug 2020 03:36:43 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
status:
code: 400
message: Unexpected property 'source' found in JSON. Report '2ce71012-6cad-4ba0-8fdb-b910b7f03670:1:8/19/2020
2:54:28 AM (UTC)' to our forums for assistance or raise a support ticket.
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '[{"id": "b97b41af-2e19-4889-87a1-e289766ecf89", "source": "http://samplesource.dev",
"data": {"sample": "cloudevent"}, "type": "Sample.Cloud.Event", "time": "2020-08-19T02:54:40.927831Z",
body: '[{"id": "51c18497-2a25-45f1-b9ba-fdaf08c00263", "source": "http://samplesource.dev",
"data": {"sample": "cloudevent"}, "type": "Sample.Cloud.Event", "time": "2020-08-19T03:36:42.304479Z",
"specversion": "1.0"}]'
headers:
Accept:
Expand All @@ -17,7 +17,7 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- 1H1Q60s9Apm1iLiSOyunHE0EF2NeA1muzLR2Q6VOSps=
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
method: POST
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -29,7 +29,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:41 GMT
- Wed, 19 Aug 2020 03:36:43 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
interactions:
- request:
body: '[{"id": "6a315e93-a59c-4eca-b2f2-6bf3b8f27984", "source": "http://samplesource.dev",
"data": "cloudevent", "type": "Sample.Cloud.Event", "time": "2020-08-19T03:36:42.629467Z",
"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-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
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:
- Wed, 19 Aug 2020 03:36:43 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
status:
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
Expand Up @@ -16,31 +16,24 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
- dHUaOOg5xRj+D7iH/AC92GyHweLx9ugrDuMDg4e5Xvw=
method: POST
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
uri: https://cloudeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
body:
string: "{\r\n \"error\": {\r\n \"code\": \"BadRequest\",\r\n \"message\":
\"Unexpected property 'source' found in JSON. Report '5a0ead52-e8aa-4b1e-b34e-6c70f25010d7:3:8/19/2020
2:54:42 AM (UTC)' to our forums for assistance or raise a support ticket.\",\r\n
\ \"details\": [{\r\n \"code\": \"InputJsonInvalid\",\r\n
\ \"message\": \"Unexpected property 'source' found in JSON. Report
'5a0ead52-e8aa-4b1e-b34e-6c70f25010d7:3:8/19/2020 2:54:42 AM (UTC)' to our
forums for assistance or raise a support ticket.\"\r\n }]\r\n }\r\n}"
string: ''
headers:
api-supported-versions:
- '2018-01-01'
content-length:
- '527'
content-type:
- application/json; charset=utf-8
- '0'
date:
- Wed, 19 Aug 2020 02:54:42 GMT
- Wed, 19 Aug 2020 03:36:44 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
- max-age=31536000; includeSubDomains
status:
code: 400
message: Unexpected property 'source' found in JSON. Report '5a0ead52-e8aa-4b1e-b34e-6c70f25010d7:3:8/19/2020
2:54:42 AM (UTC)' to our forums for assistance or raise a support ticket.
code: 200
message: OK
version: 1
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion":
"2.0", "customId": "1234", "customEventTime": "2020-08-19T02:54:55.283370+00:00",
"2.0", "customId": "1234", "customEventTime": "2020-08-19T03:36:56.936961+00:00",
"customData": "sample data"}]'
headers:
Accept:
Expand All @@ -17,7 +17,7 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- bnShWuasxyRJT++S3CR8dxx+MBjyJ06zq9X/JxxNNKM=
- uPQPJHQHsAhBxWOWtRXslz3sXf7TJ5lcqLZ6SC4QzJ4=
method: POST
uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -29,7 +29,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:56 GMT
- Wed, 19 Aug 2020 03:36:57 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
interactions:
- request:
body: '[{"customSubject": "sample", "customEventType": "sample.event", "customDataVersion":
"2.0", "customId": "1234", "customEventTime": "2020-08-19T02:54:55.786334+00:00",
"2.0", "customId": "1234", "customEventTime": "2020-08-19T03:36:57.422734+00:00",
"customData": "sample data"}, {"customSubject": "sample2", "customEventType":
"sample.event", "customDataVersion": "2.0", "customId": "12345", "customEventTime":
"2020-08-19T02:54:55.787335+00:00", "customData": "sample data 2"}]'
"2020-08-19T03:36:57.422734+00:00", "customData": "sample data 2"}]'
headers:
Accept:
- '*/*'
Expand All @@ -19,7 +19,7 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- bnShWuasxyRJT++S3CR8dxx+MBjyJ06zq9X/JxxNNKM=
- uPQPJHQHsAhBxWOWtRXslz3sXf7TJ5lcqLZ6SC4QzJ4=
method: POST
uri: https://customeventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -28,10 +28,12 @@ interactions:
headers:
api-supported-versions:
- '2018-01-01'
connection:
- close
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:57 GMT
- Wed, 19 Aug 2020 03:36:58 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
interactions:
- request:
body: '[{"id": "f7813081-9a94-48b1-b92a-a812fa10512b", "subject": "sample", "data":
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T02:54:56.159379Z",
"dataVersion": "2.0"}, {"id": "d73c89b5-639d-4900-aef9-d91df428a2c4", "subject":
body: '[{"id": "576f3e27-5433-47b3-8b4e-e31ea6a1bdde", "subject": "sample", "data":
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T03:37:11.07064Z",
"dataVersion": "2.0"}, {"id": "6c359c8d-b1fe-4458-96c5-eaffcd864573", "subject":
"sample2", "data": "eventgridevent2", "eventType": "Sample.EventGrid.Event",
"eventTime": "2020-08-19T02:54:56.159379Z", "dataVersion": "2.0"}]'
"eventTime": "2020-08-19T03:37:11.071641Z", "dataVersion": "2.0"}]'
headers:
Accept:
- '*/*'
Expand All @@ -13,13 +13,13 @@ interactions:
Connection:
- keep-alive
Content-Length:
- '402'
- '401'
Content-Type:
- application/json; charset=utf-8
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
- dS38eoc9IPjofR5npZ1QXrsb3Gz/Kdt99ZdK9SJ+99w=
method: POST
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -31,7 +31,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:56 GMT
- Wed, 19 Aug 2020 03:37:12 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
interactions:
- request:
body: '[{"id": "de0ca0b5-a8ab-48e4-8c50-d96545c5af76", "subject": "sample", "data":
body: '[{"id": "fbf293f1-d609-4fd8-8d3b-b0ed0e406795", "subject": "sample", "data":
{"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime":
"2020-08-19T02:54:56.478324Z", "dataVersion": "2.0"}]'
"2020-08-19T03:37:11.563581Z", "dataVersion": "2.0"}]'
headers:
Accept:
- '*/*'
Expand All @@ -17,7 +17,7 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
- dS38eoc9IPjofR5npZ1QXrsb3Gz/Kdt99ZdK9SJ+99w=
method: POST
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -29,7 +29,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:57 GMT
- Wed, 19 Aug 2020 03:37:12 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: '[{"id": "9d3e0cd3-57a8-448c-85a5-4eedef1a2d8e", "subject": "sample", "data":
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T02:54:56.786336Z",
body: '[{"id": "10994707-90e7-431e-88f0-2abae07cc806", "subject": "sample", "data":
"eventgridevent", "eventType": "Sample.EventGrid.Event", "eventTime": "2020-08-19T03:37:11.893631Z",
"dataVersion": "2.0"}]'
headers:
Accept:
Expand All @@ -17,7 +17,7 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-key:
- CNX1dEvFh9P+c93UazUJ0+FSB4v104amtip6jD/KQsY=
- dS38eoc9IPjofR5npZ1QXrsb3Gz/Kdt99ZdK9SJ+99w=
method: POST
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -29,7 +29,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:57 GMT
- Wed, 19 Aug 2020 03:37:12 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
interactions:
- request:
body: '[{"id": "b2997db2-24a8-42bc-b254-a3bb83217e3a", "subject": "sample", "data":
body: '[{"id": "18fe69c3-59bf-4e53-97e1-2e5310e4884f", "subject": "sample", "data":
{"sample": "eventgridevent"}, "eventType": "Sample.EventGrid.Event", "eventTime":
"2020-08-19T02:54:57.067382Z", "dataVersion": "2.0"}]'
"2020-08-19T03:37:12.238633Z", "dataVersion": "2.0"}]'
headers:
Accept:
- '*/*'
Expand All @@ -17,7 +17,7 @@ interactions:
User-Agent:
- azsdk-python-eventgridpublisherclient/unknown Python/3.7.3 (Windows-10-10.0.18362-SP0)
aeg-sas-token:
- 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
- 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
method: POST
uri: https://eventgridtestegtopic.westus-1.eventgrid.azure.net/api/events?api-version=2018-01-01
response:
Expand All @@ -29,7 +29,7 @@ interactions:
content-length:
- '0'
date:
- Wed, 19 Aug 2020 02:54:57 GMT
- Wed, 19 Aug 2020 03:37:12 GMT
server:
- Microsoft-HTTPAPI/2.0
strict-transport-security:
Expand Down
Loading

0 comments on commit 5fe6516

Please sign in to comment.