-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add digital twins test for pagination of event routes (#15869)
- Loading branch information
1 parent
af97f53
commit 4546089
Showing
4 changed files
with
236 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
152 changes: 152 additions & 0 deletions
152
...-digitaltwins-core/src/test/resources/session-records/listEventRoutesPaginationWorks.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,152 @@ | ||
{ | ||
"networkCallRecords" : [ { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "fc4f1981-f140-4a5a-a9bf-0f6cdbcdd515" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "28", | ||
"StatusCode" : "200", | ||
"Body" : "{\"value\":[],\"nextLink\":null}", | ||
"Date" : "Thu, 01 Oct 2020 21:29:28 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes/860ec2a5-ade0-4d0c-9545-0bb533b91eb0?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "66026f8b-b1fc-4278-a452-82387d6b90a4", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes/0ca3d236-73fb-4de1-964a-361bc37d8682?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "76394e83-387e-4d09-84c8-41667a94681e", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes/245740f0-9508-4fb6-90a3-2dc1acadcc4f?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "4414bd90-7e81-414b-87d0-597cf8d16ddf", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes/2579f7f0-3716-47ba-aafe-bfbd69798bd1?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "6597899a-60f7-440e-a538-896f1dd7ddd6", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "PUT", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes/1a106057-b192-494c-a993-b888812ed3b7?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "5a36401c-6801-4297-9ea7-518f1cc89870", | ||
"Content-Type" : "application/json" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "0", | ||
"StatusCode" : "204", | ||
"Date" : "Thu, 01 Oct 2020 21:29:28 GMT" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/eventroutes?api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "0feeec4b-ef03-4363-9845-4beaeb9e4f19" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "640", | ||
"StatusCode" : "200", | ||
"Body" : "{\"value\":[{\"id\":\"860ec2a5-ade0-4d0c-9545-0bb533b91eb0\",\"endpointName\":\"someEventHubEndpoint\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"},{\"id\":\"0ca3d236-73fb-4de1-964a-361bc37d8682\",\"endpointName\":\"someEventHubEndpoint\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"}],\"nextLink\":\"/EventRoutes?continuationToken=%5B%7B%22token%22%3A%22%2BRID%3A~9cpWAPHTRta0uwEAAAAAAA%3D%3D%23RT%3A1%23TRC%3A2%23ISV%3A2%23IEO%3A65551%22,%22range%22%3A%7B%22min%22%3A%22%22,%22max%22%3A%22FF%22%7D%7D%5D&api-version=2020-05-31-preview\"}", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/EventRoutes?continuationToken=%5B%7B%22token%22%3A%22%2BRID%3A~9cpWAPHTRta0uwEAAAAAAA%3D%3D%23RT%3A1%23TRC%3A2%23ISV%3A2%23IEO%3A65551%22,%22range%22%3A%7B%22min%22%3A%22%22,%22max%22%3A%22FF%22%7D%7D%5D&api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "c6e67624-0be6-4ad9-8438-19f679194140" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "640", | ||
"StatusCode" : "200", | ||
"Body" : "{\"value\":[{\"id\":\"245740f0-9508-4fb6-90a3-2dc1acadcc4f\",\"endpointName\":\"someEventHubEndpoint\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"},{\"id\":\"2579f7f0-3716-47ba-aafe-bfbd69798bd1\",\"endpointName\":\"someEventHubEndpoint\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"}],\"nextLink\":\"/EventRoutes?continuationToken=%5B%7B%22token%22%3A%22%2BRID%3A~9cpWAPHTRta2uwEAAAAAAA%3D%3D%23RT%3A2%23TRC%3A4%23ISV%3A2%23IEO%3A65551%22,%22range%22%3A%7B%22min%22%3A%22%22,%22max%22%3A%22FF%22%7D%7D%5D&api-version=2020-05-31-preview\"}", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
}, { | ||
"Method" : "GET", | ||
"Uri" : "https://REDACTED.api.wus2.digitaltwins.azure.net/EventRoutes?continuationToken=%5B%7B%22token%22%3A%22%2BRID%3A~9cpWAPHTRta2uwEAAAAAAA%3D%3D%23RT%3A2%23TRC%3A4%23ISV%3A2%23IEO%3A65551%22,%22range%22%3A%7B%22min%22%3A%22%22,%22max%22%3A%22FF%22%7D%7D%5D&api-version=2020-05-31-preview", | ||
"Headers" : { | ||
"User-Agent" : "azsdk-java-azure-digitaltwins-core/1.0.0-beta.3 (11.0.8; Windows 10; 10.0)", | ||
"x-ms-client-request-id" : "e7e55d2e-2d85-41c3-9147-4f4676f7c5db" | ||
}, | ||
"Response" : { | ||
"Strict-Transport-Security" : "max-age=2592000", | ||
"retry-after" : "0", | ||
"Content-Length" : "217", | ||
"StatusCode" : "200", | ||
"Body" : "{\"value\":[{\"id\":\"1a106057-b192-494c-a993-b888812ed3b7\",\"endpointName\":\"someEventHubEndpoint\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"}],\"nextLink\":null}", | ||
"Date" : "Thu, 01 Oct 2020 21:29:29 GMT", | ||
"Content-Type" : "application/json; charset=utf-8" | ||
}, | ||
"Exception" : null | ||
} ], | ||
"variables" : [ "860ec2a5-ade0-4d0c-9545-0bb533b91eb0", "0ca3d236-73fb-4de1-964a-361bc37d8682", "245740f0-9508-4fb6-90a3-2dc1acadcc4f", "2579f7f0-3716-47ba-aafe-bfbd69798bd1", "1a106057-b192-494c-a993-b888812ed3b7" ] | ||
} |