diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md b/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md index 64bd2e805939..2595f2eb1d3a 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/CHANGELOG.md @@ -19,3 +19,4 @@ - N/A ## 1.0.0-preview.2 + diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinTests.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinTests.cs index aa86e67f0acb..fe6ee18885a6 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinTests.cs +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/DigitalTwinTests.cs @@ -49,7 +49,12 @@ public async Task DigitalTwins_Lifecycle() // update twin string updateTwin = TestAssetsHelper.GetRoomTwinUpdatePayload(); - await client.UpdateDigitalTwinAsync(roomTwinId, updateTwin).ConfigureAwait(false); + var requestOptions = new RequestOptions + { + IfMatch = "*" + }; + + await client.UpdateDigitalTwinAsync(roomTwinId, updateTwin, requestOptions).ConfigureAwait(false); // delete a twin await client.DeleteDigitalTwinAsync(roomTwinId).ConfigureAwait(false); diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedException.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedException.json index dd9bd986474c..8403848a49c2 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedException.json +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedException.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "e4372e3f473b4caa28d4cf53148eff97", "x-ms-return-client-request-id": "true" @@ -17,13 +17,13 @@ "ResponseHeaders": { "Content-Length": "48", "Content-Type": "application/json", - "Date": "Tue, 02 Jun 2020 19:05:02 GMT" + "Date": "Mon, 08 Jun 2020 17:35:31 GMT" }, "ResponseBody": "{ \u0022statusCode\u0022: 401, \u0022message\u0022: \u0022Unauthorized\u0022 }" } ], "Variables": { - "DIGITALTWINS_URL": "https://vinageshnew.api.wus2.digitaltwins.azure.net", + "DIGITALTWINS_URL": "https://azabbasitwin.api.wus2.digitaltwins.azure.net", "RandomSeed": "1966632250" } } \ No newline at end of file diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedExceptionAsync.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedExceptionAsync.json index 1246b061001e..c73bd962282a 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedExceptionAsync.json +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_IncorrectCredentials_ThrowsUnauthorizedExceptionAsync.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "a7b06336ce18468364aa2a2b9c7de619", "x-ms-return-client-request-id": "true" @@ -17,13 +17,13 @@ "ResponseHeaders": { "Content-Length": "48", "Content-Type": "application/json", - "Date": "Tue, 02 Jun 2020 19:05:02 GMT" + "Date": "Mon, 08 Jun 2020 17:35:31 GMT" }, "ResponseBody": "{ \u0022statusCode\u0022: 401, \u0022message\u0022: \u0022Unauthorized\u0022 }" } ], "Variables": { - "DIGITALTWINS_URL": "https://vinageshnew.api.wus2.digitaltwins.azure.net", + "DIGITALTWINS_URL": "https://azabbasitwin.api.wus2.digitaltwins.azure.net", "RandomSeed": "1650273333" } } \ No newline at end of file diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_Lifecycle.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_Lifecycle.json index 2e84f24b6dab..225afaf4ff08 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_Lifecycle.json +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_Lifecycle.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "cc833d55fdc242f202819c53e328694a", "x-ms-return-client-request-id": "true" @@ -17,7 +17,7 @@ "ResponseHeaders": { "Content-Length": "271", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:03 GMT", + "Date": "Mon, 08 Jun 2020 17:35:31 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -28,13 +28,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Afloor%3B11991704?includeModelDefinition=true\u0026api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Afloor%3B11991704?includeModelDefinition=true\u0026api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "77d2c6eff1fe123f19b9f5b3df8788da", "x-ms-return-client-request-id": "true" @@ -44,7 +44,7 @@ "ResponseHeaders": { "Content-Length": "212", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:03 GMT", + "Date": "Mon, 08 Jun 2020 17:35:31 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -55,13 +55,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115359225?includeModelDefinition=true\u0026api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115359225?includeModelDefinition=true\u0026api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "6f6dcaaf8a593513285ccb4d45da3cd5", "x-ms-return-client-request-id": "true" @@ -71,7 +71,7 @@ "ResponseHeaders": { "Content-Length": "212", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -82,15 +82,15 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models?api-version=2020-05-31-preview", "RequestMethod": "POST", "RequestHeaders": { "Authorization": "Sanitized", "Content-Length": "804", "Content-Type": "application/json; charset=utf-8", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "19d1e09c56c9444bbaa943fd8f22fa14", "x-ms-return-client-request-id": "true" @@ -100,21 +100,21 @@ "ResponseHeaders": { "Content-Length": "193", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, - "ResponseBody": "[{\u0022id\u0022:\u0022dtmi:example:room;115359225\u0022,\u0022description\u0022:{\u0022en\u0022:\u0022An enclosure inside a building.\u0022},\u0022displayName\u0022:{\u0022en\u0022:\u0022Room\u0022},\u0022decommissioned\u0022:false,\u0022uploadTime\u0022:\u00222020-06-02T19:05:05.1963235\u002B00:00\u0022}]" + "ResponseBody": "[{\u0022id\u0022:\u0022dtmi:example:room;115359225\u0022,\u0022description\u0022:{\u0022en\u0022:\u0022An enclosure inside a building.\u0022},\u0022displayName\u0022:{\u0022en\u0022:\u0022Room\u0022},\u0022decommissioned\u0022:false,\u0022uploadTime\u0022:\u00222020-06-08T17:35:32.9357342\u002B00:00\u0022}]" }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", "RequestMethod": "PUT", "RequestHeaders": { "Authorization": "Sanitized", "Content-Length": "150", "Content-Type": "application/json; charset=utf-8", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "9e787c78f7dd3b96bf41d59574c5d4de", "x-ms-return-client-request-id": "true" @@ -122,15 +122,15 @@ "RequestBody": "{ \u0022$metadata\u0022: { \u0022$model\u0022: \u0022dtmi:example:room;115359225\u0022 }, \u0022Temperature\u0022: 80, \u0022Humidity\u0022: 25, \u0022IsOccupied\u0022: true, \u0022EmployeeId\u0022: \u0022Employee1\u0022}", "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "654", + "Content-Length": "660", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", - "ETag": "W/\u002203a962f4-261d-47c5-9111-9171bc2549b5\u0022", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", + "ETag": "W/\u0022a31c96e5-8ea5-4948-b2ef-004836df1f4d\u0022", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { "$dtId": "roomTwin1292386624", - "$etag": "03a962f4-261d-47c5-9111-9171bc2549b5", + "$etag": "W/\u0022a31c96e5-8ea5-4948-b2ef-004836df1f4d\u0022", "Temperature": 80, "Humidity": 25, "IsOccupied": true, @@ -169,13 +169,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "a743deb8c1b7589e7e29b5b04716a505", "x-ms-return-client-request-id": "true" @@ -183,15 +183,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "654", + "Content-Length": "660", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", - "ETag": "W/\u002203a962f4-261d-47c5-9111-9171bc2549b5\u0022", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", + "ETag": "W/\u0022a31c96e5-8ea5-4948-b2ef-004836df1f4d\u0022", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { "$dtId": "roomTwin1292386624", - "$etag": "03a962f4-261d-47c5-9111-9171bc2549b5", + "$etag": "W/\u0022a31c96e5-8ea5-4948-b2ef-004836df1f4d\u0022", "Temperature": 80, "Humidity": 25, "IsOccupied": true, @@ -230,15 +230,16 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Authorization": "Sanitized", "Content-Length": "131", "Content-Type": "application/json; charset=utf-8", + "If-Match": "*", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "c9d4b6619e62a5f74a95598780b6cff5", "x-ms-return-client-request-id": "true" @@ -247,20 +248,20 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", - "ETag": "W/\u00225c5b23a8-9f1a-42f1-a330-517a00141c83\u0022", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", + "ETag": "W/\u0022fba38c20-b9d8-47e4-9b20-24f4454f8aae\u0022", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": [] }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "b14464d552dfb75ddd201fb441e6f4a9", "x-ms-return-client-request-id": "true" @@ -269,19 +270,19 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": [] }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin1292386624?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "bd33d09b0bf0197ce69d5d216816d7c8", "x-ms-return-client-request-id": "true" @@ -291,7 +292,7 @@ "ResponseHeaders": { "Content-Length": "271", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -302,13 +303,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115359225?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115359225?api-version=2020-05-31-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "e2dac059f4d10f25591deb417f426364", "x-ms-return-client-request-id": "true" @@ -317,14 +318,14 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:33 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": [] } ], "Variables": { - "DIGITALTWINS_URL": "https://vinageshnew.api.wus2.digitaltwins.azure.net", + "DIGITALTWINS_URL": "https://azabbasitwin.api.wus2.digitaltwins.azure.net", "RandomSeed": "972541820" } } \ No newline at end of file diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_LifecycleAsync.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_LifecycleAsync.json index 4d7ea1952a8c..34c8a83fd06b 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_LifecycleAsync.json +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_LifecycleAsync.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "f5024f49bbc56e357098d6637c6de54e", "x-ms-return-client-request-id": "true" @@ -17,7 +17,7 @@ "ResponseHeaders": { "Content-Length": "270", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:02 GMT", + "Date": "Mon, 08 Jun 2020 17:35:31 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -28,13 +28,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Afloor%3B15382106?includeModelDefinition=true\u0026api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Afloor%3B15382106?includeModelDefinition=true\u0026api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "35a5ebe86527dd37f6d3e6de0d0c414a", "x-ms-return-client-request-id": "true" @@ -44,7 +44,7 @@ "ResponseHeaders": { "Content-Length": "212", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:03 GMT", + "Date": "Mon, 08 Jun 2020 17:35:31 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -55,13 +55,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115537104?includeModelDefinition=true\u0026api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115537104?includeModelDefinition=true\u0026api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "df9b835336eadaae55a8dd2ecb0b0d19", "x-ms-return-client-request-id": "true" @@ -71,7 +71,7 @@ "ResponseHeaders": { "Content-Length": "212", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:03 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -82,15 +82,15 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models?api-version=2020-05-31-preview", "RequestMethod": "POST", "RequestHeaders": { "Authorization": "Sanitized", "Content-Length": "804", "Content-Type": "application/json; charset=utf-8", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "7071111d22cdcaea17cfe74f90628c95", "x-ms-return-client-request-id": "true" @@ -100,21 +100,21 @@ "ResponseHeaders": { "Content-Length": "193", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, - "ResponseBody": "[{\u0022id\u0022:\u0022dtmi:example:room;115537104\u0022,\u0022description\u0022:{\u0022en\u0022:\u0022An enclosure inside a building.\u0022},\u0022displayName\u0022:{\u0022en\u0022:\u0022Room\u0022},\u0022decommissioned\u0022:false,\u0022uploadTime\u0022:\u00222020-06-02T19:05:04.8850892\u002B00:00\u0022}]" + "ResponseBody": "[{\u0022id\u0022:\u0022dtmi:example:room;115537104\u0022,\u0022description\u0022:{\u0022en\u0022:\u0022An enclosure inside a building.\u0022},\u0022displayName\u0022:{\u0022en\u0022:\u0022Room\u0022},\u0022decommissioned\u0022:false,\u0022uploadTime\u0022:\u00222020-06-08T17:35:32.9467705\u002B00:00\u0022}]" }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", "RequestMethod": "PUT", "RequestHeaders": { "Authorization": "Sanitized", "Content-Length": "150", "Content-Type": "application/json; charset=utf-8", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "621a10188cb2b5fef75ad1bc59af2ac8", "x-ms-return-client-request-id": "true" @@ -122,15 +122,15 @@ "RequestBody": "{ \u0022$metadata\u0022: { \u0022$model\u0022: \u0022dtmi:example:room;115537104\u0022 }, \u0022Temperature\u0022: 80, \u0022Humidity\u0022: 25, \u0022IsOccupied\u0022: true, \u0022EmployeeId\u0022: \u0022Employee1\u0022}", "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "653", + "Content-Length": "659", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", - "ETag": "W/\u002268fbab1e-1d28-47ab-b5d1-15c595e8b3d3\u0022", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", + "ETag": "W/\u00224740a783-79bb-4e3a-bce4-4019fc7de0ad\u0022", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { "$dtId": "roomTwin516462851", - "$etag": "68fbab1e-1d28-47ab-b5d1-15c595e8b3d3", + "$etag": "W/\u00224740a783-79bb-4e3a-bce4-4019fc7de0ad\u0022", "Temperature": 80, "Humidity": 25, "IsOccupied": true, @@ -169,13 +169,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "faefc4d9dad0319e99d1c81b4e5f4af2", "x-ms-return-client-request-id": "true" @@ -183,15 +183,15 @@ "RequestBody": null, "StatusCode": 200, "ResponseHeaders": { - "Content-Length": "653", + "Content-Length": "659", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", - "ETag": "W/\u002268fbab1e-1d28-47ab-b5d1-15c595e8b3d3\u0022", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", + "ETag": "W/\u00224740a783-79bb-4e3a-bce4-4019fc7de0ad\u0022", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { "$dtId": "roomTwin516462851", - "$etag": "68fbab1e-1d28-47ab-b5d1-15c595e8b3d3", + "$etag": "W/\u00224740a783-79bb-4e3a-bce4-4019fc7de0ad\u0022", "Temperature": 80, "Humidity": 25, "IsOccupied": true, @@ -230,15 +230,16 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", "RequestMethod": "PATCH", "RequestHeaders": { "Authorization": "Sanitized", "Content-Length": "131", "Content-Type": "application/json; charset=utf-8", + "If-Match": "*", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "bb15481babf0906713bb7973502e7168", "x-ms-return-client-request-id": "true" @@ -247,20 +248,20 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", - "ETag": "W/\u002285a59810-e4bb-4e6b-90da-0e83480b2f5e\u0022", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", + "ETag": "W/\u0022515a9fa3-fee9-4e6e-801a-c317600a6d17\u0022", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": [] }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "cb761fa491723ec471e8c8e1c4e36697", "x-ms-return-client-request-id": "true" @@ -269,19 +270,19 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 02 Jun 2020 19:05:04 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": [] }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/roomTwin516462851?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "11a0de106f992dd75d5fe714612be06b", "x-ms-return-client-request-id": "true" @@ -291,7 +292,7 @@ "ResponseHeaders": { "Content-Length": "270", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:32 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -302,13 +303,13 @@ } }, { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115537104?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/models/dtmi%3Aexample%3Aroom%3B115537104?api-version=2020-05-31-preview", "RequestMethod": "DELETE", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "2f765f5f7ee88a8083d74a08e285cc30", "x-ms-return-client-request-id": "true" @@ -317,14 +318,14 @@ "StatusCode": 204, "ResponseHeaders": { "Content-Length": "0", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:33 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": [] } ], "Variables": { - "DIGITALTWINS_URL": "https://vinageshnew.api.wus2.digitaltwins.azure.net", + "DIGITALTWINS_URL": "https://azabbasitwin.api.wus2.digitaltwins.azure.net", "RandomSeed": "934257658" } } \ No newline at end of file diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundException.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundException.json index a78fe9bca4dc..57814c57371b 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundException.json +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundException.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "3c9f99ca5ab7bbcd1d7859b690c85db7", "x-ms-return-client-request-id": "true" @@ -17,7 +17,7 @@ "ResponseHeaders": { "Content-Length": "272", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:33 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -29,7 +29,7 @@ } ], "Variables": { - "DIGITALTWINS_URL": "https://vinageshnew.api.wus2.digitaltwins.azure.net", + "DIGITALTWINS_URL": "https://azabbasitwin.api.wus2.digitaltwins.azure.net", "RandomSeed": "1567953324" } } \ No newline at end of file diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundExceptionAsync.json b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundExceptionAsync.json index 0364f4adf7cc..65921a1f1bf1 100644 --- a/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundExceptionAsync.json +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/tests/SessionRecords/DigitalTwinTests/DigitalTwins_TwinNotExist_ThrowsNotFoundExceptionAsync.json @@ -1,13 +1,13 @@ { "Entries": [ { - "RequestUri": "https://vinageshnew.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", + "RequestUri": "https://azabbasitwin.api.wus2.digitaltwins.azure.net/digitaltwins/someNonExistantTwin?api-version=2020-05-31-preview", "RequestMethod": "GET", "RequestHeaders": { "Authorization": "Sanitized", "User-Agent": [ - "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200602.1", - "(.NET Core 4.6.28801.04; Microsoft Windows 10.0.18363 )" + "azsdk-net-DigitalTwins.Core/1.0.0-dev.20200608.1", + "(.NET Core 4.6.28516.03; Microsoft Windows 10.0.18363 )" ], "x-ms-client-request-id": "fad80ca47d17c1fc7b50b1bdd349b138", "x-ms-return-client-request-id": "true" @@ -17,7 +17,7 @@ "ResponseHeaders": { "Content-Length": "272", "Content-Type": "application/json; charset=utf-8", - "Date": "Tue, 02 Jun 2020 19:05:05 GMT", + "Date": "Mon, 08 Jun 2020 17:35:33 GMT", "Strict-Transport-Security": "max-age=2592000" }, "ResponseBody": { @@ -29,7 +29,7 @@ } ], "Variables": { - "DIGITALTWINS_URL": "https://vinageshnew.api.wus2.digitaltwins.azure.net", + "DIGITALTWINS_URL": "https://azabbasitwin.api.wus2.digitaltwins.azure.net", "RandomSeed": "221072636" } } \ No newline at end of file