From e910edd0523421e86c695f0c5297f5ca32c8b428 Mon Sep 17 00:00:00 2001 From: Vishnu Reddy Date: Wed, 30 Jun 2021 08:31:26 -0700 Subject: [PATCH] update identity and regenerate recordings --- .../digital-twins-core/package.json | 2 +- ...ecording_create_a_simple_digital_twin.json | 62 +++--- ..._digitaltwin_conditionally_if_missing.json | 69 ++++--- ...ding_create_digitaltwin_without_model.json | 48 +++-- .../recording_create_invalid_digitaltwin.json | 46 +++-- ...elete_digital_twin_invalid_conditions.json | 67 +++--- .../recording_delete_digitaltwin.json | 89 ++++---- ...cording_delete_digitaltwin_if_present.json | 87 ++++---- ...rding_delete_digitaltwin_not_existing.json | 60 +++--- .../recording_get_digitaltwin.json | 73 ++++--- ...ecording_get_digitaltwin_not_existing.json | 60 +++--- .../recording_publish_telemetry.json | 2 +- .../recording_query_digital_twin.json | 63 +++--- ...query_digital_twin_invalid_expression.json | 61 +++--- ...ecording_update_a_simple_digital_twin.json | 71 ++++--- .../recording_update_digital_twin_add.json | 80 +++---- ...igital_twin_confditionally_if_present.json | 82 ++++---- ...pdate_digital_twin_invalid_conditions.json | 67 +++--- ...ing_update_digital_twin_invalid_patch.json | 67 +++--- ...ecording_update_digital_twin_multiple.json | 82 ++++---- ...ding_update_digital_twin_not_existing.json | 62 +++--- .../recording_update_digital_twin_remove.json | 80 +++---- ...recording_update_digital_twin_replace.json | 80 +++---- ...psert_digital_twin_invalid_conditions.json | 58 +++--- .../recording_get_component_not_existing.json | 67 +++--- .../recording_get_component_simple.json | 69 ++++--- ...recording_publish_component_telemetry.json | 2 +- ...ish_component_telemetry_not_exisiting.json | 2 +- ...h_component_telemetry_with_message_id.json | 2 +- .../recording_update_component_add.json | 76 ++++--- ...te_component_conditionally_if_present.json | 85 ++++---- ...g_update_component_invalid_conditions.json | 67 +++--- ...ording_update_component_invalid_patch.json | 65 +++--- .../recording_update_component_multiple.json | 83 ++++---- ...ording_update_component_not_exisiting.json | 65 +++--- .../recording_update_component_remove.json | 74 ++++--- .../recording_update_component_replace.json | 78 ++++--- ...ording_create_event_route_no_endpoint.json | 27 +-- ...ding_delete_event_route_not_exisiting.json | 23 ++- ...cording_get_event_route_not_exisiting.json | 23 ++- .../recording_list_event_routes.json | 19 +- .../recording_create_model_existing.json | 46 +++-- .../recording_create_model_invalid_model.json | 41 ++-- ...ording_create_model_invalid_reference.json | 39 ++-- .../recording_create_models.json | 43 ++-- .../recording_create_models_empty.json | 24 ++- .../recording_decommission_model.json | 60 +++--- ...ommission_model_already_decomissioned.json | 72 ++++--- ...rding_decommission_model_not_existing.json | 39 ++-- .../recording_delete_model.json | 63 +++--- ...ecording_delete_model_already_deleted.json | 55 ++--- .../recording_delete_model_not_existing.json | 41 ++-- ...ording_delete_model_with_dependencies.json | 68 +++--- .../recording_get_model.json | 48 +++-- .../recording_get_model_not_existing.json | 29 +-- .../recording_get_model_with_definition.json | 48 +++-- .../recording_list_models.json | 54 ++--- ...recording_list_models_with_definition.json | 48 +++-- .../recording_create_basic_relationship.json | 122 ++++++----- ...invalid_relationship__invalid_twin_id.json | 120 ++++++----- ..._relationship__invalid_twin_target_id.json | 118 ++++++----- ...ing_create_relationship_conditionally.json | 129 +++++++----- .../recording_delete_relationship.json | 134 +++++++----- ...ding_delete_relationship_not_existing.json | 120 ++++++----- .../recording_get_relationship.json | 133 +++++++----- ...cording_get_relationship_not_existing.json | 120 ++++++----- ...recording_list_incoming_relationships.json | 127 +++++++----- .../recording_list_relationships.json | 131 +++++++----- .../recording_update_relationship_add.json | 145 +++++++------ ...ing_update_relationship_conditionally.json | 138 +++++++------ ...ing_update_relationship_invalid_patch.json | 142 +++++++------ ...ecording_update_relationship_multiple.json | 140 +++++++------ ...ding_update_relationship_not_existing.json | 120 ++++++----- .../recording_update_relationship_remove.json | 138 +++++++------ ...recording_update_relationship_replace.json | 140 +++++++------ .../recording_upsert_relationship.json | 131 +++++++----- .../recording_create_a_simple_digital_twin.js | 125 +++++++++-- ...te_digitaltwin_conditionally_if_missing.js | 133 +++++++++--- ...ording_create_digitaltwin_without_model.js | 117 +++++++++-- .../recording_create_invalid_digitaltwin.js | 113 ++++++++-- ..._delete_digital_twin_invalid_conditions.js | 135 +++++++++--- .../recording_delete_digitaltwin.js | 149 ++++++++++--- ...recording_delete_digitaltwin_if_present.js | 149 ++++++++++--- ...cording_delete_digitaltwin_not_existing.js | 125 +++++++++-- .../recording_get_digitaltwin.js | 135 +++++++++--- .../recording_get_digitaltwin_not_existing.js | 129 ++++++++++-- .../recording_publish_telemetry.js | 2 +- .../recording_query_digital_twin.js | 135 +++++++++--- ...g_query_digital_twin_invalid_expression.js | 129 ++++++++++-- .../recording_update_a_simple_digital_twin.js | 135 +++++++++--- .../recording_update_digital_twin_add.js | 145 ++++++++++--- ..._digital_twin_confditionally_if_present.js | 147 ++++++++++--- ..._update_digital_twin_invalid_conditions.js | 131 ++++++++++-- ...rding_update_digital_twin_invalid_patch.js | 131 ++++++++++-- .../recording_update_digital_twin_multiple.js | 143 ++++++++++--- ...ording_update_digital_twin_not_existing.js | 125 +++++++++-- .../recording_update_digital_twin_remove.js | 143 ++++++++++--- .../recording_update_digital_twin_replace.js | 143 ++++++++++--- ..._upsert_digital_twin_invalid_conditions.js | 123 +++++++++-- .../recording_get_component_not_existing.js | 131 ++++++++++-- .../recording_get_component_simple.js | 133 ++++++++++-- .../recording_publish_component_telemetry.js | 2 +- ...blish_component_telemetry_not_exisiting.js | 2 +- ...ish_component_telemetry_with_message_id.js | 2 +- .../recording_update_component_add.js | 137 ++++++++++-- ...date_component_conditionally_if_present.js | 145 ++++++++++--- ...ing_update_component_invalid_conditions.js | 127 ++++++++++-- ...ecording_update_component_invalid_patch.js | 127 ++++++++++-- .../recording_update_component_multiple.js | 143 ++++++++++--- ...ecording_update_component_not_exisiting.js | 131 ++++++++++-- .../recording_update_component_remove.js | 135 ++++++++++-- .../recording_update_component_replace.js | 137 ++++++++++-- ...ecording_create_event_route_no_endpoint.js | 93 ++++++++- ...ording_delete_event_route_not_exisiting.js | 93 ++++++++- ...recording_get_event_route_not_exisiting.js | 93 ++++++++- .../recording_list_event_routes.js | 89 +++++++- .../recording_create_model_existing.js | 111 ++++++++-- .../recording_create_model_invalid_model.js | 105 +++++++++- ...ecording_create_model_invalid_reference.js | 105 +++++++++- .../recording_create_models.js | 107 ++++++++-- .../recording_create_models_empty.js | 93 ++++++++- .../recording_decommission_model.js | 123 +++++++++-- ...ecommission_model_already_decomissioned.js | 133 ++++++++++-- ...cording_decommission_model_not_existing.js | 105 +++++++++- .../recording_delete_model.js | 125 +++++++++-- .../recording_delete_model_already_deleted.js | 121 +++++++++-- .../recording_delete_model_not_existing.js | 105 +++++++++- ...ecording_delete_model_with_dependencies.js | 133 ++++++++++-- .../recording_get_model.js | 113 ++++++++-- .../recording_get_model_not_existing.js | 101 ++++++++- .../recording_get_model_with_definition.js | 115 +++++++++-- .../recording_list_models.js | 117 +++++++++-- .../recording_list_models_with_definition.js | 117 +++++++++-- .../recording_create_basic_relationship.js | 177 +++++++++++++--- ...e_invalid_relationship__invalid_twin_id.js | 177 +++++++++++++--- ...id_relationship__invalid_twin_target_id.js | 171 ++++++++++++--- ...rding_create_relationship_conditionally.js | 179 +++++++++++++--- .../recording_delete_relationship.js | 187 +++++++++++++---- ...ording_delete_relationship_not_existing.js | 171 ++++++++++++--- .../recording_get_relationship.js | 183 ++++++++++++---- ...recording_get_relationship_not_existing.js | 175 +++++++++++++--- .../recording_list_incoming_relationships.js | 179 +++++++++++++--- .../recording_list_relationships.js | 181 ++++++++++++---- .../recording_update_relationship_add.js | 195 ++++++++++++++---- ...rding_update_relationship_conditionally.js | 195 ++++++++++++++---- ...rding_update_relationship_invalid_patch.js | 193 +++++++++++++---- .../recording_update_relationship_multiple.js | 191 +++++++++++++---- ...ording_update_relationship_not_existing.js | 175 +++++++++++++--- .../recording_update_relationship_remove.js | 191 +++++++++++++---- .../recording_update_relationship_replace.js | 191 +++++++++++++---- .../recording_upsert_relationship.js | 187 +++++++++++++---- .../test/utils/testAuthentication.ts | 2 +- 152 files changed, 11418 insertions(+), 3984 deletions(-) diff --git a/sdk/digitaltwins/digital-twins-core/package.json b/sdk/digitaltwins/digital-twins-core/package.json index a6f0dcaf34bc..cf700b227e70 100644 --- a/sdk/digitaltwins/digital-twins-core/package.json +++ b/sdk/digitaltwins/digital-twins-core/package.json @@ -75,7 +75,7 @@ "devDependencies": { "@azure/dev-tool": "^1.0.0", "@azure/eslint-plugin-azure-sdk": "^3.0.0", - "@azure/identity": "^1.1.0", + "@azure/identity": "2.0.0-beta.4", "@azure/test-utils-recorder": "^1.0.0", "@microsoft/api-extractor": "7.7.11", "@rollup/plugin-commonjs": "11.0.2", diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.json index 1545f9389468..3f2d0bba3db1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", + "date": "Wed, 30 Jun 2021 15:29:15 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fed9059000" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae5f92b7701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f478452cb7f59648aa9e4c464df5a772-15fbc91ae0a2954e-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:23.2770856+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:16.3460656+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d1de4ab8c8649c45a887537c114cb0bb-1c6ea12c63463d4e-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528410909819", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695796903161", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528410909819. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695796903161. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0a0feeff52474549adb46cd0c942ca3b-c705ef1216308e4b-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528410909819", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695796903161", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528410909819\",\"$etag\":\"W/\\\"d272d04c-d1b0-4f25-a160-d9acb7a2fa59\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:23.3526406Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:23.3526406Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506695796903161\",\"$etag\":\"W/\\\"e8d18382-4c6f-4c39-8568-e2a30caf2ded\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:16.4442415Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:16.4442415Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "etag": "W/\"d272d04c-d1b0-4f25-a160-d9acb7a2fa59\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "etag": "W/\"e8d18382-4c6f-4c39-8568-e2a30caf2ded\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1969f8d6fbb68f4d81c15b7234f3adca-5eb9747fd3450340-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528410909819", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695796903161", "query": { "api-version": "2020-10-31" }, @@ -98,8 +104,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-05d1bc1640aff3479b0d3521923bcf8c-a22a4b82513da74c-01" } }, { @@ -113,16 +120,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b3bb046468b03b4791de18f9b109b4fa-2b10b1b9b75b1b4e-01" } } ], "uniqueTestInfo": { "uniqueName": { - "create-simple-digitaltwin": "digitalTwin161015528410909819" + "create-simple-digitaltwin": "digitalTwin162506695796903161" }, "newDate": {} }, - "hash": "b1c5e7a5377ddf2ea53ea61f55eb9a58" + "hash": "ec19be952f1fed2d3c7da65edf44be55" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.json index d77a441b46c3..451ed1fd18b9 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", + "date": "Wed, 30 Jun 2021 15:29:16 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "526d55b2-138a-44da-81ac-9533204e8600" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae5342c7701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4532613fff264d42a47c8d00ad63e245-e63ad1a672f61a4e-01" } }, { @@ -46,66 +49,70 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:24.1956028+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:17.2171304+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7a45e4caa165ef4cac04f11a0f5da143-1e8ea3206308a94c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528506502157", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695884905365", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528506502157. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695884905365. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-750f06bc593ea4488baa23d0df2a1ac0-a268d23824815449-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528506502157", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695884905365", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528506502157\",\"$etag\":\"W/\\\"7bbdae97-2839-4b6b-aa88-edc61594defc\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:24.2841723Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:24.2841723Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506695884905365\",\"$etag\":\"W/\\\"8cea472c-7a82-452a-afc9-c81c3d304878\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:17.3110974Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:17.3110974Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "etag": "W/\"7bbdae97-2839-4b6b-aa88-edc61594defc\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "etag": "W/\"8cea472c-7a82-452a-afc9-c81c3d304878\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-03bd0a7e30677c49928c83e34a8963f8-93b95913cd0acd4e-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528506502157", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695884905365", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 412, - "response": "{\"error\":{\"code\":\"PreconditionFailed\",\"message\":\"If-None-Match: * header was specified but a twin with the id digitalTwin161015528506502157 was found. Please specify a different twin id.\"}}", + "response": "{\"error\":{\"code\":\"PreconditionFailed\",\"message\":\"If-None-Match: * header was specified but a twin with the id digitalTwin162506695884905365 was found. Please specify a different twin id.\"}}", "responseHeaders": { "content-length": "189", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6a1916fa3956f146b95803dc78f49a0c-a60115e02b37764c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528506502157", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695884905365", "query": { "api-version": "2020-10-31" }, @@ -114,8 +121,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4577ee3d63689f47b8b08de27786f0dd-89e67aad74ef354a-01" } }, { @@ -129,16 +137,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-783977a045197f49a46745f77c30e0db-f0ed1f3e34fdc04a-01" } } ], "uniqueTestInfo": { "uniqueName": { - "create-digitaltwin-conditionally-if-missing": "digitalTwin161015528506502157" + "create-digitaltwin-conditionally-if-missing": "digitalTwin162506695884905365" }, "newDate": {} }, - "hash": "e1a0cc06fe65e500debdb8b2998d21f4" + "hash": "b72a8050f8c2f189ab831b5463e3c6d4" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.json index 10c28f2540c3..a7bf47e8a96c 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.json @@ -2,45 +2,48 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", + "date": "Wed, 30 Jun 2021 15:29:15 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fee1059000" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b271a4123101" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528450807480", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695834104388", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528450807480. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695834104388. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6bf2f31a4083a2478668521d77eca8c0-223a82ea9e829c4c-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528450807480", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695834104388", "query": { "api-version": "2020-10-31" }, @@ -50,24 +53,26 @@ "responseHeaders": { "content-length": "197", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-000b2ce7d2e04140b479caf216708174-9a198f408b0efa48-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528450807480", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695834104388", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528450807480. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695834104388. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a4fd0f7c96d29a4cb79bfb4e1b190788-424fbb3963ac7847-01" } }, { @@ -82,16 +87,17 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9545e723c6b2e446ba10053645701e87-db1628d1803f8a4d-01" } } ], "uniqueTestInfo": { "uniqueName": { - "create-digitaltwin-without-model": "digitalTwin161015528450807480" + "create-digitaltwin-without-model": "digitalTwin162506695834104388" }, "newDate": {} }, - "hash": "62f0038af25330eeb33a0cab4d1253fd" + "hash": "20fdcb9e57fdadd1d892655d92a0a75b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.json index 34f77120ca2f..be75006c1c87 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.json @@ -2,45 +2,48 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", + "date": "Wed, 30 Jun 2021 15:29:16 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7febb5cd9100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "49b25b67-e32d-4755-8bf0-10e0e6793601" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528481408775", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695864006776", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528481408775. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695864006776. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cb0416545d35bf43bbd19e37987d805a-31092cbf1d65f64e-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528481408775", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695864006776", "query": { "api-version": "2020-10-31" }, @@ -50,24 +53,26 @@ "responseHeaders": { "content-length": "197", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f13cbd69cf800d4ab134a59475d8830d-c6e74d82e25eb346-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528481408775", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695864006776", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528481408775. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695864006776. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-efe9133bfd253a48a5734a94a0abcdd8-59997d2734248b47-01" } }, { @@ -82,16 +87,17 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:23 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:16 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2fd574ad6f059e48b0045ad7c5bc0905-37e2953b8149e042-01" } } ], "uniqueTestInfo": { "uniqueName": { - "create-invalid-digitaltwin": "digitalTwin161015528481408775" + "create-invalid-digitaltwin": "digitalTwin162506695864006776" }, "newDate": {} }, - "hash": "c64157a8268121d202fdcf7343347a23" + "hash": "d04372bde0bef9a9db42ebe273edaa7f" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.json index 9222bd3eb844..f11fd66ef50d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", + "date": "Wed, 30 Jun 2021 15:29:19 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "b303fb60-9b87-4660-abd8-170cee9b8b00" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c005b9a3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ecc4925ce572a24180bb9a958b61c105-a462420fd8c1204e-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:27.3631358+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:20.7537443+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d9536ea96e522a44969cbfc1600174a7-11fcab14a7328748-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528823609588", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696239807948", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528823609588. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696239807948. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3127836f22a04b4197ad861ad974f929-fcc3a68211fd0e4c-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528823609588", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696239807948", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528823609588\",\"$etag\":\"W/\\\"f15eb96c-704a-4ff0-b5c0-51effc19c0f7\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:27.4355863Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:27.4355863Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696239807948\",\"$etag\":\"W/\\\"bdb5da78-32b0-4f98-952c-37363fb9b200\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:20.8640216Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:20.8640216Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "etag": "W/\"f15eb96c-704a-4ff0-b5c0-51effc19c0f7\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "etag": "W/\"bdb5da78-32b0-4f98-952c-37363fb9b200\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-651e148bd83c5745ab7d3a80ba18da8c-90c22b681b47944c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528823609588", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696239807948", "query": { "api-version": "2020-10-31" }, @@ -99,13 +105,14 @@ "responseHeaders": { "content-length": "129", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2e214c33c747f5429b5ad70bb31b06cf-763e64be5998f449-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528823609588", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696239807948", "query": { "api-version": "2020-10-31" }, @@ -114,8 +121,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-deeeb09237eb7442a6942cfb737b8265-122fc17a826b784f-01" } }, { @@ -129,16 +137,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-361d060106622948acc63d0264baadc6-0cc98183c59fc94a-01" } } ], "uniqueTestInfo": { "uniqueName": { - "delete-digitaltwin-invalid-conditions": "digitalTwin161015528823609588" + "delete-digitaltwin-invalid-conditions": "digitalTwin162506696239807948" }, "newDate": {} }, - "hash": "9fabdfb6d86ab31fba52dd83f42035f0" + "hash": "6e75842264969351af1ed3e53231425c" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.json index 9d294036247a..0db6d4ec0545 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", + "date": "Wed, 30 Jun 2021 15:29:18 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "8b1947ee-c6a8-4b20-9e6a-ff0015258a00" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "9821cc30-0568-44b2-9e6e-187855d01d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-337efea52b59b94ea73039584c7a5aae-8ab0944d617a9943-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:26.004798+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:19.4393238+00:00\"}]", "responseHeaders": { - "content-length": "160", + "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-58df03bc88c54443b6fc621f3b1a7461-7db628f51a269c42-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528690905985", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696110501549", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528690905985. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696110501549. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b23486abd810c34b916dee108dbf3a2c-bfdb806cafb3ea4b-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528690905985", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696110501549", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528690905985\",\"$etag\":\"W/\\\"014b4eac-8033-460f-b7ea-b8b2d149a3d5\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:26.0780214Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:26.0780214Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696110501549\",\"$etag\":\"W/\\\"ecb2821f-391e-4045-b6ea-394a1934e36a\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:19.5353850Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:19.5353850Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "etag": "W/\"014b4eac-8033-460f-b7ea-b8b2d149a3d5\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "etag": "W/\"ecb2821f-391e-4045-b6ea-394a1934e36a\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ee88d5b8dcac394c807c4848c2b950ff-34d1f899af6d8945-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528690905985", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696110501549", "query": { "api-version": "2020-10-31" }, @@ -98,24 +104,26 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-485a539f2b7e9b4d9d29808f4e832bd3-da824bfb5faac149-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528690905985", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696110501549", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528690905985. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696110501549. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5f13525f4fb468438d57022b44419520-1f288980350b484d-01" } }, { @@ -129,48 +137,51 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-353cdf6306a5854ab02dbf6888050c0d-30d6c28e47cd404a-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528690905985", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696110501549", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528690905985. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696110501549. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-719837b81f6ff74dbeaccec8b76e037e-e18f7d4b72bd814b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528690905985", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696110501549", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528690905985. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696110501549. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9711c14d78a1a04fa66655165c37026d-922eb791c1762544-01" } } ], "uniqueTestInfo": { "uniqueName": { - "delete-digitaltwin": "digitalTwin161015528690905985" + "delete-digitaltwin": "digitalTwin162506696110501549" }, "newDate": {} }, - "hash": "ab734832767a2fd97db1adb6189c1a39" + "hash": "ac0063998d38a55614239a135ffc30fe" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.json index 5e7a78e330ef..aea52fecbeaa 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", + "date": "Wed, 30 Jun 2021 15:29:19 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7feb2dce9100" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "e390ab33-5487-4c28-af8f-5d7764905901" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3a841f8dddaf4a4ba992a0fab6544691-0b586c56f9237f4e-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:26.8187155+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:20.2886316+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a55c7aa3874d5640813938bb300dd2db-b1f9f463e1f4b34a-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528770503963", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696186300686", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528770503963. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696186300686. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4ebc0a9ac540ef499988a3bffc4cc82f-d049581944f59e43-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528770503963", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696186300686", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528770503963\",\"$etag\":\"W/\\\"def84c30-0214-4daf-8e28-b3ed9c97f59d\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:26.9642460Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:26.9642460Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696186300686\",\"$etag\":\"W/\\\"72c332a0-1b37-43ed-8c46-d09813e62950\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:20.3798266Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:20.3798266Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "etag": "W/\"def84c30-0214-4daf-8e28-b3ed9c97f59d\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "etag": "W/\"72c332a0-1b37-43ed-8c46-d09813e62950\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ddc22ff63f264047b00ee972e6c913dd-dd8e215fe220e340-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528770503963", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696186300686", "query": { "api-version": "2020-10-31" }, @@ -98,24 +104,26 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4e6158979776014ca8a9f18e2086035d-48c686ee745dcd42-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528770503963", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696186300686", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528770503963. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696186300686. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e483cc3ddbf2ba42a41e2ca7b58d9ca4-c6bfedc2320ac24c-01" } }, { @@ -129,48 +137,51 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d116de2814927a49a200e6a4b16c92fc-c9e183f64003a740-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528770503963", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696186300686", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528770503963. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696186300686. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d7ce2d8157405b4cb3c0bb508d4cd61e-86255be95060ea4b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528770503963", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696186300686", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528770503963. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696186300686. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d66543d15ac868459d67ce93d417cf54-7a90d2ee73f9ed48-01" } } ], "uniqueTestInfo": { "uniqueName": { - "delete-digitaltwin-if-present": "digitalTwin161015528770503963" + "delete-digitaltwin-if-present": "digitalTwin162506696186300686" }, "newDate": {} }, - "hash": "c62b99f9f5cb368cb0aa18ba2e992f93" + "hash": "d4b26a547068b87ed441ce4d04a90119" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.json index b49de224a3a9..d28d2ac032af 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", + "date": "Wed, 30 Jun 2021 15:29:19 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "cd5a7f22-bc82-414f-9a93-72ab57c09500" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c00329a3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5fe316c0674cc34db5c647275407d8d6-22e0e77896499b42-01" } }, { @@ -46,60 +49,64 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:26.4949237+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:19.8844591+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-bcc3c719311d6a46a4a6e3e2353c4bb6-0e505f67eb013644-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528735001484", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696155504138", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528735001484. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696155504138. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ad5d10bcb0bec24e803a18ddb279ceea-3c56356a01f5864c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528735001484", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696155504138", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528735001484. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696155504138. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-534b73991b1d034c8639612d84c300dd-24aa2992ff1c6e4b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528735001484", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696155504138", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528735001484. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696155504138. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f82b6a6cd8588246ab52051e67508496-7cdfdc242080eb43-01" } }, { @@ -113,16 +120,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:26 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:19 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e97e56c791baca4a8dab1507a83c152b-d160e0ff672c1749-01" } } ], "uniqueTestInfo": { "uniqueName": { - "delete-digitaltwin-not-exisiting": "digitalTwin161015528735001484" + "delete-digitaltwin-not-exisiting": "digitalTwin162506696155504138" }, "newDate": {} }, - "hash": "9efbde27d63fc22e7a5eae26a4682e62" + "hash": "d99cec497e4b812dafd571f78741b4a4" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.json index a1beb8e1bfa4..de3f2fb21ae8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", + "date": "Wed, 30 Jun 2021 15:29:17 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "cfcd0787-8769-464f-abe9-263a149e9200" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "3f8c4ad6-0330-42f6-a047-a3eb34496901" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7f85f4f0c5825145936d7b6ed56a1883-e58d07f7e7fc7246-01" } }, { @@ -46,67 +49,71 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:25.267344+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:18.7300402+00:00\"}]", "responseHeaders": { - "content-length": "160", + "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d0f34b9867a67546915a0e24cdb8d499-a25ac0dfd6867d4b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528621700408", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696021203279", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528621700408. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696021203279. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c729a2f0861b8741a28beacf82fb5b63-20fa1ace926eb04d-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528621700408", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696021203279", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528621700408\",\"$etag\":\"W/\\\"5ecb26a9-825d-4722-bab1-8513e457e5e0\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:25.3404870Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:25.3404870Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696021203279\",\"$etag\":\"W/\\\"1bd90b1a-0772-41b2-a641-069c88d9b6bf\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:18.8255671Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:18.8255671Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "etag": "W/\"5ecb26a9-825d-4722-bab1-8513e457e5e0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "etag": "W/\"1bd90b1a-0772-41b2-a641-069c88d9b6bf\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c58e39ab9f515648ba89f9e74236ddf2-3b7af36ec0d8d245-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528621700408", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696021203279", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528621700408\",\"$etag\":\"W/\\\"5ecb26a9-825d-4722-bab1-8513e457e5e0\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:25.3404870Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:25.3404870Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696021203279\",\"$etag\":\"W/\\\"1bd90b1a-0772-41b2-a641-069c88d9b6bf\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:18.8255671Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:18.8255671Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "etag": "W/\"5ecb26a9-825d-4722-bab1-8513e457e5e0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "etag": "W/\"1bd90b1a-0772-41b2-a641-069c88d9b6bf\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-df6f10e46d1da7449d1957906fe020a6-c192042d9c595a4b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528621700408", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696021203279", "query": { "api-version": "2020-10-31" }, @@ -115,8 +122,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e97bcd9655e1da42b04f86d43035c696-6c6589108ff39a4c-01" } }, { @@ -130,16 +138,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b767ee5bac42d241a59f79cb59da8a51-cca50818ec1c3145-01" } } ], "uniqueTestInfo": { "uniqueName": { - "get-digitaltwin": "digitalTwin161015528621700408" + "get-digitaltwin": "digitalTwin162506696021203279" }, "newDate": {} }, - "hash": "9f8a9ec78e1eca5027522fecf88104d8" + "hash": "a75a2176f3d6ac08311cca00ce7e1d8f" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.json index 0ce920a32516..089eab885e78 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", + "date": "Wed, 30 Jun 2021 15:29:18 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-3759a6829000" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b27169133101" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-db1db3d5d1cfb944b5c39cd4a385c8ad-a2525aacfb7e5748-01" } }, { @@ -46,60 +49,64 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:25.7012807+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:19.1368918+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-deae782c5d52374ab3fab54127b1327f-dca026a30d0a854d-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528658304912", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696076309399", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528658304912. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696076309399. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c9511d6a6b3ed941a3e4a3ff3bd405c1-f72aa4586ca2fa4a-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528658304912", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696076309399", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528658304912. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696076309399. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2b5b1c93ca6c084e91a3d18aad9696a0-ae8757a0be073e4f-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528658304912", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696076309399", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528658304912. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696076309399. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-64fe47f48023fe41b497e1baef41d5fe-81766634b7a14849-01" } }, { @@ -113,16 +120,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:25 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-34664bd30b0e1e44886c9029362533b5-6afec420ae661d40-01" } } ], "uniqueTestInfo": { "uniqueName": { - "get-digitaltwin-not-existing": "digitalTwin161015528658304912" + "get-digitaltwin-not-existing": "digitalTwin162506696076309399" }, "newDate": {} }, - "hash": "d96ed7327c5c04d6f992a393212c3fb4" + "hash": "54276310dfe9545024e9dc9ad5fa7211" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.json index 4b24477ee811..bf47bbc11223 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.json @@ -4,5 +4,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "3b7bfc3f97625105af7c861488327a30" + "hash": "c9ec4b826db2bb1b998417dc6a984ece" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.json index 1b2f11f2cf8a..21e4c4f375c2 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", + "date": "Wed, 30 Jun 2021 15:29:24 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "cd5a7f22-bc82-414f-9a93-72ab45c19500" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b271f3143101" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f629fb938599ba4aa76703768be7c551-0ecccd2de8eb7048-01" } }, { @@ -46,12 +49,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:31.2857139+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:24.7993258+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c8c3e23dcb838245aad21ac79b54eecc-b246a64b618d2b44-01" } }, { @@ -65,27 +69,29 @@ "response": "{\"value\":[],\"continuationToken\":null}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "query-charge": "5.58", + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "query-charge": "2.79", "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6c433c79557bd4428555de974e6f8df7-2fd90f40b6fe8949-01", "transfer-encoding": "chunked" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529219009837", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696642806135", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529219009837\",\"$etag\":\"W/\\\"49a4f3af-da32-49bc-8cb9-1969b83e9a2a\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:31.4689066Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:31.4689066Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696642806135\",\"$etag\":\"W/\\\"97e3382d-ae89-4110-b25e-7df4037e4c2b\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:25.0820643Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:25.0820643Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "etag": "W/\"49a4f3af-da32-49bc-8cb9-1969b83e9a2a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "etag": "W/\"97e3382d-ae89-4110-b25e-7df4037e4c2b\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a6406bc7ab9d02439cd627b4ba53ba71-26a2177cc8b7ac4f-01" } }, { @@ -96,18 +102,19 @@ }, "requestBody": "{\"query\":\"SELECT * FROM digitaltwins\"}", "status": 200, - "response": "{\"value\":[{\"$dtId\":\"digitalTwin161015529219009837\",\"$etag\":\"W/\\\"49a4f3af-da32-49bc-8cb9-1969b83e9a2a\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:31.4689066Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:31.4689066Z\"}}}],\"continuationToken\":null}", + "response": "{\"value\":[{\"$dtId\":\"digitalTwin162506696642806135\",\"$etag\":\"W/\\\"97e3382d-ae89-4110-b25e-7df4037e4c2b\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:25.0820643Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:25.0820643Z\"}}}],\"continuationToken\":null}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "query-charge": "5.66", + "date": "Wed, 30 Jun 2021 15:29:29 GMT", + "query-charge": "2.87", "strict-transport-security": "max-age=2592000", + "traceresponse": "00-564e958162356347a3e6fc83a0f794f6-1cccf9602f48244b-01", "transfer-encoding": "chunked" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529219009837", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696642806135", "query": { "api-version": "2020-10-31" }, @@ -116,8 +123,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:29 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-16f243f26d600b40add5c8acc40e5af9-ee590f9355032144-01" } }, { @@ -131,16 +139,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:29 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7fbfe5a20444b44ba21826b34be290c3-9a396329c872bd4e-01" } } ], "uniqueTestInfo": { "uniqueName": { - "query-digitaltwin": "digitalTwin161015529219009837" + "query-digitaltwin": "digitalTwin162506696642806135" }, "newDate": {} }, - "hash": "7b93f07e38ab92ea0c9f3714518d177c" + "hash": "b957ac487ff2001d5489d531d28d080d" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.json index 3c559b288566..dadfbe9c6cfd 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", + "date": "Wed, 30 Jun 2021 15:29:29 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-3759a7849000" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "89d8dfb5-10fa-47f0-b8a9-d132dcca2601" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:29 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7d582ef6ec8ce5438f108db761bdbece-b2598119bd004548-01" } }, { @@ -46,12 +49,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:36.8333541+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:30.4141937+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:29 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1c8a6fb4ed8a06459a1e1fa1a425e49f-a881dc061ac0ca4f-01" } }, { @@ -62,29 +66,31 @@ }, "requestBody": "{\"query\":\"SELECT * FROM digitaltwins\"}", "status": 200, - "response": "{\"value\":[{\"$dtId\":\"digitalTwin161015529219009837\",\"$etag\":\"W/\\\"49a4f3af-da32-49bc-8cb9-1969b83e9a2a\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:31.4689066Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:31.4689066Z\"}}}],\"continuationToken\":null}", + "response": "{\"value\":[{\"$dtId\":\"digitalTwin162506696642806135\",\"$etag\":\"W/\\\"97e3382d-ae89-4110-b25e-7df4037e4c2b\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:25.0820643Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:25.0820643Z\"}}}],\"continuationToken\":null}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "query-charge": "5.66", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "query-charge": "2.87", "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c1f6d64ec43b4541adc375308f51c2be-e520a9089aa26c47-01", "transfer-encoding": "chunked" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529219009837", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696642806135", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529219009837. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696642806135. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-896a8e3a486430429d130b0681ff18f3-eb25ee261f28f54f-01" } }, { @@ -98,25 +104,27 @@ "response": "{\"error\":{\"code\":\"SqlQueryError\",\"message\":\"SQL query parse failed: SQL Parser Error, Line=1, Position=0, Message=missing SELECT at 'foo' See samples in http://aka.ms/adtv2query for the correct syntax.\"}}", "responseHeaders": { "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", "strict-transport-security": "max-age=2592000", + "traceresponse": "00-64836455521f944fbc9c63fc2cab1069-ffb01f2ccbf2d14f-01", "transfer-encoding": "chunked" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529771202631", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506697203301938", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529771202631. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506697203301938. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-af198f4dff06a44890f9b7681c56eead-c5abfbb9d36a7a4f-01" } }, { @@ -130,16 +138,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e532bcbe77b2dd4c922a04d8f756652e-9fcb7fd45c47844e-01" } } ], "uniqueTestInfo": { "uniqueName": { - "query-digitaltwin-invalid-expression": "digitalTwin161015529771202631" + "query-digitaltwin-invalid-expression": "digitalTwin162506697203301938" }, "newDate": {} }, - "hash": "ec22eacbd08c400cf68462da7a51982c" + "hash": "a1ab8e6c9a2b9a8ad48ae9182a576294" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.json index b6abd3a60c80..79600708c6c8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", + "date": "Wed, 30 Jun 2021 15:29:16 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "62e49051-bb50-44d7-be6a-d0cebe298e00" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae5542c7701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9a8af42b0855d1409f3e92f20c759ff9-3cd603f3d004a94d-01" } }, { @@ -46,67 +49,71 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:24.5870349+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:17.6182752+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0ba50f52b265e34e8915e74cad24e56f-301b71a777cb9f4c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528547508083", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695924409412", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528547508083. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695924409412. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9a97ee62ecd9e04a8d9a74283d33d255-1ec58a3160ea9048-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528547508083", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695924409412", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528547508083\",\"$etag\":\"W/\\\"1bc6c706-e394-41e9-a419-a98392afdda3\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:24.6733500Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:24.6733500Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506695924409412\",\"$etag\":\"W/\\\"ee64ba37-fc6c-4603-94f6-2ea8797384a7\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:17.7351891Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:17.7351891Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "etag": "W/\"1bc6c706-e394-41e9-a419-a98392afdda3\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "etag": "W/\"ee64ba37-fc6c-4603-94f6-2ea8797384a7\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-14ebe8de9c2547429d028c26221aac7d-da5b887dd5d2b349-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528547508083", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695924409412", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":69,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528547508083\",\"$etag\":\"W/\\\"c0505484-ceb4-4722-82c8-e7d041a75588\\\"\",\"AverageTemperature\":69,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:24.7258153Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:24.7258153Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506695924409412\",\"$etag\":\"W/\\\"d2f18fe1-9b12-4b23-8e4d-0a5a4eaf3a75\\\"\",\"AverageTemperature\":69,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:17.7885212Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:17.7885212Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "etag": "W/\"c0505484-ceb4-4722-82c8-e7d041a75588\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "etag": "W/\"d2f18fe1-9b12-4b23-8e4d-0a5a4eaf3a75\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-757f220e1a8dad4f96a5c17ece29438e-1c25b13ab8d51140-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528547508083", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695924409412", "query": { "api-version": "2020-10-31" }, @@ -115,8 +122,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3fd9300e66139641ba283a212526cc90-f39625c682780f49-01" } }, { @@ -130,16 +138,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-00c02f266bef15458464b2d6e4b44a13-971ff80169030643-01" } } ], "uniqueTestInfo": { "uniqueName": { - "upsert-simple-digitaltwin": "digitalTwin161015528547508083" + "upsert-simple-digitaltwin": "digitalTwin162506695924409412" }, "newDate": {} }, - "hash": "00c5ee0e1c1e00dd2858e4ff2b0b7040" + "hash": "b4af2e816525fe20db72207d99944a9c" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.json index cffa3842dbe5..499ae0161152 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", + "date": "Wed, 30 Jun 2021 15:29:21 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "c151beef-47a5-423e-830e-3faa635b9100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c00959a3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-298e424194d3964ebec0232bf9319e70-3b847b9020a68942-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:28.7093438+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:22.0911842+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-433e2526bd4ca043838418e0a193ad37-c7f42b7dc036a944-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528965106181", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696375809409", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528965106181. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696375809409. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-eaba5d1bd6bd02489e76aca40f1ed19f-00e427d2db543444-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528965106181", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696375809409", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528965106181\",\"$etag\":\"W/\\\"3e568485-53d5-4b87-8269-8f6efbbe6f16\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:28.8012141Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696375809409\",\"$etag\":\"W/\\\"e776ad4e-51e5-4651-b6a9-c36393695fd2\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:22.1858392Z\"}}}", "responseHeaders": { "content-length": "244", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"3e568485-53d5-4b87-8269-8f6efbbe6f16\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "etag": "W/\"e776ad4e-51e5-4651-b6a9-c36393695fd2\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2ea38313d2223a419054b9139d1e882b-4c87a20f1f2ed34e-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528965106181", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696375809409", "query": { "api-version": "2020-10-31" }, @@ -98,31 +104,33 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"81964060-7566-465a-b288-90a528792fc0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "etag": "W/\"b44cd0eb-c5fb-4c52-a258-0ef10f3af57d\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5a5e5abb0fbb784f8a548bcc0cd22fb8-5cd53561ff00f04b-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528965106181", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696375809409", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528965106181\",\"$etag\":\"W/\\\"81964060-7566-465a-b288-90a528792fc0\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:28.8012141Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:28.8544841Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696375809409\",\"$etag\":\"W/\\\"b44cd0eb-c5fb-4c52-a258-0ef10f3af57d\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:22.1858392Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:22.2372172Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"81964060-7566-465a-b288-90a528792fc0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "etag": "W/\"b44cd0eb-c5fb-4c52-a258-0ef10f3af57d\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-55ade24809ceed4c996617dc51c5e3f0-9c43717795fa2a4c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528965106181", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696375809409", "query": { "api-version": "2020-10-31" }, @@ -131,8 +139,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0a05ed89a11e484fb8a7b4c71805e060-7c3154a7de770c47-01" } }, { @@ -146,16 +155,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6d39c6293b4c22418796d87cade00d25-ca88c65a4e82d54b-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-add": "digitalTwin161015528965106181" + "update-digitaltwin-add": "digitalTwin162506696375809409" }, "newDate": {} }, - "hash": "bdc9328dfda18763ad13bf2024a806c3" + "hash": "31b576ea41c99adc6ef0f8eb68a8b23b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.json index 6a7ee86b744a..d2e0c1b65d1a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, - "response": "{\"token_type\":\"Bearer\",\"expires_in\":86398,\"ext_expires_in\":86398,\"access_token\":\"access_token\"}", + "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", + "date": "Wed, 30 Jun 2021 15:29:22 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-37596b839000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "77ec49a3-73cc-4e5e-841b-17129ce18b01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c0726ffc7438fc478f9d11c151a4cf2c-006ce62692f9a245-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:30.1156488+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:23.4895889+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6772c605581b3a4cbd3168cc7c436735-e9bcfff26a25204d-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529098708194", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696505605782", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529098708194. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696505605782. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fcce883ee342e44890938ffdd0294d9d-ef8c3e3ad646b84f-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529098708194", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696505605782", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529098708194\",\"$etag\":\"W/\\\"4172cdaf-9a6f-4009-a64e-202eb79a84e5\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:30.2276331Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696505605782\",\"$etag\":\"W/\\\"f9c2c115-e723-4e16-a32f-83c81e075cd2\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:23.5882137Z\"}}}", "responseHeaders": { "content-length": "244", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "etag": "W/\"4172cdaf-9a6f-4009-a64e-202eb79a84e5\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "etag": "W/\"f9c2c115-e723-4e16-a32f-83c81e075cd2\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0c3187895b31714f90b1af7587c8b375-2e6739ea145c1740-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529098708194", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696505605782", "query": { "api-version": "2020-10-31" }, @@ -98,31 +104,33 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "etag": "W/\"7ca90cb2-5ce9-485b-88fa-21fd3d32c0fe\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "etag": "W/\"cfb448a1-08b7-451f-afef-7697ab236a05\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ed124296e838674881a96353751dc4f1-974bfaa0aa225047-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529098708194", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696505605782", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529098708194\",\"$etag\":\"W/\\\"7ca90cb2-5ce9-485b-88fa-21fd3d32c0fe\\\"\",\"AverageTemperature\":42,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:30.2779125Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696505605782\",\"$etag\":\"W/\\\"cfb448a1-08b7-451f-afef-7697ab236a05\\\"\",\"AverageTemperature\":42,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:23.6370812Z\"}}}", "responseHeaders": { "content-length": "244", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "etag": "W/\"7ca90cb2-5ce9-485b-88fa-21fd3d32c0fe\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "etag": "W/\"cfb448a1-08b7-451f-afef-7697ab236a05\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-44d97e7c47b8984386233c66b27ab97b-82688406a6e94f47-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529098708194", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696505605782", "query": { "api-version": "2020-10-31" }, @@ -131,8 +139,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7736c65805016747aa862000afeebd2f-c5c3f18012f76d45-01" } }, { @@ -146,16 +155,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c4a9aeeadab40045b88e6ede81b2ba36-b4caf56692e93240-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-conditionally-if-present": "digitalTwin161015529098708194" + "update-digitaltwin-conditionally-if-present": "digitalTwin162506696505605782" }, "newDate": {} }, - "hash": "16d3c043e02228ee95e6929e4ff934da" + "hash": "1e2dd07c1035076e781858225297d0c0" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.json index c84607a400aa..0fd469107700 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", + "date": "Wed, 30 Jun 2021 15:29:23 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-37597b839000" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "e390ab33-5487-4c28-af8f-5d77ec905901" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b8b459382ef0ec4aa3f544ab63c63c03-efdaeb3258ce6e40-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:30.5936194+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:23.9409172+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a5ff9f91694df54f861c98fd5db4a3d3-f849e69eececa24f-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529147500779", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696556909914", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529147500779. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696556909914. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3e15200af0a29c40bec2c3413bf0b420-1249ab348cca064d-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529147500779", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696556909914", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529147500779\",\"$etag\":\"W/\\\"a5b75e20-2393-4bde-b240-89b4f0b461c2\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:30.6765271Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:30.6765271Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696556909914\",\"$etag\":\"W/\\\"271a82bc-8eb4-42b1-a6d6-6de90df103a9\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:24.0375668Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:24.0375668Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "etag": "W/\"a5b75e20-2393-4bde-b240-89b4f0b461c2\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "etag": "W/\"271a82bc-8eb4-42b1-a6d6-6de90df103a9\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1f31e082e1d2c04ba88607040961ad79-01a06baa26298046-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529147500779", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696556909914", "query": { "api-version": "2020-10-31" }, @@ -99,13 +105,14 @@ "responseHeaders": { "content-length": "129", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3e7ccfd3e28ccd40a07749c5059d97fd-77047d938f431341-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529147500779", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696556909914", "query": { "api-version": "2020-10-31" }, @@ -114,8 +121,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1f7c55e3385c70499ccc8d80da0e84c5-a209a490d8dbc143-01" } }, { @@ -129,16 +137,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6a4aaec7bb2fb449b0f0a9e9a26e048e-0e7eba23c26de04d-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-invalid-conditions": "digitalTwin161015529147500779" + "update-digitaltwin-invalid-conditions": "digitalTwin162506696556909914" }, "newDate": {} }, - "hash": "971682cf2f4a92f077ee3d8eda719365" + "hash": "16185325adadef84cc9d3676bb073a2b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.json index ff4a8c42f1af..b8bf0c5ecd68 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", + "date": "Wed, 30 Jun 2021 15:29:22 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-375958839000" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "e390ab33-5487-4c28-af8f-5d77c4905901" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-952feb0f030859499b453f6ad3283ed1-cb733cb24739a144-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:29.7196532+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:23.0031262+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0e87220cd22a9a4e8cbac4bd4a296532-96083e2bb6350c40-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529059009958", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696463506528", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529059009958. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696463506528. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-755398d53b92ff4ab9d7ab8a7d5c4ae5-aa14ba9278d66446-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529059009958", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696463506528", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529059009958\",\"$etag\":\"W/\\\"81b11a61-ae84-4b3f-8b5f-3e3f51dbe1a5\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:29.7934550Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696463506528\",\"$etag\":\"W/\\\"2d1ce638-2332-4a7d-9c4e-c689bc56f5fb\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:23.0946142Z\"}}}", "responseHeaders": { "content-length": "244", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "etag": "W/\"81b11a61-ae84-4b3f-8b5f-3e3f51dbe1a5\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "etag": "W/\"2d1ce638-2332-4a7d-9c4e-c689bc56f5fb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dae0b83dfc977a479503ad0178bec2c1-9b4d7a9447ca9d49-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529059009958", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696463506528", "query": { "api-version": "2020-10-31" }, @@ -99,13 +105,14 @@ "responseHeaders": { "content-length": "195", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-eb0bade8c9fcee40912b99624f038a5a-00a2d0372d1d4447-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529059009958", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696463506528", "query": { "api-version": "2020-10-31" }, @@ -114,8 +121,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-176675f1689fbc49a8dd2aeb4144e6ba-09d89915096f1341-01" } }, { @@ -129,16 +137,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6db6ea74f8d66445bfbaadb0520b485c-0aa00ff80710974d-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-invalid-patch": "digitalTwin161015529059009958" + "update-digitaltwin-invalid-patch": "digitalTwin162506696463506528" }, "newDate": {} }, - "hash": "8a70ec0184947d3bd3f7cebf50b238d0" + "hash": "70bec57a0e58caaa676beca586c95fb3" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.json index d0ac76a8a4ec..ed6b472ecea1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", + "date": "Wed, 30 Jun 2021 15:29:21 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-37593d839000" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "e390ab33-5487-4c28-af8f-5d77b2905901" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1905f4d0e51fb340ad7a68f02d6cbf7a-4ac2dfb9bd32744e-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:29.265642+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:22.5393482+00:00\"}]", "responseHeaders": { - "content-length": "160", + "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a95fd58c0cae604db4ded9b54bfc73bc-e8f2ed57750e954b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529009606638", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696416708869", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529009606638. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696416708869. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fc2104d05949f5468bd069338a8dbbf5-5bbd200f3635334b-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529009606638", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696416708869", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529009606638\",\"$etag\":\"W/\\\"7de778dc-e459-45f4-8233-10b3c437013e\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:29.3586615Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696416708869\",\"$etag\":\"W/\\\"42049362-e919-480b-9b8d-80bf00d79f40\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:22.6515640Z\"}}}", "responseHeaders": { "content-length": "244", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"7de778dc-e459-45f4-8233-10b3c437013e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "etag": "W/\"42049362-e919-480b-9b8d-80bf00d79f40\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-20de900772167845bd476ffb776256b0-e39ae8e3db350540-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529009606638", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696416708869", "query": { "api-version": "2020-10-31" }, @@ -98,31 +104,33 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"a6d9629f-8b63-4d7a-93c5-73bec4eb6156\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "etag": "W/\"50e84ff1-3b1b-4d05-9b30-aa8a44bbfc42\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ae6b3ba554e0154eaa40bd04bacc925b-d593659b531d7b48-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529009606638", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696416708869", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015529009606638\",\"$etag\":\"W/\\\"a6d9629f-8b63-4d7a-93c5-73bec4eb6156\\\"\",\"AverageTemperature\":42,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:29.3981445Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:29.3981445Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696416708869\",\"$etag\":\"W/\\\"50e84ff1-3b1b-4d05-9b30-aa8a44bbfc42\\\"\",\"AverageTemperature\":42,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:22.7015784Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:22.7015784Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"a6d9629f-8b63-4d7a-93c5-73bec4eb6156\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "etag": "W/\"50e84ff1-3b1b-4d05-9b30-aa8a44bbfc42\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-76d1827c287b4d40a23ab738e1dd11bb-415857485085024f-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529009606638", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696416708869", "query": { "api-version": "2020-10-31" }, @@ -131,8 +139,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9f801bdf95228645af808038613634c1-5df966687c17494b-01" } }, { @@ -146,16 +155,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:29 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:22 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0e4dc77b17d6de499670dbc93177f973-de290b638792bc48-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-multiple": "digitalTwin161015529009606638" + "update-digitaltwin-multiple": "digitalTwin162506696416708869" }, "newDate": {} }, - "hash": "7cf9764657ab21ccea56d537eb89240d" + "hash": "8fed4c858e959854ffe8b2e72f466d4b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.json index af28c06b46b4..31c308172b58 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", + "date": "Wed, 30 Jun 2021 15:29:23 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fecc069000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "6614c87c-7b25-4e3b-be59-8c4664068e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e7cf51f1e67d8841bd330f9b81075095-eb9ceeef2348d746-01" } }, { @@ -46,60 +49,64 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:30.9793678+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:24.4652421+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4fa3bf4a66273245bdce124da9845a05-e3f956fd4ce4e046-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529185602070", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696597109595", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529185602070. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696597109595. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:23 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1ff552378cbb184db38824cdc3abe4d1-3ed715ddb7606843-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529185602070", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696597109595", "query": { "api-version": "2020-10-31" }, "requestBody": "[{\"op\":\"replace\",\"path\":\"/AverageTemperature\",\"value\":42}]", "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529185602070. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696597109595. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7b8035285a26bf47a486ab55ef615b48-f9bf4ca43025c749-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015529185602070", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696597109595", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015529185602070. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696597109595. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-67bf6ed53a94144c818c68aa4b84a55f-806a7f40adf4174c-01" } }, { @@ -113,16 +120,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:30 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:24 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-67ca9cf8cb1f0d42bf4ad7429215ff60-3eb7f06f58aaf447-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-not-existing": "digitalTwin161015529185602070" + "update-digitaltwin-not-existing": "digitalTwin162506696597109595" }, "newDate": {} }, - "hash": "e46554e1f9818b86671eec44f3142de9" + "hash": "0016b1c5820493ce6f99df5ac0f4a5ee" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.json index 2ad6b502f953..fee990bf57ce 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", + "date": "Wed, 30 Jun 2021 15:29:20 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "61feddcd-31a3-43e4-b506-16ed20119400" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae5622d7701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6fa2bd97fc23fe41bef6927f676f2fdb-9f83b94b74012746-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:28.2063664+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:21.6641535+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-230b68a224d3554aa447385efa23b975-531d3d0bfdd30744-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528897107081", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696328808712", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528897107081. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696328808712. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-864c6c53e66e194b9429b322504e5d5e-6393930faa808145-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528897107081", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696328808712", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528897107081\",\"$etag\":\"W/\\\"ecdd55ba-639c-403c-a585-eb008acfd91e\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:28.3907106Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:28.3907106Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696328808712\",\"$etag\":\"W/\\\"93434a67-60b6-41e4-99cc-452940ce754b\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.7562593Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.7562593Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "etag": "W/\"ecdd55ba-639c-403c-a585-eb008acfd91e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "etag": "W/\"93434a67-60b6-41e4-99cc-452940ce754b\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3ed7503d51e39d4999d402fa6739fd0b-94bd39a4d7d44f47-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528897107081", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696328808712", "query": { "api-version": "2020-10-31" }, @@ -98,31 +104,33 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "etag": "W/\"0c7e67dc-1e48-4181-91d9-5cde48dcc7c0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "etag": "W/\"478607f9-d202-47ac-a832-b3c0ce18b629\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5ef767f0374ef74b91a601a9f7a8d466-213301ad65fbce4d-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528897107081", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696328808712", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528897107081\",\"$etag\":\"W/\\\"0c7e67dc-1e48-4181-91d9-5cde48dcc7c0\\\"\",\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:28.3907106Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696328808712\",\"$etag\":\"W/\\\"478607f9-d202-47ac-a832-b3c0ce18b629\\\"\",\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.7562593Z\"}}}", "responseHeaders": { "content-length": "245", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "etag": "W/\"0c7e67dc-1e48-4181-91d9-5cde48dcc7c0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "etag": "W/\"478607f9-d202-47ac-a832-b3c0ce18b629\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d18e68f813667649b63639d7179c0cd5-3a63217f65465b4c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528897107081", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696328808712", "query": { "api-version": "2020-10-31" }, @@ -131,8 +139,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e71f75af39909e4aaed8874b05f6ac1c-7b568a71703ca943-01" } }, { @@ -146,16 +155,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:28 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-75573a5b9f4ae848b21e6da3594b24e9-5ff5ff5dd1ee4f46-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-remove": "digitalTwin161015528897107081" + "update-digitaltwin-remove": "digitalTwin162506696328808712" }, "newDate": {} }, - "hash": "9acdf44362ec7ecbf5080caa897c2876" + "hash": "d420881d71a1cb89af4e1817b13f1ead" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.json index cf0a9f6bb43a..f09a89e28324 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", + "date": "Wed, 30 Jun 2021 15:29:20 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "4e093115-f836-4aa9-bc72-585967c69400" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae53c2d7701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f249781f8435c64b87cdd5e3b6e1918b-6e35a121e19f404c-01" } }, { @@ -46,50 +49,53 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:27.6725114+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:21.1595789+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-97fd616f28238545800a966c00c2090e-2cd36c7ffe87d04b-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528860404641", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696279005049", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528860404641. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506696279005049. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e1c30ce29714194c9e4b23670c37dae3-e6c2c5c958632e45-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528860404641", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696279005049", "query": { "api-version": "2020-10-31" }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\"},\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\"}", "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528860404641\",\"$etag\":\"W/\\\"e67d61fc-cebf-4d32-a8c8-06767ea9b08b\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:27.7456489Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:27.7456489Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696279005049\",\"$etag\":\"W/\\\"34bcee68-40f7-49df-a417-7452ff38642b\\\"\",\"AverageTemperature\":68,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.2700890Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.2700890Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "etag": "W/\"e67d61fc-cebf-4d32-a8c8-06767ea9b08b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "etag": "W/\"34bcee68-40f7-49df-a417-7452ff38642b\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-20c085eff418b944a7c86ece5de222af-9765ae04f1176a4d-01" } }, { "method": "PATCH", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528860404641", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696279005049", "query": { "api-version": "2020-10-31" }, @@ -98,31 +104,33 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "etag": "W/\"c83795cf-f735-42eb-a2a9-1b637c18ad92\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "etag": "W/\"f3992599-a777-4714-9507-60e56a063f76\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9a4fe0371ef1334f8ae1014ec6213583-e7c1cf49ba59c346-01" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528860404641", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696279005049", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"digitalTwin161015528860404641\",\"$etag\":\"W/\\\"c83795cf-f735-42eb-a2a9-1b637c18ad92\\\"\",\"AverageTemperature\":42,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:27.7854022Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-01-09T01:21:27.7456489Z\"}}}", + "response": "{\"$dtId\":\"digitalTwin162506696279005049\",\"$etag\":\"W/\\\"f3992599-a777-4714-9507-60e56a063f76\\\"\",\"AverageTemperature\":42,\"TemperatureUnit\":\"Celsius\",\"$metadata\":{\"$model\":\"dtmi:samples:DTTestBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.3460525Z\"},\"TemperatureUnit\":{\"lastUpdateTime\":\"2021-06-30T15:29:21.2700890Z\"}}}", "responseHeaders": { "content-length": "340", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "etag": "W/\"c83795cf-f735-42eb-a2a9-1b637c18ad92\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:20 GMT", + "etag": "W/\"f3992599-a777-4714-9507-60e56a063f76\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7b09d42ff762fd458c23e8414e3098de-37a26728452e3f45-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528860404641", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506696279005049", "query": { "api-version": "2020-10-31" }, @@ -131,8 +139,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5329a3dcb4c6a84a950055c4f4bd6343-6e03593aad40d14b-01" } }, { @@ -146,16 +155,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:27 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:21 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5bc92a715d3c374ab075a785851b0512-39daf04c78c8834d-01" } } ], "uniqueTestInfo": { "uniqueName": { - "update-digitaltwin-replace": "digitalTwin161015528860404641" + "update-digitaltwin-replace": "digitalTwin162506696279005049" }, "newDate": {} }, - "hash": "9f6b3d96e1a6198f51a07f604597f0e9" + "hash": "2699ebd73d536c371761ab68b7b8a475" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.json index bfd43d086866..00dd2d87c099 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", + "date": "Wed, 30 Jun 2021 15:29:17 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "8b1947ee-c6a8-4b20-9e6a-ff00ef248a00" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b2711e133101" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "214", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e79b018ef3678043b30a9c9b22f33ea9-33c00e0f55537549-01" } }, { @@ -46,33 +49,35 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTTestBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"TemperatureUnit\",\"schema\":\"string\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:25.0032053+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTTestBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:18.2451545+00:00\"}]", "responseHeaders": { "content-length": "161", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0829f2c307eef64fbb2ccf0074199a1a-5fc8c85d8fd9934c-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528589906253", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695981206140", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528589906253. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695981206140. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:17 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6542c2f4aa1ec948919f94ff58766211-cd793847e897b443-01" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528589906253", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695981206140", "query": { "api-version": "2020-10-31" }, @@ -82,24 +87,26 @@ "responseHeaders": { "content-length": "119", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f0555c6f1a4b994aaccbb00fc139c5c5-10eed2c3d3bd2840-01" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin161015528589906253", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/digitaltwins/digitalTwin162506695981206140", "query": { "api-version": "2020-10-31" }, "requestBody": null, "status": 404, - "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin161015528589906253. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", + "response": "{\"error\":{\"code\":\"DigitalTwinNotFound\",\"message\":\"There is no digital twin instance that exists with the ID digitalTwin162506695981206140. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query.\"}}", "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1575ce560988a94c8abb804db9aca4e7-aaac2104cf69c541-01" } }, { @@ -113,16 +120,17 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:24 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:18 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b0371259ad9ea145bce131a712c469d1-1e0e57345021ab46-01" } } ], "uniqueTestInfo": { "uniqueName": { - "upsert-digitaltwin-invalid-conditions": "digitalTwin161015528589906253" + "upsert-digitaltwin-invalid-conditions": "digitalTwin162506695981206140" }, "newDate": {} }, - "hash": "b91b36180096089fae012d7f2a8e1d46" + "hash": "c98191cd1a17d769557266b94430c14d" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.json index 43d884a2f92c..cdead1b5fae3 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:17 GMT", + "date": "Wed, 30 Jun 2021 15:29:04 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "cfcd0787-8769-464f-abe9-263a9d9c9200" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "89d8dfb5-10fa-47f0-b8a9-d132f9c52601" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8d420d7f0a48f84785af71f74c4c5739-ef511b35f351aa4d-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-07cbebd965d3ca46a01bf500740ff86e-7f58f3aa24c7e54d-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:18.1632299+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:18.1632563+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:06.1264492+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:06.126477+00:00\"}]", "responseHeaders": { - "content-length": "342", + "content-length": "341", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-745a0194b423084786042313d4ee0662-456e8691cf16624a-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2cc5e3b996fb434c8292befad28ae40a-b9d83d238872b54a-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"5317bab3-8759-41f5-b872-05565320a524\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:18.2469423Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:18.2469423Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"2bc08964-7377-440f-bdd1-58f92c109017\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:06.2233881Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:06.2233881Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "etag": "W/\"5317bab3-8759-41f5-b872-05565320a524\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "etag": "W/\"2bc08964-7377-440f-bdd1-58f92c109017\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7b741fa9f077af4cb8e6d33753f589c0-4f496a6c57565642-01" } }, { @@ -115,8 +122,9 @@ "responseHeaders": { "content-length": "245", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-919efcfed178154296d223e2bdc68369-d9b9731b7db6c441-01" } }, { @@ -130,8 +138,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-838a9c308dcc2d42b456d0a0aa56ec79-6435496e3854d848-01" } }, { @@ -145,8 +154,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-53d187b7d0734f4a872dc8de471b78df-a0602293ea7b4242-01" } }, { @@ -160,8 +170,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6d5adc43a05b7041a0b9367bac0c3789-ac102a78e758a542-01" } } ], @@ -169,5 +180,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "e096d36ad523b0231a7500ee9222d267" + "hash": "ea86d15210f54a5d776d80017433ed7b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.json index 0191a8efec50..37467feaa6eb 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", + "date": "Wed, 30 Jun 2021 15:29:05 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7febb6cc9100" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "c410173e-1b24-48d0-b926-c9951ccf7e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-898b70c291b36c49a635a1a692d34310-c5927a701396cc41-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f7f6b0db81b0564589f6d1aac2487d96-1ba1a076b449334a-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:18.6963431+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:18.6963858+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:06.7369907+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:06.7370177+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b60feb854632674496dc4c5b4e23b31b-31f227a2b024f642-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2135875e52e39b4ab01fd86cc02da9af-fd48fb0a7c1bbb49-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"4f0d03c8-85ab-4575-9d81-caabc832a97a\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:18.7615895Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:18.7615895Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"f2b54f88-e57f-42af-a633-f60d81e7b768\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:06.8501055Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:06.8501055Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "etag": "W/\"4f0d03c8-85ab-4575-9d81-caabc832a97a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "etag": "W/\"f2b54f88-e57f-42af-a633-f60d81e7b768\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3d9eea2f4c690c4e9cb9901b6af5aed5-bb7be450a923b840-01" } }, { @@ -111,13 +118,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:18.7615895Z\"}}}", + "response": "{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:06.8501055Z\"}}}", "responseHeaders": { "content-length": "108", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "etag": "W/\"4f0d03c8-85ab-4575-9d81-caabc832a97a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "etag": "W/\"f2b54f88-e57f-42af-a633-f60d81e7b768\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f4151778fd7111438300fb1057165b34-2853e558fc309b4d-01" } }, { @@ -131,8 +139,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:05 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4155e1ed6da7df4ca129488e719791de-fdf83b5cc918484b-01" } }, { @@ -146,8 +155,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8d30fe4231edb445a89ba9572a5b9943-35a85e8c49d2a84d-01" } }, { @@ -161,8 +171,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d3463df41004e345ab10f2cc540061ff-f7b79e2906d0cb48-01" } } ], @@ -170,5 +181,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "24c0c17f4a3df05f1957b55c385abbbe" + "hash": "8ba31502d82b45db0eee83f1088a47f6" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.json index babedde0912c..95e75211767d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.json @@ -4,5 +4,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "5080bdd5d7e811a919802a1bc990f9b8" + "hash": "1694f03f99148d2b97c9a51505585877" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.json index f89f69df9272..1705fe8f7608 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.json @@ -4,5 +4,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "a1600255ec1567979de58a37555a6c87" + "hash": "34df057b384f6e69b1acbffd093a29e5" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.json index 67aa1d0dedf2..afecc2db6877 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.json @@ -4,5 +4,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "9aee78346002479b9c3f19e736f9cb23" + "hash": "ebe31f9135d4f488569ef28c7271bf74" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.json index bbb1e234b2be..32bec346f191 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", + "date": "Wed, 30 Jun 2021 15:29:07 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-3759ab819000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "5942818c-6aff-4466-990a-c8d64fc88801" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-834972119933df4f93802806359eeac7-846ea7ad54f16b4b-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-bbe90b39f310f44bb299ba23c0d86b52-a8b12ce928d5494b-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:20.2603792+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:20.2604056+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:08.5190301+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:08.5190571+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2811a1eb82dcb741b4dc92aa03bdf678-eb7a30acd57fcc43-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d0603924169b9a468883274400d49471-b3af46f9af3dce4e-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"9492a747-789f-4d09-be25-688436441dab\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:20.3424683Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:20.3424683Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"0b2ec9ec-4f61-472f-a45e-5d82dcceb30c\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:08.6116520Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:08.6116520Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"9492a747-789f-4d09-be25-688436441dab\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "etag": "W/\"0b2ec9ec-4f61-472f-a45e-5d82dcceb30c\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5b186b39fba5e84b8effa08916ec6caf-a7d6b03bd2e74d4c-01" } }, { @@ -114,9 +121,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"b71bc8f8-c2ab-4c0b-8247-8644c40eb19f\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "etag": "W/\"d02d7640-1f82-43e0-b113-a216e923543f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2349e5c545fc4a4fa56e4e06508dd90e-d3ab4c053d491544-01" } }, { @@ -127,13 +135,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"ComponentProp1\":\"5\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:20.3997067Z\"}}}", + "response": "{\"ComponentProp1\":\"5\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:08.6619101Z\"}}}", "responseHeaders": { "content-length": "103", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"b71bc8f8-c2ab-4c0b-8247-8644c40eb19f\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "etag": "W/\"d02d7640-1f82-43e0-b113-a216e923543f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-36a5480c302ca54086b74d499ac4f651-f2e4c28014aa0e41-01" } }, { @@ -147,8 +156,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6f8c2ada0d152f48a8428f155b06db78-c283fc7fae27d944-01" } }, { @@ -162,8 +172,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-209fb5fc679cea4b827af6d098af5a3e-277db960aa173447-01" } }, { @@ -177,8 +188,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7f14595e62a95549be1372569b3ed7f5-8d60a1b20b5a074d-01" } } ], @@ -186,5 +198,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "0bb4870d0cda738e70c5139b46a238e8" + "hash": "efbb24a60a73621ce3f227345cc1e8aa" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.json index fcbeee74d1df..59974dee4eed 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", + "date": "Wed, 30 Jun 2021 15:29:13 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "c151beef-47a5-423e-830e-3faafb599100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "098d5bc0-be03-46ae-83af-550982543301" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-154662eaa77fae4e9b295a3e7ccc7dbc-e350c4a08ebee74d-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-78d31569faf90041bf62fa904783a8d9-c22339f1801ec143-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:21.7312559+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:21.7312839+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:14.7461873+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:14.7462173+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e6e14edeb0ed0646b2f3d883d8f1be71-5b97bd5424d60841-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-365323421a0c184dab3ca29cee6ae8d1-d2370c56ac487f49-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"9797f666-bd4b-40f3-81fb-a36447a65b8e\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.7993681Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.7993681Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"ebb5fe03-c4fe-4e99-a1c8-08ba005156f5\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.8326526Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.8326526Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "etag": "W/\"9797f666-bd4b-40f3-81fb-a36447a65b8e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "etag": "W/\"ebb5fe03-c4fe-4e99-a1c8-08ba005156f5\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7c3a3ca5c057064d914e94deb76975b4-1bd3c11431ad8849-01" } }, { @@ -111,13 +118,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"9797f666-bd4b-40f3-81fb-a36447a65b8e\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.7993681Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.7993681Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"ebb5fe03-c4fe-4e99-a1c8-08ba005156f5\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.8326526Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.8326526Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "etag": "W/\"9797f666-bd4b-40f3-81fb-a36447a65b8e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "etag": "W/\"ebb5fe03-c4fe-4e99-a1c8-08ba005156f5\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-bb0bfd0d807d6448b2bcaeffe62d5112-c3e7eaf28b434049-01" } }, { @@ -131,9 +139,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "etag": "W/\"4764fbc0-c490-469d-84e2-ada7a1f47b7a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "etag": "W/\"d8a1d49c-dffc-4005-a3ed-df1350d2d179\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7fd08c3cdfb4954eaeec4a95d150d9f5-9007e23177b9e94b-01" } }, { @@ -144,13 +153,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"ComponentProp1\":\"value2\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.9259038Z\"}}}", + "response": "{\"ComponentProp1\":\"value2\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.9261361Z\"}}}", "responseHeaders": { "content-length": "108", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "etag": "W/\"4764fbc0-c490-469d-84e2-ada7a1f47b7a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "etag": "W/\"d8a1d49c-dffc-4005-a3ed-df1350d2d179\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8ec6ef22eece824089465fd62b68a69b-340cefb455c2a44c-01" } }, { @@ -164,8 +174,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fd71eabad629cb4196893777008e7f56-c1a2550db9701949-01" } }, { @@ -179,8 +190,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1ba1c2bc5f6f8048962aa68f9b2dc328-463755a53e11a04a-01" } }, { @@ -194,8 +206,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6f253b2e0427eb4898da9a2d94a9ee07-37e5e0106ed5a048-01" } } ], @@ -203,5 +216,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "cb1c3ade2b9e0b5f487edcff183f4c24" + "hash": "8d208c760aa67bfb89cf18c380c4c39d" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.json index 8cda1637155f..d23e24da82d5 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", + "date": "Wed, 30 Jun 2021 15:29:14 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "b303fb60-9b87-4660-abd8-170c169b8b00" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c0066993d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-48603294cf613b4689b0c2baf41fcaee-9db8b515af60714e-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1697de97514cdf4ba4e1c76b38283344-ae63f4d231785f44-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:22.3525832+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:22.3526094+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:15.2889123+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:15.288939+00:00\"}]", "responseHeaders": { - "content-length": "342", + "content-length": "341", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2cb9a9361dd5104aa36489e3798a74dc-c6b9f7fafdcc794b-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-37d46eef67e49c46ae77f2244ec4ef7d-4a43a7805aa55b4a-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"bafd226c-524b-41d9-ac8d-ddb445de71f6\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:22.4207271Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:22.4207271Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"dfa6433a-464f-4e45-aec6-76844d5e02fe\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:15.3803338Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:15.3803338Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "etag": "W/\"bafd226c-524b-41d9-ac8d-ddb445de71f6\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "etag": "W/\"dfa6433a-464f-4e45-aec6-76844d5e02fe\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-75cf00e56cfa5e45a9bd430dcc8ecd55-9b0cb45a4a6c314f-01" } }, { @@ -115,8 +122,9 @@ "responseHeaders": { "content-length": "129", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-62680528d4556643ada05d9ec57aeaa0-bbe4ebb01b354548-01" } }, { @@ -130,8 +138,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-450a9570a45e954f954801716b2da5b0-12b29445166c004e-01" } }, { @@ -145,8 +154,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a48fdb51782bfb44a00b7ef055a38c5f-be54bfb85473dc49-01" } }, { @@ -160,8 +170,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e7aeb42f2773a9479f356542c2519290-07c14374c1252542-01" } } ], @@ -169,5 +180,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "c3042389457ddd66b3ef456b838c02b8" + "hash": "7e88e381ce1b85eef584953d0b7c7335" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.json index 4eece5b0c5d1..e9e08c2fe939 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", + "date": "Wed, 30 Jun 2021 15:29:11 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7feb39cd9100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "9821cc30-0568-44b2-9e6e-1878dfce1d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e5e130e65f9ea54d8cbe65e0a9277cb2-44cf65cbd90b9443-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-01e0fdf91bde234ba82fa9284bd1954f-22e91ebce3fd3240-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:21.3313976+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:21.3314518+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:14.2637799+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:14.2638057+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a6496f7e6e184945bdf81a2808692994-101d239e44098e4b-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5a1259f96666924c96448c532c055328-84f2948eee407b44-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"a632c912-4825-4e39-ab68-f25495685201\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.4134596Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:21.4134596Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"e9e8223b-4291-47ca-9481-e5de9ccf8b86\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.3549553Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:14.3549553Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "etag": "W/\"a632c912-4825-4e39-ab68-f25495685201\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "etag": "W/\"e9e8223b-4291-47ca-9481-e5de9ccf8b86\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-21a884a9cdf5794ebfb8645656dfa4cd-95fb023bdcbd6b47-01" } }, { @@ -115,8 +122,9 @@ "responseHeaders": { "content-length": "195", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dac6c41ee5ee3d4e9bb7dee5115aca17-33bf0dfea253b047-01" } }, { @@ -130,8 +138,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fce88f0996458f46a8e325adfa382388-9fdc5509d9e08747-01" } }, { @@ -145,8 +154,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-068ee35da63bb14298b68fb7bbe5b0f3-d7a6f4bb7cf62d45-01" } }, { @@ -160,8 +170,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:21 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:14 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5e80d15a0fc2504d8dfa9c0a04d32739-83273a031391a74f-01" } } ], @@ -169,5 +180,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "3fcd31581694b5a7eda33cb02f36506e" + "hash": "1eafdd2075935ae9ecae888ac9dc12a3" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.json index 3f19d8846804..2ef346095c7f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", + "date": "Wed, 30 Jun 2021 15:29:10 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7feb21cd9100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c00b3983d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7ca01cfa10d9ea49a40ef484047adad4-cf0a4ad5b724a64f-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-29e36445566e08458cfeea31883a951d-18cd68fbaa562b4a-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:20.7831624+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:20.7831901+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:11.3423425+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:11.3423713+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cae6cef18657624bac00c92e5ef1f503-2c35dc92a6dbf746-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0856f5ac565d5b41a75c60564314c568-719be028f7443b4c-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"97b8df33-6e2f-4fd2-9a25-d5bf4258bb58\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:20.8723559Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:20.8723559Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"83f7fad3-b879-4aa8-a3ac-7d86a3797e44\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:11.4350477Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:11.4350477Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"97b8df33-6e2f-4fd2-9a25-d5bf4258bb58\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "etag": "W/\"83f7fad3-b879-4aa8-a3ac-7d86a3797e44\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8c29dddd2a535b418da8ecb6757ef605-2acadd545e2bd344-01" } }, { @@ -114,9 +121,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"fdddc631-f98d-4f04-853b-21bdb18bfa96\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "etag": "W/\"cdf9a370-59c5-4b50-821e-cf224b161bdb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-214ea81b214d2f40a79bc16984990dbf-6d57a4d8ecb72546-01" } }, { @@ -131,9 +139,10 @@ "responseHeaders": { "content-length": "16", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"fdddc631-f98d-4f04-853b-21bdb18bfa96\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "etag": "W/\"cdf9a370-59c5-4b50-821e-cf224b161bdb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4c3d051e2494e7418ce395983766392b-1b1e7fbbfae64f4b-01" } }, { @@ -144,13 +153,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"fdddc631-f98d-4f04-853b-21bdb18bfa96\\\"\",\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:20.8723559Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"cdf9a370-59c5-4b50-821e-cf224b161bdb\\\"\",\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:11.4350477Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "etag": "W/\"fdddc631-f98d-4f04-853b-21bdb18bfa96\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "etag": "W/\"cdf9a370-59c5-4b50-821e-cf224b161bdb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-825cb9a082b9684291214cfb41de2a86-706a5120a3b13740-01" } }, { @@ -164,8 +174,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b40f9c048661dc4cb3f97e88fa4d854f-bdb994e69eff3043-01" } }, { @@ -179,8 +190,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f619777b1c3cc3448a966650c1124caf-a34ac42231fb9e40-01" } }, { @@ -194,8 +206,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:20 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:11 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-43b5e882fa0f86408bc7770224a2a272-593bd13e0a18704b-01" } } ], @@ -203,5 +216,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "1c675473298206363139bd5057947bee" + "hash": "ae48d65db306d705693a4c8bec7fdc86" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.json index fe824e4b3dc7..cd8c3605a9a1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", + "date": "Wed, 30 Jun 2021 15:29:15 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "8b1947ee-c6a8-4b20-9e6a-ff008d248a00" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "b223425b-649f-4ade-ab87-791f5ed56c01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ca8a777a7fd1384ab2b08331a27c1295-b3494748a2209f43-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5417be8cc5805644ac4cc1fedc803e5b-246ecaa491bedb43-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:22.7875966+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:22.7876584+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:15.8590466+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:15.8590926+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-935fd76c365b7249902269723991ceba-2d861cea0283604c-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1374d9163de8234383d4767fc5eba1d1-82640d55a581224d-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"46cf4746-b0e4-4006-a07f-ebeea20a1632\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:22.8566619Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:22.8566619Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"7daf2119-6487-410d-b3e8-758b6f0d4dfe\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:15.9504417Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:15.9504417Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "etag": "W/\"46cf4746-b0e4-4006-a07f-ebeea20a1632\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "etag": "W/\"7daf2119-6487-410d-b3e8-758b6f0d4dfe\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2b6ed19592e5574cbe4585bd4a2b6daf-3a5f89c8d5bda34a-01" } }, { @@ -115,8 +122,9 @@ "responseHeaders": { "content-length": "213", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-30814b70e95c6142953b2200aba5f665-e43992264805cd4d-01" } }, { @@ -130,8 +138,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-313ccaf46f6f7543994b337073a1f514-23fb323990372e41-01" } }, { @@ -145,8 +154,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a324e7e89e4707438a87e3e50ab218c7-2cecb40361cac345-01" } }, { @@ -160,8 +170,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:22 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:15 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-409364f27190aa49a992f13bf74d90e3-fb3b7b788bccd54e-01" } } ], @@ -169,5 +180,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "d017b969ae70eb9d2e06bca46cd10549" + "hash": "9c1fc9169a9d5adcd3c39831573d684b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.json index 8841ea1fcb59..e0fc7c884576 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", + "date": "Wed, 30 Jun 2021 15:29:07 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7febe6cc9100" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae5a3297701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f45a411b966f4f4e8f94d97abcd3af8c-8a3b7320ee72b741-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5ab202e3de6a3e4198e5f35e3cb4938f-d63544b64fecbc48-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:19.6745632+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:19.6746063+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:07.8756743+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:07.8757028+00:00\"}]", "responseHeaders": { "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b754641597947648b3896aef9416ba67-fb6fd519af3ada49-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b9f351b4f3908440a0162e85bd846667-f1ad615bd0be114e-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"e24ebefe-ee2b-4cdb-aa07-94a0bbc8cbde\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:19.7564577Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:19.7564577Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"da38ff68-c91c-4a2c-a9fa-7cca4ba68d65\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:07.9657289Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:07.9657289Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "etag": "W/\"e24ebefe-ee2b-4cdb-aa07-94a0bbc8cbde\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "etag": "W/\"da38ff68-c91c-4a2c-a9fa-7cca4ba68d65\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c63357a59a166a469bb1677785b23415-3b615427a9cb4c4b-01" } }, { @@ -114,9 +121,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "etag": "W/\"7f82d7e3-9ae7-4349-8048-8323c2b4eb6e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "etag": "W/\"cb56db14-26f4-4a6a-bb7d-f0974d8ef0c5\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9545e12edd0fcb4ab13aab2ee1b5574c-3a94e58de5551146-01" } }, { @@ -131,9 +139,10 @@ "responseHeaders": { "content-length": "16", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "etag": "W/\"7f82d7e3-9ae7-4349-8048-8323c2b4eb6e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "etag": "W/\"cb56db14-26f4-4a6a-bb7d-f0974d8ef0c5\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fbc497a20b35a144b93153ccb928c7a8-42b0e5d1c594184b-01" } }, { @@ -147,8 +156,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-da4aef75652eb744bd20a074eaeef873-1792e3bd01aabe45-01" } }, { @@ -162,8 +172,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8a9eb25207896a45865786f4adfa0d14-04ea6df720de7342-01" } }, { @@ -177,8 +188,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:08 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-77cefee7bd1e50418b186e475a6e02e6-6820f258b007a841-01" } } ], @@ -186,5 +198,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "cec400789f36bdfa460f29afa66fb197" + "hash": "aaa1a3bc475f53a6e9fe44fbf462d6a8" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.json index de95b4e15c13..9bca224eb000 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:18 GMT", + "date": "Wed, 30 Jun 2021 15:29:06 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "dabd7c4b-1544-4250-ab69-375975819000" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "49b25b67-e32d-4755-8bf0-10e08a773601" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cd46e17dc7d9634f8ae285cb1b704bda-df57ab16c1b18a4b-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b5197e14c1913740a06c688cfe0d3838-3239a84a7084a647-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTComponentTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTComponentTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:19.185295+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:19.1853417+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTComponentTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:07.2687064+00:00\"},{\"id\":\"dtmi:samples:DTComponentTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:07.2687333+00:00\"}]", "responseHeaders": { - "content-length": "341", + "content-length": "342", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d032be94de90f64cbc8460fa3d674258-a3cbc2996e260b47-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "277", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-605ed2f2412f2442a928491a527d2c18-86c9baac194b124b-01" } }, { @@ -94,13 +100,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\"},\"Prop1\":\"value\",\"Component1\":{\"$metadata\":{},\"ComponentProp1\":\"value1\"}}", "status": 200, - "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"9e4bb942-4a95-44c8-9465-afc55df6d4f2\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:19.2576490Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-01-09T01:21:19.2576490Z\"}}}", + "response": "{\"$dtId\":\"DTComponentTestsTempTwin\",\"$etag\":\"W/\\\"130c5036-bd8b-4845-81a7-21248162968f\\\"\",\"Prop1\":\"value\",\"Component1\":{\"ComponentProp1\":\"value1\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:07.3766133Z\"}}},\"$metadata\":{\"$model\":\"dtmi:samples:DTComponentTestsModel;1\",\"Prop1\":{\"lastUpdateTime\":\"2021-06-30T15:29:07.3766133Z\"}}}", "responseHeaders": { "content-length": "347", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "etag": "W/\"9e4bb942-4a95-44c8-9465-afc55df6d4f2\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "etag": "W/\"130c5036-bd8b-4845-81a7-21248162968f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-28b44dd0405e0d4db6fc9029f56e2a3a-619a01874d229f44-01" } }, { @@ -114,9 +121,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "etag": "W/\"4e0cd521-0734-4008-88ca-91f720f026f4\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "etag": "W/\"d46e3c42-db64-4fdb-ad37-701ccb6b0758\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b01e28bc1e913a448a5d24f8cdebdb2b-90fc90d4a70a7941-01" } }, { @@ -127,13 +135,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"ComponentProp1\":\"value2\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-01-09T01:21:19.3062046Z\"}}}", + "response": "{\"ComponentProp1\":\"value2\",\"$metadata\":{\"ComponentProp1\":{\"lastUpdateTime\":\"2021-06-30T15:29:07.4256030Z\"}}}", "responseHeaders": { "content-length": "108", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "etag": "W/\"4e0cd521-0734-4008-88ca-91f720f026f4\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "etag": "W/\"d46e3c42-db64-4fdb-ad37-701ccb6b0758\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4eaf4bb8c1d7454ebeb6a128386874da-8acb2c0428f0a14e-01" } }, { @@ -147,8 +156,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e678008a8f66ad42902c1a72e7f64c09-7e487f739f0ff14d-01" } }, { @@ -162,8 +172,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-af220948d929364cbfe79d3eb94651b3-b8c89079298f4e45-01" } }, { @@ -177,8 +188,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:19 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:07 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1448333fea68c54b9bc0d2a4394e2b3e-97ec94c18965544e-01" } } ], @@ -186,5 +198,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "095900deca8f3aaa862abdb3830ba93d" + "hash": "7f02726d3612a35d5e8d9e8b6de1e33e" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.json index 6680e6342f40..9573617e33b7 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.json @@ -2,49 +2,52 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "61feddcd-31a3-43e4-b506-16edb5129400" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "632b92eb-9ab3-4378-ad02-0f25be7d4501" } }, { "method": "PUT", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/eventroutes/eventRoute161015529825206675", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/eventroutes/eventRoute162506697258809785", "query": { "api-version": "2020-10-31" }, - "requestBody": "{\"endpointName\":\"endpoint161015529825200263\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"}", + "requestBody": "{\"endpointName\":\"endpoint162506697258808063\",\"filter\":\"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'\"}", "status": 400, "response": "{\"error\":{\"code\":\"EventRouteEndpointInvalid\",\"message\":\"The endpoint provided does not exist or is not active. Check that your endpoint is provisioned correctly. See event route documentation (http://aka.ms/ADTv2Routes).\"}}", "responseHeaders": { "content-length": "223", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9a7229b0d87c604999786604f6b1c6c5-53aa645314647741-01" } } ], "uniqueTestInfo": { "uniqueName": { - "create-event-route": "eventRoute161015529825206675", - "list-event-routes-enpoint": "endpoint161015529825200263" + "create-event-route": "eventRoute162506697258809785", + "list-event-routes-enpoint": "endpoint162506697258808063" }, "newDate": {} }, - "hash": "1071f12f8752801d53f3beffbdaa0df4" + "hash": "74395ecd9e67451b2cc009508b319a51" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.json index 08d398118b69..08e3a2601397 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.json @@ -2,29 +2,31 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "3f1bb9fa-5334-467a-9094-cbe53b029a00" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "ef774fe4-b4dc-4a74-a261-96292d207301" } }, { "method": "DELETE", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/eventroutes/eventRoute161015529878302737", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/eventroutes/eventRoute162506697323108244", "query": { "api-version": "2020-10-31" }, @@ -34,16 +36,17 @@ "responseHeaders": { "content-length": "222", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c4cb9320d72f1f4992fd2a1fab18a4bf-96071c6e3b7e3341-01" } } ], "uniqueTestInfo": { "uniqueName": { - "delete-event-routes-not-existing": "eventRoute161015529878302737" + "delete-event-routes-not-existing": "eventRoute162506697323108244" }, "newDate": {} }, - "hash": "118c5a4bb21a561600ddda2bc8da5f76" + "hash": "1825298c216f634a41c05dd92c1ce718" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.json index 01fca39d3a39..36fa9b329627 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.json @@ -2,29 +2,31 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:36 GMT", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "4e093115-f836-4aa9-bc72-5859c1c79400" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "cef341fa-514e-4655-936b-5e812d9e5601" } }, { "method": "GET", - "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/eventroutes/eventRoute161015529857001042", + "url": "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net/eventroutes/eventRoute162506697284509429", "query": { "api-version": "2020-10-31" }, @@ -34,16 +36,17 @@ "responseHeaders": { "content-length": "222", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a63e092705f242459e4057d422016756-6b97e7d03911fc47-01" } } ], "uniqueTestInfo": { "uniqueName": { - "get-event-route-not-existing": "eventRoute161015529857001042" + "get-event-route-not-existing": "eventRoute162506697284509429" }, "newDate": {} }, - "hash": "67bef93bf3a39bb921a2e89f5de2f903" + "hash": "3b87b638485d1e237982253522f396ec" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.json index 3d0d95db326b..4aefd9c5575f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7febe0cf9100" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "c110a61b-d4c4-494f-b543-311866f74301" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "28", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:30 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9a0f6a3239feac46ac513d5685e7b29c-f5d8dc80f4b9fa4e-01" } } ], @@ -43,5 +46,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "2d53c4833c2f040a4d184b6241c7b8e2" + "hash": "e5669abac7f5c94f1598766c71392ac7" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.json index d71483e1a660..0e32af0ab56f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", + "date": "Wed, 30 Jun 2021 15:29:31 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "8b1947ee-c6a8-4b20-9e6a-ff00ea268a00" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c007b9c3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7edc01308955374b86e9065bacafa22f-4d1c439e80749b4c-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-816a286e9fa72744a2fb680b682c745e-e0958bfa042a2541-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:38.5952378+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:38.5952649+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:32.3013593+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:32.3013899+00:00\"}]", "responseHeaders": { "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c48eb999949d80439fbc870f0222597b-f11794080a18c849-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "273", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-949233e49029e64eb36d7765813dc0d3-88600271b41b474c-01" } }, { @@ -97,8 +103,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c0caf87a9d054b49aba7ccc3b957247b-fcd467c75e5bd248-01" } }, { @@ -112,8 +119,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ad1fe62dea7eab458e768758bb070dfc-f3afe34eba4b8e41-01" } } ], @@ -121,5 +129,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "7e99565d467353dfe38263cca6243be8" + "hash": "27ad558385d231156506adcd4a720190" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.json index 9c38f2d04709..c2e15719806a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", + "date": "Wed, 30 Jun 2021 15:29:31 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "acaf8384-abda-46b3-a19e-954ed2a18900" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "6614c87c-7b25-4e3b-be59-8c46ab088e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-afb597ee9471614ab52a2c791d44f02c-456124a5c9c7b546-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a2e5d8e89448ee468f098192909f297d-d26d4cf2f01d0643-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "417", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-44de40d33b37ac4ba7d770b79c4464a1-e7d61cf3bf2a3e4d-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-bc19413c7c0c2e448d71e33fc4fb4c48-1a94e0e80cb16e43-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9805d340207ac94c93212f858a783124-7012cbe9021f374e-01" } } ], @@ -107,5 +114,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "24e1bd35bc753daa32ad545761c9057a" + "hash": "ae8a3b65252dea9c7b3cfc8c5abad8f1" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.json index 873047507c4f..e65f02dc5473 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", + "date": "Wed, 30 Jun 2021 15:29:32 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "b303fb60-9b87-4660-abd8-170c799d8b00" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "c410173e-1b24-48d0-b926-c995d1d57e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5dd6ed2636f21b4c86c3537a58b38918-335702e2e5deaf42-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-56cd7362887ad0468d68efeb3552a603-55a20c9ab4f88049-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "523", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-aaac21361ac329489b9aad60cdd2f815-0945594ec6e91246-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f533126319aed746830722b5b2f0079b-8191d9efa323b049-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0add280655e681418474442fc7da43e2-5972b0efbf8d8740-01" } } ], @@ -107,5 +114,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "265e96cdf9af497cb96fc1a26dd66b92" + "hash": "90c9846e7acfa0153545d6f44b5c7761" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models.json index 9eb14b4e87cd..50a82ce652cc 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", + "date": "Wed, 30 Jun 2021 15:29:31 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fedb079000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "77ec49a3-73cc-4e5e-841b-1712d3e38b01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8a2a0668ed2b2b4fb465405d7ffa6d41-ed7ea803c58ba944-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5439812af3ab9e4bbe3b8ad09432fcdd-82b1703c89d8ea48-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:38.3055728+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:38.3055988+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:32.0109448+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:32.0109739+00:00\"}]", "responseHeaders": { "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-48e196caff3c024fbf844d2ec22b2f98-75c0ab6f41c1f04b-01" } }, { @@ -81,8 +86,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-37f0b47cc45fae4da705b2ca79dd6020-57df0b99cb7c224b-01" } }, { @@ -96,8 +102,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-89104f0ec865ab428898daf5f7e362af-57be11a33cb89d4c-01" } } ], @@ -105,5 +112,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "64cb06369e62607b2f25f2c638cde030" + "hash": "40f773709991c91e8df27c0b7b5bad95" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.json index 8592f608baa8..3ac40f2a56c5 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", + "date": "Wed, 30 Jun 2021 15:29:30 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "3f1bb9fa-5334-467a-9094-cbe547029a00" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae5f12f7701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7c7f36d0190a6948905e46f768999aa1-35112ca3e0956e4d-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:37 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:31 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6adfb5aafba81b43b57fa52b0978da08-6df111fdf6d49d45-01" } } ], @@ -59,5 +63,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "0e368261d38d2ecc96f0a2a6b0fa35c6" + "hash": "dc7dcd2f29b8d580f2535bdeec19b7dc" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.json index b526110db568..9e2eb76bf052 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", + "date": "Wed, 30 Jun 2021 15:29:34 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "c151beef-47a5-423e-830e-3faa845d9100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "49b25b67-e32d-4755-8bf0-10e05d7d3601" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c9e1605cc3b24b48af1520298dc6e122-59e0f5a396e1204b-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1c35999b6df37a489c9aa402b86148d0-00b0d27eee659d42-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.9871976+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.9028758+00:00\"}]", "responseHeaders": { "content-length": "170", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a2244825ec4ac84bb7cc56befa75c818-2f260e9508bc844d-01" } }, { @@ -79,12 +84,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.9871976+00:00\"}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.9028758+00:00\"}", "responseHeaders": { "content-length": "168", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-599851fd9259b04a8ae2a933547ac3da-1f429ec30d7ff54b-01" } }, { @@ -98,8 +104,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d23df487d15fa54cace7d2853192632c-a161be3d0fe89949-01" } }, { @@ -111,12 +118,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":true,\"uploadTime\":\"2021-01-09T01:21:40.9871976+00:00\"}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":true,\"uploadTime\":\"2021-06-30T15:29:34.9028758+00:00\"}", "responseHeaders": { "content-length": "167", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-60d7172a96846543b47f96ab0b229a15-43929e77c378ff45-01" } }, { @@ -131,8 +139,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-185ad8c6b2d92542900a865741badc0b-b1f0e5276c159749-01" } }, { @@ -146,8 +155,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d96bcc41550c1c47bf9416ba90bb293f-63dbd59f3ffae849-01" } } ], @@ -155,5 +165,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "c0ea9fdb00f9ace0c496bc7ada1eea0f" + "hash": "02a6a8373ebe442836b135b13ed7411d" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.json index 8983340e455a..0e7f2f079ddd 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", + "date": "Wed, 30 Jun 2021 15:29:34 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "62e49051-bb50-44d7-be6a-d0cef22c8e00" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "77ec49a3-73cc-4e5e-841b-1712b6e48b01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ebdc1f1af2725d49b6dc259c28ffefb1-fc1ce3e03286ec49-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c3f75980007ea54d8120a6fc877f9fbc-90cf43b50f699a4c-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:41.6686837+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:35.6473972+00:00\"}]", "responseHeaders": { "content-length": "170", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7bf32b5d0eef234aba5643f255aea6ae-b461dc27ba81274d-01" } }, { @@ -79,12 +84,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:41.6686837+00:00\"}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:35.6473972+00:00\"}", "responseHeaders": { "content-length": "168", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1e3c9457ddb8f84cbcdd81398bda6636-769c7886943e0f4c-01" } }, { @@ -98,8 +104,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3da5645d4ac91e45a00ede767afab0cc-77cd68b9a09a6b4a-01" } }, { @@ -111,12 +118,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":true,\"uploadTime\":\"2021-01-09T01:21:41.6686837+00:00\"}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":true,\"uploadTime\":\"2021-06-30T15:29:35.6473972+00:00\"}", "responseHeaders": { "content-length": "167", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-db29eb597353a4418c45389130bfd2aa-cf53900a5b22c64c-01" } }, { @@ -130,8 +138,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8ee12298ce3c2f4191c09fce589a86ab-48eba4d48a998145-01" } }, { @@ -143,12 +152,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":true,\"uploadTime\":\"2021-01-09T01:21:41.6686837+00:00\"}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":true,\"uploadTime\":\"2021-06-30T15:29:35.6473972+00:00\"}", "responseHeaders": { "content-length": "167", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-25675bedc9ffa241b30a717c55e510db-35926dc99044c043-01" } }, { @@ -163,8 +173,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-abcb9220d466fb4883e185e5117fd7c4-66eb3cfbbd6ffa42-01" } }, { @@ -178,8 +189,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e330762a1854604b96b71a6c0a84a411-9e3f69a9c810d240-01" } } ], @@ -187,5 +199,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "9dbfef42509180209c30c74f36f150b9" + "hash": "8e9ddaaec87f3a8236433234c3ec3ca1" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.json index 436ba7c01d09..b7cb3886cfe4 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", + "date": "Wed, 30 Jun 2021 15:29:34 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "b303fb60-9b87-4660-abd8-170cb89d8b00" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "b223425b-649f-4ade-ab87-791f5eda6c01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a61a2f1ef0028542bfd0a694ceaf8806-4e3d69bd0ac7284b-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5054a241b69c244cad0a6b572c0b11e9-dc55d90929591444-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-66703a1fb78610479e021d88e7b0f516-249239c19d92bc4e-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6b4ea26bfea3c5448e4ba9c8e98d7ba8-14d6cae56292274c-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a68250ec2c6dd04daf607e507a1219bb-2e5a90ec548d6046-01" } } ], @@ -107,5 +114,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "4d20ff6881d9eff135f1e2d1370d9043" + "hash": "c48df00b5a22cd5b9a942ad47017221b" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.json index 00de955b0150..31578781bf81 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", + "date": "Wed, 30 Jun 2021 15:29:35 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "b303fb60-9b87-4660-abd8-170ccd9d8b00" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c00319d3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dabfd87f897d7e4b8f2d38855b4bfafc-abeddbbc5cdf8e4b-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-aa468b2abcf55a49833b12771b9bf4e7-98b512813e6bd84d-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:42.191182+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:42.1912119+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:36.1254151+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:36.1254455+00:00\"}]", "responseHeaders": { - "content-length": "333", + "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d416e9cc2c03df4bb33e73a35c353e0f-2d57de343d13fa4f-01" } }, { @@ -81,8 +86,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ac83762918946a48beee096070281703-8c425df31bca6144-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ebb2e52719a4d44bb03209b323306ff4-334544b044b7db41-01" } }, { @@ -113,8 +120,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-537c0ce4626fe84686db09707b4b06f2-d7215a8bb4e50042-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f21756a62e9ca04eaf9ee166279640f7-334e76361292ba45-01" } }, { @@ -146,8 +155,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d0df30b7d9536a4482aaa964a0ef0007-8107e81dd1c12843-01" } }, { @@ -162,8 +172,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3f67697f4a50e24fa4e90de137db2266-a3af4697682f2d4e-01" } } ], @@ -171,5 +182,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "279266fc216812d648ebf1306644525d" + "hash": "45de17ed42e93bb28986aedccdd7d207" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.json index c2207235be5e..ddbd264ccb12 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", + "date": "Wed, 30 Jun 2021 15:29:36 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fe9d089000" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c004c9d3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-72af3e0218ca084c967d2babed663858-9baacc6adcf8cf4e-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0aa10bd5c9440e4486734e3696647dd7-3346491e7e323841-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:42.9262262+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:42.9262597+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:36.873701+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:36.8737311+00:00\"}]", "responseHeaders": { - "content-length": "334", + "content-length": "333", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0a0f5e796543f64db15a22c17bf34645-c96e747ed4ba4047-01" } }, { @@ -81,8 +86,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2d680271460c3246a11ec16f34aafca4-edbbc6aa4ed1dc4f-01" } }, { @@ -97,8 +103,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b8b701d9a5073e40864af9dddc2dddca-04269b7e61feb147-01" } }, { @@ -113,8 +120,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-99b35118ecfaa24f958293d229334ef4-2c5b58d8ef253046-01" } }, { @@ -128,8 +136,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a63225b17fa424488c43c7ba735cef05-4f8029e898474c4e-01" } } ], @@ -137,5 +146,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "bf628ae4e7dfb64bf134912d2596d1f4" + "hash": "03d7d6c554a197acadc9b361dc401193" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.json index a90f2399e190..1b45426a1ecd 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", + "date": "Wed, 30 Jun 2021 15:29:35 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fe91089000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "c410173e-1b24-48d0-b926-c99596d67e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-49e4d35287f3a7449b25231b8d3fbe61-24c356bc37806344-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-097b9023773d314caafbeb6db761af03-8ba53d58b2a5174b-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:41 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f2c479ba8d2798419a5886455e06cc81-d5589d9c961d714d-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f8ab9e5693156b49b02e8a5296e9fd36-21378522b1d38f41-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:35 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f7cc6505ae7ef34cb8fed0c45b8fb7ee-12281e417d323c41-01" } } ], @@ -107,5 +114,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "ad8e983f362f594f868d94a5874b1200" + "hash": "4d54ed61bbbaf88316c13c1656c293e5" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.json index fb3eccd20e87..473b8cdcb4f0 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", + "date": "Wed, 30 Jun 2021 15:29:36 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "8b1947ee-c6a8-4b20-9e6a-ff0097278a00" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "9821cc30-0568-44b2-9e6e-18787cd31d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c66ba432dc89b54e958d4307ef7a6b2b-1553e2946f63ba4c-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c617503dd0d99940a584d20a5b323693-501416987f910541-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:43.3155839+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:43.3156083+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:37.2270478+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:37.227079+00:00\"}]", "responseHeaders": { - "content-length": "334", + "content-length": "333", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2bd29c2a23ec5946bf84eaec69771852-8d277c0241909945-01" } }, { @@ -82,8 +87,9 @@ "responseHeaders": { "content-length": "258", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f847ea760ae1ab4092d3e9ca1469f4dd-2445ad9c27c4e941-01" } }, { @@ -97,8 +103,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a29cb681da12f64c88a5e8af8ddded9d-ae108e6579cc2248-01" } }, { @@ -112,8 +119,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cda72b4df67d704b860ffbae1e9f2fd0-083b5ea49231a24d-01" } }, { @@ -129,8 +137,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6359c60c42f08a479733fa9c1a8a5289-418c1b266c8eab4c-01" } }, { @@ -146,8 +155,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ebff8309bef27c4196afff8e8854397c-afa1f068f703704f-01" } }, { @@ -162,8 +172,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d62a898b324c3a43ae2c5cfb76216fe9-ffd551a9f500304f-01" } }, { @@ -178,8 +189,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-264044bbe39ba945b8ff50aa45e0efe7-8ef364a0bc392a4c-01" } } ], @@ -187,5 +199,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "f2c8a6aeea4a54890ce07a4bf8fbac8d" + "hash": "206309e95769bef9c6a3b250719dcbba" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model.json index 984acebf9313..597ea563e8be 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", + "date": "Wed, 30 Jun 2021 15:29:32 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "4e093115-f836-4aa9-bc72-5859ffc79400" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "77ec49a3-73cc-4e5e-841b-171232e48b01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c399e8e984f89548800921f8cefeb2f0-ba6aba485a702b42-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6c057af85239be44b6a0b59739260d93-d1568651e25fca45-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:39.5275863+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:39.5276135+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:33.2918402+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:33.2918711+00:00\"}]", "responseHeaders": { "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-aec0c1c5f02f914aa0db10926a3ab7b5-8c5fbddf55adf048-01" } }, { @@ -79,12 +84,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:39.5275863+00:00\"}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:33.2918402+00:00\"}", "responseHeaders": { "content-length": "168", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:38 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ea6eeea42b2cc143b50aaf8efa75dac9-1721b12ea4341b45-01" } }, { @@ -98,8 +104,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-89427429ef6685418445fdb43acdef85-e8fdd14f6cc94148-01" } }, { @@ -113,8 +120,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2febeadb782fc54d89c4166ff6d8c52b-72657d24c8223a4e-01" } } ], @@ -122,5 +130,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "2609fc65aba0e57018b91f60b14905a2" + "hash": "37b4c33c449067cc2d2d96f46317c03c" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.json index d0c20eedbd1f..a9847ae528ab 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", + "date": "Wed, 30 Jun 2021 15:29:33 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "cfcd0787-8769-464f-abe9-263a2da19200" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "6bc9daae-ff4e-4325-9724-2a9c54852e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a9d0773bddc56149b1adedefe0509f6b-bf19fd0e243b9848-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4fa3f162230a484c966b791bf71eb5d7-782bdc59dd07484f-01" } }, { @@ -67,8 +71,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fe3e460376ff2748a53aa7519efe7262-8756ba9f1068aa48-01" } } ], @@ -76,5 +81,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "125fe5c1c06beead885cd6f3ee22e88a" + "hash": "9d6bf1a28fb91d04e4b52a2043995ece" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.json index 57333cc4db7c..ce36dd1747bf 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", + "date": "Wed, 30 Jun 2021 15:29:32 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "cfcd0787-8769-464f-abe9-263a1fa19200" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "2c3634b7-2625-4085-9893-5c00b89c3d01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cd12f974aa2ede4fb27bcd31b5bfa148-335e371155726543-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6b2595fb6995b144b2811bf1de29de28-90ebf4012430f34f-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:39.8099048+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:39.8099357+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:33.5939698+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:33.5939996+00:00\"}]", "responseHeaders": { "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c2845f7a775d704f85e3289fed0d3ff9-1d94654a873ec544-01" } }, { @@ -79,12 +84,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:39.8099048+00:00\",\"model\":{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":[\"dtmi:dtdl:context;2\"],\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]}}", + "response": "{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:33.5939698+00:00\",\"model\":{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":[\"dtmi:dtdl:context;2\"],\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]}}", "responseHeaders": { "content-length": "451", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:32 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ae2b48985703bb4b9d08803d4a0181dd-37df2e394f6df74a-01" } }, { @@ -98,8 +104,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0a85a864f06bf54884e7fa51da1e4621-60e3f6ed6bbece45-01" } }, { @@ -113,8 +120,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-56fc35c0efc1c14c90b51a1e9a39d671-71d1c68674f80948-01" } } ], @@ -122,5 +130,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "9fa04d09fd0f117c06493d3bb843fb11" + "hash": "0aa88ad91bfff291db18864859128c07" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models.json index bf7f7c200256..632da1309307 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", + "date": "Wed, 30 Jun 2021 15:29:33 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "acaf8384-abda-46b3-a19e-954e0aa28900" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "098d5bc0-be03-46ae-83af-550920583301" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-09fa699d2ca9bf41b5b9be4258916ee2-c6f2acf0293f534e-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b181d20dc972e34fa08aad538269dc1a-5c09859f3e21524c-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.3650661+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.365095+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.2252825+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.2253136+00:00\"}]", "responseHeaders": { - "content-length": "333", + "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7543e2205cb3a04da038b1dd99af85a6-6a380e506e858d4f-01" } }, { @@ -79,12 +84,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"value\":[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.3650661+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.365095+00:00\"}],\"nextLink\":null}", + "response": "{\"value\":[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.2252825+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.2253136+00:00\"}],\"nextLink\":null}", "responseHeaders": { - "content-length": "359", + "content-length": "360", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-40dc0ab9b862b04d97dd14fd5051e782-7211517d686a614b-01" } }, { @@ -98,8 +104,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-02b0ab7bc25356489255b4dcb773b590-a1f74d63d4fb0a41-01" } }, { @@ -113,8 +120,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-339aa5f2ff1f604cb74917f45839d9f3-699476bbc878ed48-01" } } ], @@ -122,5 +130,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "cd61f2bb34512124277e72eadc5a73fd" + "hash": "93be6f09fa2380ca9b74b73a479abf1c" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.json index 2a1f26be2b83..6e39c8b2ef61 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", + "date": "Wed, 30 Jun 2021 15:29:33 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "3f1bb9fa-5334-467a-9094-cbe5d1029a00" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "b223425b-649f-4ade-ab87-791f3ada6c01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "217", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:39 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e9d09c3f2614af489579d7f7a2236f1b-94708d0ad2095a40-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "221", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f7a3e1bf220da249a28fe19121a492c2-4ce87dc6b4d3174c-01" } }, { @@ -62,12 +66,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]},{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.6943709+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.6943996+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.5981971+00:00\"},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.5982333+00:00\"}]", "responseHeaders": { "content-length": "334", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e660e0fb173e934096846a0109934590-ed2ceb56afcb604b-01" } }, { @@ -80,12 +85,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"value\":[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.6943709+00:00\",\"model\":{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":[\"dtmi:dtdl:context;2\"],\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]}},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:40.6943996+00:00\",\"model\":{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":[\"dtmi:dtdl:context;2\"],\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}}],\"nextLink\":null}", + "response": "{\"value\":[{\"id\":\"dtmi:samples:DTModelTestsComponent;1\",\"description\":{},\"displayName\":{\"en\":\"Component1\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.5981971+00:00\",\"model\":{\"@id\":\"dtmi:samples:DTModelTestsComponent;1\",\"@type\":\"Interface\",\"@context\":[\"dtmi:dtdl:context;2\"],\"displayName\":\"Component1\",\"contents\":[{\"@type\":\"Property\",\"name\":\"ComponentProp1\",\"schema\":\"string\"},{\"@type\":\"Telemetry\",\"name\":\"ComponentTelemetry1\",\"schema\":\"integer\"}]}},{\"id\":\"dtmi:samples:DTModelTestsModel;1\",\"description\":{},\"displayName\":{\"en\":\"TempModel\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:34.5982333+00:00\",\"model\":{\"@id\":\"dtmi:samples:DTModelTestsModel;1\",\"@type\":\"Interface\",\"@context\":[\"dtmi:dtdl:context;2\"],\"displayName\":\"TempModel\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Prop1\",\"schema\":\"string\"},{\"@type\":\"Component\",\"name\":\"Component1\",\"schema\":\"dtmi:samples:DTModelTestsComponent;1\"},{\"@type\":\"Telemetry\",\"name\":\"Telemetry1\",\"schema\":\"integer\"}]}}],\"nextLink\":null}", "responseHeaders": { "content-length": "993", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:33 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f162d96d636eb74fa323298d5086f01e-2b1dcf6fcd2e474f-01" } }, { @@ -99,8 +105,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9fb8912c6db1fd48a37ff4e6741cb84b-dd35796634ee7b4c-01" } }, { @@ -114,8 +121,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:40 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:34 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d79b7398ad814e458825ebf29cb07281-9c4dacc3be586647-01" } } ], @@ -123,5 +131,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "d8234fc48a2ba2a1cdbda0677c5d7a35" + "hash": "7631299de49f9139538cdd0a89796b5f" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.json index bd9e256a9c82..981b3316b934 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", + "date": "Wed, 30 Jun 2021 15:29:36 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "c151beef-47a5-423e-830e-3faaf05d9100" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "6614c87c-7b25-4e3b-be59-8c46180a8e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:42 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a972ad8310c37b4dabc530009dce938b-314b4ebb6d6c4a4d-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2d46ea156df97a43a921e724705a74c7-0787fa0f38616348-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:36 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-650223a6e5f83842a5915f459c865aaf-6fd2e24cf13d4e44-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:43.7707777+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:43.7708027+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:43.7708209+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:37.8135828+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:37.8136076+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:37.8136256+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3a9dffc052cd654896494de2cf8ba111-728f87a70b443a42-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-77a045d1a5d3e14e831868bbb984fe45-41d90417f31c7c42-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f52d9bad4ff5d74da0872899cc211ee1-35087e4d627aa849-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-88567eba79ed2946bc5bcd93168098ab-1a36450b5f7eb146-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"80edf2cb-fcb1-46b3-91cb-1f204c681fd7\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:43.9316717Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"5a5acc98-bd8e-4831-ba47-320c168cf44f\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:37.9868264Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "etag": "W/\"80edf2cb-fcb1-46b3-91cb-1f204c681fd7\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "etag": "W/\"5a5acc98-bd8e-4831-ba47-320c168cf44f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cd6033b583e81046b0cf054ee925d62d-36965e3383795044-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"7d3ff8f0-ac01-4269-903a-c4e997650b76\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:43.9812486Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"6964d299-de4c-4118-9772-baac2addbe46\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:38.0359943Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "etag": "W/\"7d3ff8f0-ac01-4269-903a-c4e997650b76\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "etag": "W/\"6964d299-de4c-4118-9772-baac2addbe46\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-49c53d03152ac4418a72ff684051f8fd-3a9be407f78a004f-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"6f21b5cd-86ea-4861-a905-3493ecf2ef40\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:44.0281572Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:44.0281572Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"d8e1676a-f15f-4dff-b6e4-6fd08095f6de\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:38.0854262Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:38.0854262Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "etag": "W/\"6f21b5cd-86ea-4861-a905-3493ecf2ef40\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "etag": "W/\"d8e1676a-f15f-4dff-b6e4-6fd08095f6de\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0ebc4a26aa79b54285b4be6a35923d69-11fe8e6a09d4204a-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"FloorContainsRoom\",\"$sourceId\":\"DTRelationshipsTestsFloorTwin\",\"$relationshipName\":\"contains\",\"$targetId\":\"DTRelationshipsTestsRoomTwin\"}", "status": 200, - "response": "{\"$relationshipId\":\"FloorContainsRoom\",\"$etag\":\"W/\\\"293364d5-faec-4b6f-8f0c-69eac8ed46b5\\\"\",\"$sourceId\":\"DTRelationshipsTestsFloorTwin\",\"$relationshipName\":\"contains\",\"$targetId\":\"DTRelationshipsTestsRoomTwin\"}", + "response": "{\"$relationshipId\":\"FloorContainsRoom\",\"$etag\":\"W/\\\"ad43d942-d2b9-40f1-86c4-ba1983adff57\\\"\",\"$sourceId\":\"DTRelationshipsTestsFloorTwin\",\"$relationshipName\":\"contains\",\"$targetId\":\"DTRelationshipsTestsRoomTwin\"}", "responseHeaders": { "content-length": "210", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "etag": "W/\"293364d5-faec-4b6f-8f0c-69eac8ed46b5\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "etag": "W/\"ad43d942-d2b9-40f1-86c4-ba1983adff57\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-17bca9db46f06242a9349e6232881db2-878877b90835e64d-01" } }, { @@ -213,8 +226,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4849e770733bef4d9db167fac7dfe310-9bf42662885e8645-01" } }, { @@ -228,8 +242,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-59b259f8a1edaf4794e76fdecb31d270-c4535b9d526cce4d-01" } }, { @@ -243,8 +258,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c7bdff98f8a2dd41bf431cb2b82b7e30-3cef4d4114fb3642-01" } }, { @@ -258,8 +274,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c80cee8e4f9048409e257159dc5bc18c-791ef9a4043e3d46-01" } }, { @@ -273,8 +290,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f011bc643d2dc64a853cd3558ce11769-8846fd5bf8b96b4f-01" } }, { @@ -288,8 +306,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-124d75a38338754a86586eaaddcc8378-1ea199e41bc7fd49-01" } }, { @@ -303,8 +322,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-74743114cba79c4198a7f4455251ac48-9da8cf23445bb94f-01" } } ], @@ -312,5 +332,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "a21ae31bc86e80460d95d2050e97d30b" + "hash": "689c0f72262c44551359de8b6f662fd1" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.json index 684b83bcccb4..6ca40065bbed 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", + "date": "Wed, 30 Jun 2021 15:29:38 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "4e093115-f836-4aa9-bc72-5859b8c89400" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "5942818c-6aff-4466-990a-c8d68ccd8801" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:37 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dfe8ff29d7c0c848b8c78b987e03fa26-9fca8a23dc7b9e47-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-28db98c9d5b2834ebd6dd8cf73002754-60f61e190d564247-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-182c9180f04603479f11baceee6524f9-bfd3710031dbc148-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:44.637599+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:44.6376224+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:44.637638+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:38.9257978+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:38.9258287+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:38.9258472+00:00\"}]", "responseHeaders": { - "content-length": "507", + "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f4545302df234245b045da2be066adaa-0cad1c33b8743a49-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:43 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d5d69f8e5695e542ac03b5dbcaa38a97-cee911fbf2121640-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d042a68f9faf1a4eb8425b00d23d9459-132721cac628c247-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-920f5e36d6326e42b100790eb0150c1a-35bf1a3cf1ee9648-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"842a30cc-f9bf-4754-a186-1510bc9abb4f\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:44.7758668Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"622acea0-1eb3-4ee7-8e7d-e0c5f7ac1c88\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:39.0944181Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "etag": "W/\"842a30cc-f9bf-4754-a186-1510bc9abb4f\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "etag": "W/\"622acea0-1eb3-4ee7-8e7d-e0c5f7ac1c88\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-87935a10ba733044993f16ccf0025d3c-7d4848506dad8943-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"780cf4e1-1817-452d-8d33-1e0011dee954\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:44.8222388Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"80c286d4-6bd2-4ad9-89f5-a9f4686126da\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:39.1473468Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "etag": "W/\"780cf4e1-1817-452d-8d33-1e0011dee954\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "etag": "W/\"80c286d4-6bd2-4ad9-89f5-a9f4686126da\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-590428b856e0cc42bec338afa5783629-a89369e4bfd49949-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"5586d698-836a-4813-9ad9-68d091037277\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:44.8603179Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:44.8603179Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"6a87cf2a-5278-4e5f-b042-2953ed17e466\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:39.1965871Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:39.1965871Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "etag": "W/\"5586d698-836a-4813-9ad9-68d091037277\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "etag": "W/\"6a87cf2a-5278-4e5f-b042-2953ed17e466\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a9829e68495b6d40b36796aa0926af8f-b7800708b42a8c4e-01" } }, { @@ -197,8 +209,9 @@ "responseHeaders": { "content-length": "256", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0d778e5a3e60314aaea2ce827df025f0-3169ed311d20104d-01" } }, { @@ -213,8 +226,9 @@ "responseHeaders": { "content-length": "314", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-193e0130a3befc409fec9bfdda6350cf-70d934e89c6cbd46-01" } }, { @@ -228,8 +242,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ea66b9c7633ab04aab6329ac6a8ac607-53559206cfce7f43-01" } }, { @@ -243,8 +258,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-98d111e543474d438e5262374171f2f2-3540ea5423090648-01" } }, { @@ -258,8 +274,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-db8e04df08e8194aa2bc444100518664-079383f640ab694e-01" } }, { @@ -273,8 +290,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-31c7854e6c67e047b1e8d81f9b99f3d6-022f1336c79efc40-01" } }, { @@ -288,8 +306,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-38f5279065c88e429dd13b08d4e81b6e-ce61eff05ad9fb43-01" } }, { @@ -303,8 +322,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-59bd60415ae0d94c85e05f88e4caa1fe-142ff18550cd1a4f-01" } } ], @@ -312,5 +332,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "1ca5f87fc1af0c78650a5e4871d91a6f" + "hash": "30de979e8f87dd2de34676b39e8368fd" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.json index 44d71c098de0..bf8092d2aa12 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", + "date": "Wed, 30 Jun 2021 15:29:38 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "526d55b2-138a-44da-81ac-953395518600" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b271ad183101" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e1e219caa30256409ac688aa6d8eb64c-6c65c9cb79668448-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6034abc5c8051048806ded83d3bcb611-1125fb8ff2884547-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:38 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4538dc7976fc4f4eaaada5df6a0aba97-8c0d7ec1297b124b-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:45.4556734+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:45.4556952+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:45.4557122+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:39.8727838+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:39.8728071+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:39.8728227+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-372da04602e0be4ca20c9ecf3b1bf140-7efecb8279d33840-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-deaa92f0e981d542a3c3ea3e57a0b520-3d2de572011d0d49-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-490c54c3d9fa6842869f5540a2c2ef7b-c3d9037ae1042145-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7b3b6d825484384281bb58e6ef514d4f-0d717a5c3678c145-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"7f729f7d-74c8-400c-93cf-2d5fad2aba5d\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:45.6115313Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"284464e4-b707-447e-ae8e-662fb7e23133\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:40.0432027Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "etag": "W/\"7f729f7d-74c8-400c-93cf-2d5fad2aba5d\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "etag": "W/\"284464e4-b707-447e-ae8e-662fb7e23133\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d9103148455a3544a314e7e52c53e03d-8e54c3a30a8a0344-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"c1b90080-3a95-414b-b5c2-3a5b0f8e532a\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:45.6530093Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"72d95c11-bd34-4edd-bbe4-cee885786599\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:40.0963693Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "etag": "W/\"c1b90080-3a95-414b-b5c2-3a5b0f8e532a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "etag": "W/\"72d95c11-bd34-4edd-bbe4-cee885786599\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f9f5d3dc334e3f4a957546d060e4af2d-cec77b089b0e2b4a-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"195be509-6f03-4d78-9aa0-9f809c167b99\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:45.7032973Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:45.7032973Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"838c3a78-3bb3-4a9c-adf0-4c74e9a0b5ba\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:40.1492241Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:40.1492241Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:44 GMT", - "etag": "W/\"195be509-6f03-4d78-9aa0-9f809c167b99\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "etag": "W/\"838c3a78-3bb3-4a9c-adf0-4c74e9a0b5ba\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-64dc68d3ee74234d8023cb58b4018f06-d76eb9bb2fa99f44-01" } }, { @@ -197,8 +209,9 @@ "responseHeaders": { "content-length": "266", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-551dc963f1bbc94bbe3e50d9386bcf58-7b8cd990fc05e54a-01" } }, { @@ -213,8 +226,9 @@ "responseHeaders": { "content-length": "314", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b5f39c9453938e46a49a80e9098e6687-a54fc2a43e56b247-01" } }, { @@ -228,8 +242,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4893f10b0ce8f848887a9a3da22b2a63-11509f49ef4a4641-01" } }, { @@ -243,8 +258,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f54872778026a24c98298fbed14f148a-b227b3a0555f164f-01" } }, { @@ -258,8 +274,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-131ddb1e2cf60e49a26a755ac8538298-8a380ebb4fa1dd49-01" } }, { @@ -273,8 +290,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-47cdc59f3e09c8459fc3c7af26768b21-152bb151e66cc742-01" } }, { @@ -288,8 +306,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-32035134a3dec845972f7694782d2838-f51c36d18bc7d347-01" } }, { @@ -303,8 +322,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9a928d0d3837bd4fb4fbc658f4d24f2f-079415513b33124f-01" } } ], @@ -312,5 +332,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "2e25a09a402cbea15d93103eab9906cd" + "hash": "f9bba843658ef8ac3d7da6a2cb7d79c0" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.json index b397cc30ede1..dc1d7d53b08d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", + "date": "Wed, 30 Jun 2021 15:29:39 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "cd5a7f22-bc82-414f-9a93-72ab91c39500" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "6614c87c-7b25-4e3b-be59-8c46dd0a8e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c3b2a1155e0bd7468735fdab4fbc6e79-b4faaf17b0da3a44-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3fb2901d9a10214c8e1e6652b17b1401-0eeafae148142f4c-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f9c7ea385082bb47b705fc92a2b0c476-131337cc263a6c40-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:46.2981689+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:46.298193+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:46.2982284+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:40.8066902+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:40.8067158+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:40.8067323+00:00\"}]", "responseHeaders": { - "content-length": "508", + "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-01296f05a966fe4f8331b885b25ff091-a4bd025fa2566e45-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:39 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-13929c9d701a5b4a966232d3ab6b9af3-d241cdcf4deb5f40-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fa5b5b5d041bc447a673a71e1f716160-fd4c131906169e4f-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-32b8c3c6f4b91d4d803ea07e1b153b57-712980a6656c6041-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"285abd91-6d6b-425c-9df8-1cccad6b8a99\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:46.4577304Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"e814b8d8-fd7b-4ee8-b4a2-4a0d44c060de\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:40.9850388Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "etag": "W/\"285abd91-6d6b-425c-9df8-1cccad6b8a99\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "etag": "W/\"e814b8d8-fd7b-4ee8-b4a2-4a0d44c060de\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d9cb00e896694243b2ae9b2c169f2456-e4cdcfacafea0745-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"89206c70-bb28-4c8b-b3a3-f745dcc10611\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:46.5053709Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"0e751140-21b4-484b-b161-21de0f59bd8a\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:41.0367013Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "etag": "W/\"89206c70-bb28-4c8b-b3a3-f745dcc10611\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "etag": "W/\"0e751140-21b4-484b-b161-21de0f59bd8a\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a33aade772965d488f45c0e5672e9d6d-eb4cd08ff3517943-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"75594e8c-2831-4c6c-9452-8ab39bbc84f6\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:46.5498970Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:46.5498970Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"e4c7f29b-845f-42e7-bdca-01efe6b9cc18\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:41.0894303Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:41.0894303Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "etag": "W/\"75594e8c-2831-4c6c-9452-8ab39bbc84f6\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "etag": "W/\"e4c7f29b-845f-42e7-bdca-01efe6b9cc18\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-45fa915ce657b44eaa35a9ecf2ae856d-ebfdb7613c6ddb4d-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"FloorContainsRoom\",\"$sourceId\":\"DTRelationshipsTestsFloorTwin\",\"$relationshipName\":\"contains\",\"$targetId\":\"DTRelationshipsTestsRoomTwin\"}", "status": 200, - "response": "{\"$relationshipId\":\"FloorContainsRoom\",\"$etag\":\"W/\\\"5e11621f-687c-4d32-a5f5-43d3d5b22182\\\"\",\"$sourceId\":\"DTRelationshipsTestsFloorTwin\",\"$relationshipName\":\"contains\",\"$targetId\":\"DTRelationshipsTestsRoomTwin\"}", + "response": "{\"$relationshipId\":\"FloorContainsRoom\",\"$etag\":\"W/\\\"c7b48b13-3b49-4e5c-aa0f-691372e24292\\\"\",\"$sourceId\":\"DTRelationshipsTestsFloorTwin\",\"$relationshipName\":\"contains\",\"$targetId\":\"DTRelationshipsTestsRoomTwin\"}", "responseHeaders": { "content-length": "210", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "etag": "W/\"5e11621f-687c-4d32-a5f5-43d3d5b22182\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "etag": "W/\"c7b48b13-3b49-4e5c-aa0f-691372e24292\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cc093448647d224cab9e64c4e3f5cbec-216dcb966dfa8746-01" } }, { @@ -214,8 +227,9 @@ "responseHeaders": { "content-length": "193", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-49abba41c37b2343a3c53ed427fbd25a-98bdd1391273414c-01" } }, { @@ -229,8 +243,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ea61b0313d47364bbfbc81d7819f842a-42c9302eae650f4b-01" } }, { @@ -244,8 +259,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:45 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0a2fa4903b7741429693a83dab59c209-8d070581d6b47845-01" } }, { @@ -259,8 +275,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-350e80823310544fbe3f38c4ca480407-931d51ce3f00274f-01" } }, { @@ -274,8 +291,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ed496c12acdc934a8067d422041fdbef-fabde7d6422cac45-01" } }, { @@ -289,8 +307,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d4a1f9b56fd8ef4a9a35e2e7fa65a89a-b1aaaa016006a94b-01" } }, { @@ -304,8 +323,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8d6ad8c92d6e4741a927c3108a409b58-ddeee83469311540-01" } }, { @@ -319,8 +339,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7466ed4ef50eb64b9403cfcb44369aea-9eead37848e0cc4e-01" } } ], @@ -328,5 +349,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "271ccdb22d3cdaed433e8b8cd0021126" + "hash": "b66d173974215540a7685ac168af72f4" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.json index 8c934f79a57c..e5d49cf5e56f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", + "date": "Wed, 30 Jun 2021 15:29:43 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fea0099000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "6614c87c-7b25-4e3b-be59-8c46e70b8e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3508c62c9b971043abbff73d96b3bc0e-54eba48e9533f045-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-724191cf552af34e831a40a91442058f-5b2e1c1e5abeaf4d-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ef5756eb06526a40bd42ffbdd1b20946-da6f027400f76b49-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:49.9277781+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:49.9278184+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:49.9278615+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:44.7774518+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:44.7774778+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:44.7774943+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-624fc6c27e63fb4c930858d7b4ff0bac-838d86d1c3aa2043-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-338527b7688b8849a8435289c56d3771-0180057765ff7b4c-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3738f1f9e020f64aaa578413ae900ee0-d5a7ccd5e367084b-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-37bbed4604ea3347b8f65abb240459c0-9c10ec9a6c99304f-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"f0455f68-b542-4228-87fc-ceb145531e1a\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:50.1034451Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"7b90eec5-d805-43b4-a04e-7e08a7cb0a56\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:44.9539459Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "etag": "W/\"f0455f68-b542-4228-87fc-ceb145531e1a\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "etag": "W/\"7b90eec5-d805-43b4-a04e-7e08a7cb0a56\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0e1d69c326cfe848b98d9f4015c587bd-275d18a86594ac4f-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"6e66d1de-4118-4d6f-91cb-ebd8bcd66503\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:50.1931245Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"342b8452-5aa4-44ba-873a-b672b95ebef5\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:45.0081292Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "etag": "W/\"6e66d1de-4118-4d6f-91cb-ebd8bcd66503\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "etag": "W/\"342b8452-5aa4-44ba-873a-b672b95ebef5\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-32743bf948504b42b0b4fe0d78bd9068-2443deabf8157049-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"9b08f0e0-270a-4019-9b91-6f2ab96e324d\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:50.2401812Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:50.2401812Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"40cfe4fe-881d-4ab5-ad10-7fbece76c023\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:45.0586597Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:45.0586597Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "etag": "W/\"9b08f0e0-270a-4019-9b91-6f2ab96e324d\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "etag": "W/\"40cfe4fe-881d-4ab5-ad10-7fbece76c023\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5db71497c695ec42a0375ece6e3b5d8e-a4232d94d87f934e-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"406b2d41-0798-493e-a523-d7fb9a4b5eb2\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"9e87bd0d-d269-41c9-aac7-0362eef6e1da\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "etag": "W/\"406b2d41-0798-493e-a523-d7fb9a4b5eb2\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "etag": "W/\"9e87bd0d-d269-41c9-aac7-0362eef6e1da\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6bf29330971da54d9c008b079daa1fd7-60a4aef6ac95064f-01" } }, { @@ -213,8 +226,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ea2ee76635f58d45b1c098009723b6f2-5fca902896284247-01" } }, { @@ -229,8 +243,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fbeb753e8862f247b47d7bac3a569dcc-e44f62b6e458eb47-01" } }, { @@ -245,8 +260,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a01212b659e27f429f75b4d9bb055c72-77555aa5ab745243-01" } }, { @@ -260,8 +276,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-90748c8686f412449a5ce5322ad90716-9eb2de7bc6577843-01" } }, { @@ -275,8 +292,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fd6881cddbec41499c0788c62585ff30-adce4330609b1d40-01" } }, { @@ -290,8 +308,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-87f013a8978b6b49a80edfaac86381ab-d3fee1e50dc51040-01" } }, { @@ -305,8 +324,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-185b900a37263149a2552f456bd9ae3a-03268c0f8270754d-01" } }, { @@ -320,8 +340,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9981b14a219ee74e83b0f42e27bc3c9b-8986d95a3cc72744-01" } }, { @@ -335,8 +356,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:49 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7686703b8ed34a42b5ea26acf5247b7b-9d187b8eda90e54b-01" } } ], @@ -344,5 +366,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "10126ea9df8559f07d2c7659fa4dc681" + "hash": "be6ee6403aa11c9e57639e70aef76c42" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.json index ea91b762c2e8..ebc2659223a5 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", + "date": "Wed, 30 Jun 2021 15:29:44 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fec0099000" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "c410173e-1b24-48d0-b926-c995b5d87e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-886ee321aa890b4783ac2f0a114e5c5b-6c0317977abbf84f-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e969ffdd2ac58540af50230bd44a4d28-51370608a9245044-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6b4620fb72ae08498cfd4abeea5590da-1b23352fab1ef747-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:50.9752134+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:50.9752754+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:50.9753237+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:45.8458378+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:45.8458624+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:45.8458778+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a34fb314208a894785b7a84c53c6202f-5c3bcc9a0dfa1a4f-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7f13c1dac17bb549979a05866c1fc48e-2781f0129fb95a47-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dc5a630b90f8854c8234543ab723478c-12984d447ae66442-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:45 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2f9e50abd5f7b2498ea0648a4698ecdd-eeace2097cb63a47-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"9efe6d1b-7a44-418c-8dd2-983186a57763\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:51.1109855Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"9084416d-335d-4c7e-8359-e9c98fff6ccc\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:46.0154695Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "etag": "W/\"9efe6d1b-7a44-418c-8dd2-983186a57763\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "etag": "W/\"9084416d-335d-4c7e-8359-e9c98fff6ccc\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4fab1988a49d334b854afcf026fe7d0e-c318d00ed74bb64e-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"853ab618-7744-4172-881c-1c6c4ef9b77b\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:51.1529972Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"43c66368-875d-4f4f-828a-65d834aa15ee\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:46.0693437Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "etag": "W/\"853ab618-7744-4172-881c-1c6c4ef9b77b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "etag": "W/\"43c66368-875d-4f4f-828a-65d834aa15ee\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-12f2a7e18d97d7439bd6fe57aa2dee79-54d23dfdd2b0b541-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"1fc45de4-d3be-4a7b-adcd-19f47cfb99af\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:51.1894990Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:51.1894990Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"1e2faf0d-e5fe-4763-a2e7-3fe94bece5fa\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:46.1200401Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:46.1200401Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "etag": "W/\"1fc45de4-d3be-4a7b-adcd-19f47cfb99af\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "etag": "W/\"1e2faf0d-e5fe-4763-a2e7-3fe94bece5fa\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-91fa0ebc7c419244a1ebf9490ffe0468-75ebe8ded59cb74c-01" } }, { @@ -197,8 +209,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-44b949c472c1de41bee90e77fee4087e-854a145757cf2b48-01" } }, { @@ -213,8 +226,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-22351e1d78cdcd4587f1eac162f3d5f1-ed9a8564367d8241-01" } }, { @@ -228,8 +242,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e80eefc911c83c4d84f597bcb29df4bf-a69a6cf99703864a-01" } }, { @@ -243,8 +258,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-92fc05e52b80684397f2ba8cdb75e8e0-819334f422bdaa4b-01" } }, { @@ -258,8 +274,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a99c285d12721040b35e899507af7a66-c7e0881dc0cfae4a-01" } }, { @@ -273,8 +290,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-846d03c20e1c1045959f87241ba330ab-5202f4ed06780342-01" } }, { @@ -288,8 +306,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-acc64b76e170d645b99fd033a9f4f358-94a9744959b6e54a-01" } }, { @@ -303,8 +322,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-941186cfbc44214aaa9f158fc6dfe9ea-6557bf3f09b04043-01" } } ], @@ -312,5 +332,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "a6831e87277e3c10211c684ade644972" + "hash": "4c520d5182e4f176d98813e3b8bfce82" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.json index 35ea9450adf3..a167d591ad40 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", + "date": "Wed, 30 Jun 2021 15:29:41 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "cd5a7f22-bc82-414f-9a93-72abc8c39500" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "e390ab33-5487-4c28-af8f-5d77d1945901" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f3b01f2a109b2a449be60e1da59eda53-295cb51cec91ec4f-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0555448ff572744e90c055ceec150936-bed694b9e716ce4a-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b5406e075110b445820f962b3fbbfb0f-2da533f787b3bf48-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:48.2067791+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:48.2068047+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:48.206842+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:42.8750878+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:42.8751183+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:42.8751639+00:00\"}]", "responseHeaders": { - "content-length": "508", + "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a9eee9d5f7209e48bff63d19fb020a07-e918289a76c72741-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7d48763fc3c163468c939d2913b983e9-8e6fee36edb54645-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2aba3a8a2fcec54d8dac1f39aea3c55d-578bd561136a244e-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-420aa41037bde446b46f58407d6f6bc1-42739a5a133c1143-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"db97c398-da16-4d3f-9381-083b7243ce64\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:48.3716508Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"76ca281b-8d30-4e17-9a8d-597aec6d3434\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:43.0515598Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "etag": "W/\"db97c398-da16-4d3f-9381-083b7243ce64\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "etag": "W/\"76ca281b-8d30-4e17-9a8d-597aec6d3434\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6e0635c3e746044d959ffed6c480a030-bc5c865abf069944-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"8b216d07-97e7-4bed-bda6-96661ac1ac05\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:48.4110316Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"c42079a7-3646-4e78-8a2b-9497b0c02a2f\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:43.1069138Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "etag": "W/\"8b216d07-97e7-4bed-bda6-96661ac1ac05\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "etag": "W/\"c42079a7-3646-4e78-8a2b-9497b0c02a2f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-25f4506ead276644bbaa5575f6b41a27-eae4758fc031dd45-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"ffcdbd10-dbfc-4380-9390-f835acc4bc04\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:48.4513570Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:48.4513570Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"40d62083-c0e8-4013-a68c-dee1fb31b96e\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:43.1570605Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:43.1570605Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "etag": "W/\"ffcdbd10-dbfc-4380-9390-f835acc4bc04\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "etag": "W/\"40d62083-c0e8-4013-a68c-dee1fb31b96e\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-23b3360558a80f40957b7e4a79667c07-943460dc54ed9b4d-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"1cfc9f56-7550-4ec6-a834-4f051288b42c\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"3a9e2ba4-2294-4067-84ba-0360df8b5b40\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "etag": "W/\"1cfc9f56-7550-4ec6-a834-4f051288b42c\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "etag": "W/\"3a9e2ba4-2294-4067-84ba-0360df8b5b40\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cb37a3bd8e169e4988274dd322e74d97-1bfcd3d53e5f6a4e-01" } }, { @@ -210,13 +223,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"1cfc9f56-7550-4ec6-a834-4f051288b42c\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"3a9e2ba4-2294-4067-84ba-0360df8b5b40\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "etag": "W/\"1cfc9f56-7550-4ec6-a834-4f051288b42c\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "etag": "W/\"3a9e2ba4-2294-4067-84ba-0360df8b5b40\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dde36526fdbd46419571b87438447473-85f2cd04bbf90c4b-01" } }, { @@ -230,8 +244,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9f885b58bc65a84aadd7cd5c763a235a-b6033ff7198e0c42-01" } }, { @@ -245,8 +260,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1fb683dd1baed74f9dca5b1d136f9e76-42e85f3c3106fa42-01" } }, { @@ -260,8 +276,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-25d363351627394e833d1f20cac2c042-49f4576030dbf845-01" } }, { @@ -275,8 +292,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-09b72c2bb513ef48bf9390689b51bfca-a0727d9e2e3bef4c-01" } }, { @@ -290,8 +308,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-25ea55ae216523479c3a43dbb6491660-c387fafb73b6e647-01" } }, { @@ -305,8 +324,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7792f03db45fe84abfbebadb632f0d2b-1ea6838b1eda6841-01" } }, { @@ -320,8 +340,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0bac3674319e954bb776cec59f8021f4-e1e42f5a193ac94f-01" } } ], @@ -329,5 +350,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "315ea3c0523aa3869c56604b10b01b91" + "hash": "d576ffec0ee4abe28091b2963b1c01f2" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.json index 2863a7f59076..24d0831b3c23 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", + "date": "Wed, 30 Jun 2021 15:29:42 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "acaf8384-abda-46b3-a19e-954ea6a38900" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "098d5bc0-be03-46ae-83af-5509ad593301" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-88092795b5bbfd48b84573b864cea317-d0647d232a82ff46-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-09d5281609bac7419722d94929ad0dc6-11e1a695d51ec94a-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-58cbaa2c2d07d944a26cf70a7123e06c-30d0d16abe647244-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:49.0770814+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:49.0771029+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:49.0771196+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:43.8317535+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:43.8317779+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:43.8317934+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e272f478fac7304fa8eb974517521ea7-d113422362a00c4b-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9110a7ec629c384abbfb88f86826b879-fd18c8ca174f5b42-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:42 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2164c7843e4f4f449ec7fb82a5ad299d-9a52e01bb9ef9543-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-89a902adb0564848a90e00953300c57b-98a42d6354bb7549-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"20b7b2e7-7956-46cd-9275-c2b7e6fe9f14\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:49.2349007Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"7afaba4b-8c56-42e6-9d0a-01515e0597de\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:44.0045584Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "etag": "W/\"20b7b2e7-7956-46cd-9275-c2b7e6fe9f14\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "etag": "W/\"7afaba4b-8c56-42e6-9d0a-01515e0597de\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b6364f0750b2d5468edb0258764d1b41-2819f3ea4afb0242-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"b913f60d-3cd9-4420-af0a-6f6a9cc5a0ad\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:49.2851286Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"860ae3e3-fe07-463c-b6fc-d7e422d2659a\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:44.0585480Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "etag": "W/\"b913f60d-3cd9-4420-af0a-6f6a9cc5a0ad\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "etag": "W/\"860ae3e3-fe07-463c-b6fc-d7e422d2659a\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-72bc70f423acc547b9e657ac4818b6f7-c247ade995247246-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"7943bf6b-87d4-4d01-bae7-e2e0f49268a4\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:49.3401747Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:49.3401747Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"bd624a3d-fe2b-485f-94b7-b5c5f0ff418d\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:44.1086628Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:44.1086628Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "etag": "W/\"7943bf6b-87d4-4d01-bae7-e2e0f49268a4\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "etag": "W/\"bd624a3d-fe2b-485f-94b7-b5c5f0ff418d\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-65dc9761872ae246af44ed396e52512b-df01455b7422264b-01" } }, { @@ -197,8 +209,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d9b205ea2be6384ba207dc846e7ed16a-fc597f44b03d2841-01" } }, { @@ -213,8 +226,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3bf156470d2297488eed45f11f94267b-90c8bd574e444444-01" } }, { @@ -228,8 +242,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-35fb4ce15925b447907d5b0f28f1a2e3-986d191571f63e45-01" } }, { @@ -243,8 +258,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ce8da9ddf0bdf246a8f2832f40688048-67a8f43f8dfa7e44-01" } }, { @@ -258,8 +274,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-47c2b7eed3e523448cfa130b2460f5f2-2d455f4cce40ef40-01" } }, { @@ -273,8 +290,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-426c3a4df9e8404193c88c390ea9abb2-4dbf7e2ce08fb14c-01" } }, { @@ -288,8 +306,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-463c02446805c2458daf50fcd1e67048-efe164d80db0324f-01" } }, { @@ -303,8 +322,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:48 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:43 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e973b836e6b9a14ba8dc2b0b11f522c7-545df10f60a7d84a-01" } } ], @@ -312,5 +332,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "87a16779330cd2cc241e8285d6ab4fb5" + "hash": "77c31160ee6462d258968da5d743f664" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.json index 1a84d53c7300..d9fe97f9bbb0 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", + "date": "Wed, 30 Jun 2021 15:29:54 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "cd5a7f22-bc82-414f-9a93-72ab28c59500" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "ef774fe4-b4dc-4a74-a261-96295c257301" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f17cba56423a4f4ea772a58f4c2b03f4-c7208649cee85043-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9883c771f439e94db9fd9fe42e8066e1-94d38c2bc633684d-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e62fab7c7dfa69469158bd6224dbc1b5-58f1a207d103e149-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:59.4658724+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:59.4658958+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:59.4659113+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:55.0749682+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:55.0749921+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:55.0750095+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7bcb6b232d60a04fa75951a376db6a2c-a6b2ce977cdbd745-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5a04cfdcc47c7240b411e9e789a04f54-35cd0680d865c64e-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-22c6d89a8e928f4aaf487d82cf702287-5b2851e7f9eed54d-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-985dc7cecd969c4182a24a4e6569d06e-9da169bdd3d95b40-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"db2129d2-5ce0-41b7-8d02-51d187c637d4\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:59.5886643Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"cbc427d2-9786-4954-9086-2d3d24c7147b\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:55.2505415Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "etag": "W/\"db2129d2-5ce0-41b7-8d02-51d187c637d4\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "etag": "W/\"cbc427d2-9786-4954-9086-2d3d24c7147b\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3d69ed59fce3714cb5829b8cb8c91176-a918cd2fd86d5a4e-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"1be31e68-35d8-4855-9fd1-a971c5ca641c\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:59.6315214Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"129f0e82-b4e5-4e63-8af0-3ce165a020bd\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:55.3103306Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "etag": "W/\"1be31e68-35d8-4855-9fd1-a971c5ca641c\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "etag": "W/\"129f0e82-b4e5-4e63-8af0-3ce165a020bd\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5b4528d5a78f3a46b6b76468051b25a0-fc0c65a251912e41-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"29c0067e-15d9-4137-90ba-a2886c32f72e\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:59.6784929Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:59.6784929Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"19651bc0-cc2f-4f63-91f3-4dc8815c286c\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:55.3600497Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:55.3600497Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "etag": "W/\"29c0067e-15d9-4137-90ba-a2886c32f72e\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "etag": "W/\"19651bc0-cc2f-4f63-91f3-4dc8815c286c\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-94c3ef0c0cd8a3418a304929560cb743-ae750556af70004c-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"cc0ea136-ddbc-414b-a71f-78ce3ca604c8\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"ff7f8b83-7c69-4398-b67e-a486bd4902c4\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "etag": "W/\"cc0ea136-ddbc-414b-a71f-78ce3ca604c8\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "etag": "W/\"ff7f8b83-7c69-4398-b67e-a486bd4902c4\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-980c9dc6edc66b4f8b6c0b7c155f753d-3fd60dbb8a3f2d49-01" } }, { @@ -214,8 +227,9 @@ "responseHeaders": { "content-length": "28", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a45c2e93aadc4a4999369501ab5f4e36-95efbf94b99adc4f-01" } }, { @@ -229,8 +243,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-42b041d9244dd24daf413636987be566-487108b13122f54f-01" } }, { @@ -244,8 +259,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-981196b89bd5814eb4f365a75f3daba5-8a0bbb12161ad447-01" } }, { @@ -259,8 +275,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-33f79a097bcc514a8d70558ce56c593c-3b13cf83bf8a084f-01" } }, { @@ -274,8 +291,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5ad89ec4f3fea04d98274f3db4a1b1df-9259ec21db45b041-01" } }, { @@ -289,8 +307,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:22:00 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-aaaeae5a956cdf44baf41bb0c8b00716-ffa664d6e139204b-01" } }, { @@ -304,8 +323,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:22:00 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8e3c66c007c77a479bdda7f1a6de660d-c65193f016027348-01" } }, { @@ -319,8 +339,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:22:00 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:55 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7a10404315330944a7f4f1ed2065cd4d-bf11098599a49e47-01" } } ], @@ -328,5 +349,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "0e451d06d11c12e5d585fcbd2ebab85c" + "hash": "e72b714a0d4b0e7890aa3763f4736ad2" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.json index cab3930897fa..ee87af428d32 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:57 GMT", + "date": "Wed, 30 Jun 2021 15:29:53 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "cfcd0787-8769-464f-abe9-263ab5a49200" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b271cb1b3101" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0a1ed6e13704644eafc79526ff6f8d40-cd36e39ecba8dc4a-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-74e331bb46a8cc45b1239e3fbac04193-42722d0060364240-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-180131c3ba09f9449bdda3a2c46dc821-6093a5e8fc77e84c-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:58.6092701+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:58.6092965+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:58.6093136+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:54.1132745+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:54.113298+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:54.1133138+00:00\"}]", "responseHeaders": { - "content-length": "509", + "content-length": "508", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ed7718191abf274c8aabee1f0b14f5f6-21d5672a6734e145-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-efe6d2b23fc5c84ba9317a1b54b2156a-96a70d3985bdc745-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-20f9b9d45f481b4eaea222f2135bfc95-8d24c22df8eb5740-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4cd7f4dd49619a4cb9d576589de2cb6f-b603f1aca8e4694e-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"0aaa046e-8773-4446-9ced-a384d2475b09\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.7715325Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"ecee8c5e-d8f2-4e2f-865b-e32f9dffec09\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:54.2780673Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "etag": "W/\"0aaa046e-8773-4446-9ced-a384d2475b09\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "etag": "W/\"ecee8c5e-d8f2-4e2f-865b-e32f9dffec09\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3ab970894dfae9428019c196cc68defa-7a5f67f27db22042-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"b539f878-7570-4330-a9e0-b4f822261a14\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.8164801Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"14bc4454-8381-470b-b883-646643a54f94\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:54.3312132Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "etag": "W/\"b539f878-7570-4330-a9e0-b4f822261a14\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "etag": "W/\"14bc4454-8381-470b-b883-646643a54f94\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ef608f59643be24394f6dec2544b41b7-aa7670300565784b-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"1113b1c7-3b93-43b9-af03-77ee220cf465\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.8581238Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.8581238Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"b8df4cc6-604b-497d-8872-fdf62734e3e4\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:54.3797089Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:54.3797089Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "etag": "W/\"1113b1c7-3b93-43b9-af03-77ee220cf465\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "etag": "W/\"b8df4cc6-604b-497d-8872-fdf62734e3e4\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a099068e31e6114caad6e495b430089c-928f7685d6760d42-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"f923d1b9-f61c-4f28-96f4-4758ffa7c636\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"d5143355-b52b-4329-ac35-9dc439769ae9\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "etag": "W/\"f923d1b9-f61c-4f28-96f4-4758ffa7c636\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "etag": "W/\"d5143355-b52b-4329-ac35-9dc439769ae9\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1b1b81352322c44ca0dab847c325e44f-0348aa851b9b6647-01" } }, { @@ -210,12 +223,13 @@ }, "requestBody": null, "status": 200, - "response": "{\"nextLink\":null,\"value\":[{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"f923d1b9-f61c-4f28-96f4-4758ffa7c636\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}]}", + "response": "{\"nextLink\":null,\"value\":[{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"d5143355-b52b-4329-ac35-9dc439769ae9\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}]}", "responseHeaders": { "content-length": "263", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a5f559ecc5b5ff45bb89eee00c49e234-29f26a85c8751e44-01" } }, { @@ -229,8 +243,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dacd634157332b43a871c358cb342245-8a57679e4790d141-01" } }, { @@ -244,8 +259,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-bcaed71f7617504cb8911b23e3ad800b-5b0e844202221048-01" } }, { @@ -259,8 +275,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-11d5d67cf9f46b4c84d362ca18ff3cf8-4eb937ddcdbf9b48-01" } }, { @@ -274,8 +291,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-713f76b5cc82564ebba671eb09b4bfcc-a206d47f9c575b40-01" } }, { @@ -289,8 +307,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0c6d8b82d1c40d42893b43638493a459-d701f55b6a92ed49-01" } }, { @@ -304,8 +323,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4ae966e70867f84fa0f343c50f382ea2-e3dcc7d652110241-01" } }, { @@ -319,8 +339,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:59 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:54 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0e52311953f0484ebacb7e26484cd1ef-b0620e8602d3cb4a-01" } } ], @@ -328,5 +349,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "169f179b1fe0af826eea07c9724c154b" + "hash": "1f38988cac26e1aa9b91aedcbdf43d69" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.json index 800300fdebb7..3d737ff45bfc 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", + "date": "Wed, 30 Jun 2021 15:29:47 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - NCUS ProdSlices", - "x-ms-request-id": "3f1bb9fa-5334-467a-9094-cbe54e059a00" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "ef774fe4-b4dc-4a74-a261-9629f6237301" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-47315e7a1254f1419fe3f358d44f34e0-8e199c7a7e89b74e-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d3b780ba20d61946a6a66d852560589f-5aed023593dc7e41-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5d30c247f2b15c45a82315185478eb9d-d73c93dbcf57eb47-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:53.8205166+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:53.8205454+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:53.8205821+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:48.8850004+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:48.8850243+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:48.8850399+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1dbcd6fd019e6844b61e737018c64d3e-cf58f6167c067740-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5ee9b18a7522df4cbcfe21517ebee7bb-49fa9b551055e84a-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c6b9ad21bdb8aa409ec4c0ca0522bcf8-7ef6456aa9395745-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5eaf2327bcc0fa4ea5dab373187d0c5b-502293ca42be944f-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"884c8177-3ba1-4700-9a54-418a82cc542b\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:53.9681472Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"475fd856-7407-47e5-9c4a-a3ff8be426bb\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:49.0544888Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"884c8177-3ba1-4700-9a54-418a82cc542b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "etag": "W/\"475fd856-7407-47e5-9c4a-a3ff8be426bb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d46931ab9c688f4dbcae36711a27f9d3-696809f22161bf41-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"ed186328-30de-4dc4-a6a2-566fca81adeb\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:54.0072893Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"3c3b3936-ba62-4cfe-989e-7ef46355101a\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:49.1085290Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"ed186328-30de-4dc4-a6a2-566fca81adeb\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "etag": "W/\"3c3b3936-ba62-4cfe-989e-7ef46355101a\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8db2e18fe5bea9419596af4fe7cc132b-5bec8cb152e13c4b-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"e7bde5a8-6cb5-4b66-8e45-bd5a1a3f25e1\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:54.0468802Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:54.0468802Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"ae395bf7-21c0-47e4-865a-25f57321c09f\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:49.1581080Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:49.1581080Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"e7bde5a8-6cb5-4b66-8e45-bd5a1a3f25e1\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "etag": "W/\"ae395bf7-21c0-47e4-865a-25f57321c09f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1b43a1350b528543b613dc413c0455dd-d6d2702323993640-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"02307569-e028-4395-b823-80ab766429a7\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"2740d706-23f3-404a-bd31-52173d597bd7\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"02307569-e028-4395-b823-80ab766429a7\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "etag": "W/\"2740d706-23f3-404a-bd31-52173d597bd7\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-669a72011c05434ea97c149d5dbdff37-38943477d5e28e4f-01" } }, { @@ -213,9 +226,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"3209be74-a4a4-4877-9435-4422f3410ce3\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "etag": "W/\"68c65d07-450e-4a7f-bd39-43f5288b6286\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6aa66b00d7af614da02ea7533ff8024d-5aa89d571786f44b-01" } }, { @@ -229,9 +243,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"abe676d8-1045-4414-ae49-ea3092e3c9b8\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "etag": "W/\"7fe8e37b-842c-4d9f-9d2c-a25f9edef3eb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-01e9bf62674ced42b06d2661b64be500-9d183cc7ec0e9744-01" } }, { @@ -242,13 +257,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"abe676d8-1045-4414-ae49-ea3092e3c9b8\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"7fe8e37b-842c-4d9f-9d2c-a25f9edef3eb\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", "responseHeaders": { "content-length": "234", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "etag": "W/\"abe676d8-1045-4414-ae49-ea3092e3c9b8\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "etag": "W/\"7fe8e37b-842c-4d9f-9d2c-a25f9edef3eb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e793425b50dfc44ba7d775208db5822a-92b860886114ff42-01" } }, { @@ -262,8 +278,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-16ae4a9d5d6d2e4180ba4df69655b9bc-3dadc01ccc3f8e47-01" } }, { @@ -277,8 +294,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-89c3e7ae0e896f44a0354acba39ad1f5-c4c46e00f7b9fc4d-01" } }, { @@ -292,8 +310,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fdd9d365c4e79f40a4cb20d83cccd939-7bec551aabd60843-01" } }, { @@ -307,8 +326,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-84f2ddf954fc8d4ca824da8fde77b61c-b53f2c73f8bd064f-01" } }, { @@ -322,8 +342,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9c5837cdcfbabe4a879499a8c5368fab-f16f28e92bdd3846-01" } }, { @@ -337,8 +358,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3607ed7cff93cb499f2700cde57bd4e1-44566cdaebc58941-01" } }, { @@ -352,8 +374,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2570e27c25c7d644bc33edf8b26450be-50ed4734fa9c8442-01" } } ], @@ -361,5 +384,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "de6b0549ad58696de0e1bb6f8cfa662e" + "hash": "2a80d2a1b431675d460783b80a9aca55" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.json index 6ca554c8de87..f12240d58a16 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", + "date": "Wed, 30 Jun 2021 15:29:51 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "62e49051-bb50-44d7-be6a-d0ce682f8e00" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "6614c87c-7b25-4e3b-be59-8c46a70d8e01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b4797ab8de16f3448da01ce8b0f71ee0-f4e8ec07f111644e-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ce86479ab728b04a8a84dd9e9d7c82b7-b7b4e1f670805145-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ae4119630458c94caed5ea3b9885c671-a6d53a06bf745945-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:56.8595611+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:56.8595882+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:56.8596052+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:52.1563257+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:52.1563501+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:52.1563687+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-84ce0df3128da442974b183a9b3509e6-f98ee883f40fde42-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-22af0e93cadf344fb6c0088220172f7b-c177069d18f71147-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e5d772a36c2ba94a9e0656b7f400209c-ebc941a2ea9e6f4e-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f02e467d3164ab44a15a6944adf83ff6-4de971140d02e746-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"abf40563-2631-48e7-bb5a-7a3a6738775b\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:56.9861251Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"f50f1cc0-31ea-480d-a0cd-51759097cec1\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:52.3345427Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"abf40563-2631-48e7-bb5a-7a3a6738775b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "etag": "W/\"f50f1cc0-31ea-480d-a0cd-51759097cec1\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ab1e7c6867d0364c921b1aa2cdb47da7-10878053e66d5340-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"929d7de2-d18a-40a9-80cc-3cb7d3bbbaf7\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:57.0257492Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"8ba5f892-253c-464e-af9b-19ef60983601\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:52.3856506Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"929d7de2-d18a-40a9-80cc-3cb7d3bbbaf7\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "etag": "W/\"8ba5f892-253c-464e-af9b-19ef60983601\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6f40704d07999245b6c02e0f3c22210e-a1390e3dbe7b2d45-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"874c23c5-9bb9-42af-bfa0-c3a9eb36b1fe\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:57.0717096Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:57.0717096Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"033d57bf-3547-45a1-bcbd-3bbf53a9c0c5\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:52.4372633Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:52.4372633Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"874c23c5-9bb9-42af-bfa0-c3a9eb36b1fe\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "etag": "W/\"033d57bf-3547-45a1-bcbd-3bbf53a9c0c5\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ddf4ecbbc46b6e4e896d32a19498986b-7ae5a32526a52e45-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"2d925832-a786-4207-a0aa-8a466195421d\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"e3b295ed-7bc7-4c37-8183-7c519d74cfcb\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"2d925832-a786-4207-a0aa-8a466195421d\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "etag": "W/\"e3b295ed-7bc7-4c37-8183-7c519d74cfcb\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-50f5a7cfb30b9e4ab5b2930b7fa742cf-c16f37c1736b464b-01" } }, { @@ -213,9 +226,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"76d12eca-82ed-445f-9029-3f14152b0183\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "etag": "W/\"f88e6aac-1eed-43f3-b749-aa288a65ce08\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d1a0aa0c5703d1418837e80a14464145-7178f02bbc67a242-01" } }, { @@ -226,13 +240,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"76d12eca-82ed-445f-9029-3f14152b0183\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"f88e6aac-1eed-43f3-b749-aa288a65ce08\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", "responseHeaders": { "content-length": "234", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"76d12eca-82ed-445f-9029-3f14152b0183\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "etag": "W/\"f88e6aac-1eed-43f3-b749-aa288a65ce08\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ccd4d5384cf5e84aadfe1577755d4833-15736c6d5e6d9f4d-01" } }, { @@ -246,8 +261,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c7cd0dca9ea6154684524fe85f4f9df5-f837cbe18de1134e-01" } }, { @@ -261,8 +277,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a692618f00b32249ac8229cac120aba8-a0a563608758a44c-01" } }, { @@ -276,8 +293,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5242754f1c3cea42a902886df7adf530-8b9aafdcac525847-01" } }, { @@ -291,8 +309,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-993f4a7d3271e548b33628c7a2934796-1d718c54bc5d5b4d-01" } }, { @@ -306,8 +325,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b0007910098ad245be20de59825b17e5-527e39fb18854748-01" } }, { @@ -321,8 +341,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4f687fe579f6ab4ca67904e91b386ba3-ceb404cc2e7d6b44-01" } }, { @@ -336,8 +357,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7c45d04c10d48c47a96cb6f60f78ef9d-838db237632be44e-01" } } ], @@ -345,5 +367,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "5e7688b74fccd428a2628cbd2ae98328" + "hash": "0522c7f48900d9e23bfbdb64e0a2dbdc" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.json index bd42c8d915ab..99d10985e77d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", + "date": "Wed, 30 Jun 2021 15:29:50 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "526d55b2-138a-44da-81ac-95335f538600" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "77ec49a3-73cc-4e5e-841b-171231e88b01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-86fd0c40f86956438cd308fbbe0e6ee7-617645310f810646-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4446981e193cbc4489e5f95faa33371e-c736cbd37e404a4e-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-14d806aba39daa44a6d24bb9b318ddc0-7f31e675d680954a-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:55.8399268+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:55.8399601+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:55.8399805+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:51.0235225+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:51.0235487+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:51.0235674+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-77ebc7b55a6fa74090a0209822760703-b143ef6dbc23a94b-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5b767c6d6f84f34aa2d46b54ba176488-651094d885917041-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1c6e543f669efd40b72668ab0dfd15e0-58bab75264f87147-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-65239731c2bcf24db2c01ce35f59b482-a0f155ed6266674a-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"adec04d3-49d7-4b50-9276-8fbf600e144f\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:55.9970786Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"9374e443-ac39-4886-8cd5-85d01ad4575a\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:51.1909156Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "etag": "W/\"adec04d3-49d7-4b50-9276-8fbf600e144f\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "etag": "W/\"9374e443-ac39-4886-8cd5-85d01ad4575a\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6b0bd66f6a20ca41b431863fdd1bd169-293003196b791c4c-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"7d5bd519-6db1-4434-9c80-a9c8bad289ea\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:56.0469688Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"6f3bd428-7f92-47a5-b5a3-81622e9a5bed\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:51.2443727Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "etag": "W/\"7d5bd519-6db1-4434-9c80-a9c8bad289ea\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "etag": "W/\"6f3bd428-7f92-47a5-b5a3-81622e9a5bed\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-216c3d4a7801ad4bbd5cbd45ad77a2b1-d93f55d5b763e347-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"bada0bec-aafd-491a-ba6a-8d3fe0949806\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:56.0931252Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:56.0931252Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"6d955bf3-720b-4668-8107-09efc65dd1f3\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:51.3060135Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:51.3060135Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "etag": "W/\"bada0bec-aafd-491a-ba6a-8d3fe0949806\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "etag": "W/\"6d955bf3-720b-4668-8107-09efc65dd1f3\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d2ceefb22a75c446b2afda2076e75266-70c8f5a4be273a40-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"af308043-55f1-4426-a091-a61ee3d3b3d4\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"5b8dd3f1-c1bf-44cc-b441-a2fda5c4ed56\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "etag": "W/\"af308043-55f1-4426-a091-a61ee3d3b3d4\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "etag": "W/\"5b8dd3f1-c1bf-44cc-b441-a2fda5c4ed56\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2754296b0eb33d498bfe8768340ba668-3ada1a701a368847-01" } }, { @@ -214,8 +227,9 @@ "responseHeaders": { "content-length": "195", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-896a10ec0301c447879b9cd6167adb8c-528591102263d549-01" } }, { @@ -230,8 +244,9 @@ "responseHeaders": { "content-length": "248", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8bb44e1f433c8641837807a9c5dd4662-0fbc1bc9bca7ad40-01" } }, { @@ -246,8 +261,9 @@ "responseHeaders": { "content-length": "194", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-73bb4a36be2bab4483c49158e6752584-4840eed3a1f5174a-01" } }, { @@ -262,8 +278,9 @@ "responseHeaders": { "content-length": "194", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-586ac45603999642874eb424bbee3c8d-fcf7289177512a41-01" } }, { @@ -277,8 +294,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-610d945af4376a4ab571a52ffaab3fcb-ee75a2f7e5e9064b-01" } }, { @@ -292,8 +310,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fdd9da25b3a36a42a166b99fad3840c4-333c0fb8a0750b47-01" } }, { @@ -307,8 +326,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-638a056649fb6a42876f406a731d8df8-e3493d78fe8cf943-01" } }, { @@ -322,8 +342,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-97b76ca40a6f8245869685ebc41a77d2-4cd956da140c5542-01" } }, { @@ -337,8 +358,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c5f85a78db729c4b9e2406484c316a81-5deb4ba23940d349-01" } }, { @@ -352,8 +374,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d8f99002f2caef4d8d7a40ff63ba7016-d6829c6b445c6340-01" } }, { @@ -367,8 +390,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:55 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:51 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0aa01beb5088934c9dcbaaedcabaf3e4-189df50f825a824b-01" } } ], @@ -376,5 +400,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "108181804da351b6c5a7cd975bf0e3ed" + "hash": "bb4da67f8ccd983cd63d98f41a9da297" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.json index 47326f5813a1..2482357fc4e1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", - "content-length": "1319", + "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", + "date": "Wed, 30 Jun 2021 15:29:49 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "bae26e18-875f-4dad-9afc-e5fe540a9000" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "f0f9d77a-d74a-4c90-8c91-5ae535347701" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-440f4d6924643f4aad9d0fa8454bbb3d-875503c295163b4d-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a66af1ace4aebf4884f97dcab4312a0e-f2941f885dd95348-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-bc5c78f8a243e7458faaba69eccdf287-13efa31469bb7b40-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:54.8423441+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:54.8423709+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:54.8423881+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:49.9495636+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:49.9495864+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:49.9496026+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-779a6f10a64882498e048c0395f3e42a-230e449a07aca84c-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ab52a44200c8f642bdcb1d37db207051-099c10cabcae9141-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:53 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-72d250c5e2339c4894a627740b33be8a-a188d40e6de3a244-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:49 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-26b04a96c93cd741979e9980af081de7-505f6b28c585c145-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"6a905048-ded0-4276-8fd5-ff156911ff7c\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:54.9824562Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"59e2902f-4920-4e62-afe4-3d63d21913f8\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:50.1230191Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "etag": "W/\"6a905048-ded0-4276-8fd5-ff156911ff7c\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "etag": "W/\"59e2902f-4920-4e62-afe4-3d63d21913f8\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3cb28031ff6bd14983efb10183ef99de-d50e4c9322bdce47-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"53e50e94-33c6-4034-9147-330e989e832c\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:55.0237202Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"d29fa746-f244-48e0-9967-9b03b7f67e24\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:50.1804034Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "etag": "W/\"53e50e94-33c6-4034-9147-330e989e832c\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "etag": "W/\"d29fa746-f244-48e0-9967-9b03b7f67e24\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-98b9533cdf746b48bfe3a0f1b747aa1b-d015a287806d9340-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"48069dbb-6a92-4c9f-b408-4860bb05c2cc\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:55.0674481Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:55.0674481Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"613f5b1f-7657-43ac-90fe-e41a802b0b34\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:50.2315421Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:50.2315421Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "etag": "W/\"48069dbb-6a92-4c9f-b408-4860bb05c2cc\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "etag": "W/\"613f5b1f-7657-43ac-90fe-e41a802b0b34\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-755a11e7cb6aa145acb3d841deeeb8c4-e5519627d40e6349-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"8f81b9b6-4be0-4078-baeb-450b404327d7\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"a0eec570-3d0c-4d82-be75-6cf53c6bdc0e\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "etag": "W/\"8f81b9b6-4be0-4078-baeb-450b404327d7\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "etag": "W/\"a0eec570-3d0c-4d82-be75-6cf53c6bdc0e\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c9a11193f368d34d92018dd581aa9e18-6d5c1bdb04ff0449-01" } }, { @@ -213,9 +226,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "etag": "W/\"e76aad89-c6fb-458f-83fb-f0537a0fbb5b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "etag": "W/\"948c4806-4f3b-4383-9c66-6c7b48e62e62\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-871dde4813970444859ffdc44dc11d4d-896ab4629350e046-01" } }, { @@ -226,13 +240,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"e76aad89-c6fb-458f-83fb-f0537a0fbb5b\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\"}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"948c4806-4f3b-4383-9c66-6c7b48e62e62\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\"}", "responseHeaders": { "content-length": "208", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "etag": "W/\"e76aad89-c6fb-458f-83fb-f0537a0fbb5b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "etag": "W/\"948c4806-4f3b-4383-9c66-6c7b48e62e62\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1c056979f60fde4b8f293c5b5dffcfd8-d83c04c8a78e6440-01" } }, { @@ -246,8 +261,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ef57641f79f42346a0cd29182b1156da-b90fee8ef9ff4448-01" } }, { @@ -261,8 +277,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-3d9ff74f1e6600428897635428621caf-26f38bf00aeb084a-01" } }, { @@ -276,8 +293,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0169066025ec6945b7f94db44135fa69-7cfe106c860ad144-01" } }, { @@ -291,8 +309,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6435d720b551d7478bbdb1b481895cd7-d208dd27e0599649-01" } }, { @@ -306,8 +325,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-83a5e94c162d7e4ea473ee421327bfd3-61622826c1796946-01" } }, { @@ -321,8 +341,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-00a4e5e92031144eba8f62eb1ca3760f-22712062cc2b0740-01" } }, { @@ -336,8 +357,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:54 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:50 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9b73b3b517e65044a6f692a02a0d94f0-5c88fa3d0563be46-01" } } ], @@ -345,5 +367,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "fcd21abfc69d5e1f9ef6467dacb9a79e" + "hash": "9c42f01c47d6fbbc84dfa457061fd4bd" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.json index 711765e3c0a0..ff6c2f4c0114 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", + "date": "Wed, 30 Jun 2021 15:29:52 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - WUS2 ProdSlices", - "x-ms-request-id": "c151beef-47a5-423e-830e-3faa87609100" + "x-ms-ests-server": "2.1.11829.9 - SCUS ProdSlices", + "x-ms-request-id": "cef341fa-514e-4655-936b-5e8102a35601" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5361b4b26eefc848ac18d65f985e2f9c-1da14a896b6afa45-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ff0c47ed49ff284ebe2d8bfe74bd3805-fb5d9aee530ab843-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:52 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c07483cfad58e64a87cc749084334373-5bc49981a9ef9649-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:57.8354703+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:57.8354939+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:57.835509+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:53.2054901+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:53.2055175+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:53.2055349+00:00\"}]", "responseHeaders": { - "content-length": "508", + "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-82a71d27601b9248ae89fb2d2b849833-0751763bab81b142-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5e2e91d2fe32f7479e06cd96511939c8-5d743d903d7d7d4a-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fe9f34ea6b861f448f634d271c3f292c-dd4716af43b7724c-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8a686367ce87bb43805a96580f5bf5f2-e35022d50fd3624e-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"10f55dc1-0335-442f-bbd3-8c2000ce1e96\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:57.9737926Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"f2455132-9156-4ee5-ab60-88992fb55ee0\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:53.3783342Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:56 GMT", - "etag": "W/\"10f55dc1-0335-442f-bbd3-8c2000ce1e96\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "etag": "W/\"f2455132-9156-4ee5-ab60-88992fb55ee0\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4d6d5bdb2ce01944ad6ba5f40d3158ab-2575c57673d7ad44-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"1396c992-b2f4-49de-8a01-ec1e116f7d06\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.0164441Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"e4dc6d55-9363-4d0b-948b-d9c97ced507a\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:53.4355111Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "etag": "W/\"1396c992-b2f4-49de-8a01-ec1e116f7d06\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "etag": "W/\"e4dc6d55-9363-4d0b-948b-d9c97ced507a\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-dab652332d8c304cb699729d70b53ad7-a13d32befebd9b47-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"82f15f25-1866-446b-9470-dec00e5e9842\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.0556415Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:58.0556415Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"a802f753-6cd1-415b-b71a-b5cdee0f8954\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:53.4860471Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:53.4860471Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "etag": "W/\"82f15f25-1866-446b-9470-dec00e5e9842\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "etag": "W/\"a802f753-6cd1-415b-b71a-b5cdee0f8954\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cd9bf7fa688b884aa93a7625b1da0ad7-823731cc8d9a8e48-01" } }, { @@ -197,8 +209,9 @@ "responseHeaders": { "content-length": "303", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e05ea6723a70ad42ae5119978a26ea2a-7b76627d45881242-01" } }, { @@ -213,8 +226,9 @@ "responseHeaders": { "content-length": "316", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2330c1e30de1584e9be1d59c38a49d70-2775bdbdf61b404b-01" } }, { @@ -228,8 +242,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-194c0473c1657341a35439181ee9be4f-dc49b64644363b42-01" } }, { @@ -243,8 +258,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5b1fc874d1e46d42aaaa761a727b0666-1c16c33f6eb48e4d-01" } }, { @@ -258,8 +274,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5a67edf6b76b5b4ba055cad1ccf81a7d-b4b6a6e241015745-01" } }, { @@ -273,8 +290,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-303e06aba9fda04d8e07b82a87ea41aa-59ee47b94c20a34e-01" } }, { @@ -288,8 +306,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6518d554a129124a965ce6e2cf41325b-91546fe23adacc4c-01" } }, { @@ -303,8 +322,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:58 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:53 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ce9790f34832334788bcd3d5d735889e-8c86a68522ffa244-01" } } ], @@ -312,5 +332,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "fc3f2e755a8ba9e6ce1009b66d5bd44e" + "hash": "dbca938aee88adb9898b246f0ce3e56f" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.json index cd4ca0d9b4cb..c7eb3242f33f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", + "date": "Wed, 30 Jun 2021 15:29:46 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7feb85d29100" + "x-ms-ests-server": "2.1.11829.9 - WUS2 ProdSlices", + "x-ms-request-id": "632b92eb-9ab3-4378-ad02-0f25d87f4501" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1fa9786887e5804c921a862301e9289c-80906789d721a745-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-624aa5a7763ba3439eed3a0043e0c7eb-46c358c64514f940-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-09a83a05b3b18444bd143c4696729e2f-d0cd5169488aec40-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:52.8076011+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:52.8076254+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:52.8076406+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:47.8067275+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:47.8067507+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:47.8067679+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-58ee74947c7de94d9e2f3aad8a0a700c-1b71103fa0e27a40-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-2f6d3d0eff0aa4458176568358219821-5ee0dfea76cb5045-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-585abf7be9b93b48b4f8633d9b5b884e-60103f399b99454d-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-706d5e11203eaa4986646522e697a54d-85cce35e1f5a434f-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"d3854bb8-5d9a-4360-a1fa-5dd36258ab8b\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:52.9600949Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"ce376667-8325-4a9e-8d54-48eec77fa105\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:47.9836790Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "etag": "W/\"d3854bb8-5d9a-4360-a1fa-5dd36258ab8b\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "etag": "W/\"ce376667-8325-4a9e-8d54-48eec77fa105\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-223997c444b0944d975715da73b4afbb-cb7033e8a2e75640-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"aacd9005-0d43-42bb-8f3c-5cd750adbd6d\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:53.0100330Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"762326c5-d265-4a5f-abe1-b000b266c711\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:48.0356326Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "etag": "W/\"aacd9005-0d43-42bb-8f3c-5cd750adbd6d\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "etag": "W/\"762326c5-d265-4a5f-abe1-b000b266c711\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0605a07a8118914c90f5960388a7332f-b712001c2e210648-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"0e053f35-c471-46ef-8ef2-06bac4e4a501\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:53.0515627Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:53.0515627Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"2a7cd5d7-66d5-48a6-9b52-a87399137d3f\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:48.1006403Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:48.1006403Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "etag": "W/\"0e053f35-c471-46ef-8ef2-06bac4e4a501\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "etag": "W/\"2a7cd5d7-66d5-48a6-9b52-a87399137d3f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-56444dbd36ad334685ffbf46a2fccbd8-02d63a17f0a7ad42-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"32f6e803-ad2b-4c4c-852a-cc1588dfa165\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"2dc49799-4f93-4760-b008-6db348a0265b\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "etag": "W/\"32f6e803-ad2b-4c4c-852a-cc1588dfa165\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "etag": "W/\"2dc49799-4f93-4760-b008-6db348a0265b\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-45a6e079f6d25649a64095d53ffefa48-917effe084101042-01" } }, { @@ -213,9 +226,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "etag": "W/\"c26fdb22-a1fe-4fc1-8b78-218df66637bd\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "etag": "W/\"d747749a-6973-471c-adfb-44f9def469ad\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c79e5c2fd272e640a871767846e1b410-c212eb80a4d05f4d-01" } }, { @@ -226,13 +240,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"c26fdb22-a1fe-4fc1-8b78-218df66637bd\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\"}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"d747749a-6973-471c-adfb-44f9def469ad\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\"}", "responseHeaders": { "content-length": "208", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "etag": "W/\"c26fdb22-a1fe-4fc1-8b78-218df66637bd\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "etag": "W/\"d747749a-6973-471c-adfb-44f9def469ad\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5659170d916d3e42877dc98c053a3e67-33857300c17f954f-01" } }, { @@ -246,8 +261,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a9b178e7d82dac43857c05fefb44af71-0eaa5939b1a90b47-01" } }, { @@ -261,8 +277,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-7d622104ed60e641b81d30b2b93ccb2d-5f04ad1b8ff24c4a-01" } }, { @@ -276,8 +293,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f710f46403d32f4b8fcc7edb68dde3fb-50c5bff7b5965441-01" } }, { @@ -291,8 +309,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fb3941adaa848e48827bbfb99fc1c387-78e4deb19a327c4c-01" } }, { @@ -306,8 +325,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a312369704ffe84c9d0c52df3dcc2c59-076303549318484b-01" } }, { @@ -321,8 +341,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c7dc3944d3d4644b8dce71b1a6285c06-60d9a0ff60b83e4b-01" } }, { @@ -336,8 +357,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:52 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:48 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-b335e7a2455c6a458bbaea4681db0504-24a8390a2aaabd4c-01" } } ], @@ -345,5 +367,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "475dc9cf7500a14088d502fca474bcc4" + "hash": "eec3df80e923bed78ade84e84e50e385" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.json index b398b24e2a8a..4d107d0b2458 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", + "date": "Wed, 30 Jun 2021 15:29:45 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - SCUS ProdSlices", - "x-ms-request-id": "d38bd2de-8bad-41d1-9274-7feb55d29100" + "x-ms-ests-server": "2.1.11829.9 - EUS ProdSlices", + "x-ms-request-id": "77ec49a3-73cc-4e5e-841b-171242e78b01" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1b441601bcbe5d4e90dd5b753e242f75-3032374095505044-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-433adbc23fbd7c429a28fe9934131e2b-22d7b3a9bd863249-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c55145fd2219614ba3ae9fab9e184344-87d959c806c30d4c-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:51.8206176+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:51.8206591+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:51.820679+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:46.774238+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:46.7742623+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:46.77428+00:00\"}]", "responseHeaders": { - "content-length": "508", + "content-length": "506", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-6defcca4b52d514588a407e4e01fd7ea-2bda8f6015323d4f-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:50 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-47ffe49204c98c4b91a206eb3aa367e5-b09faef988a5ce43-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-71c100777d91784e8940b38797dc9325-3c8788e1b209e941-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-31471b2bd4cea64285a0564160385844-42926fd5e2677d49-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"5b982ad0-ba88-419d-8c10-e4ce8936768f\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:51.9614192Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"d2be876f-c8fa-4e2a-a66d-d41d71867d6b\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:46.9446629Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "etag": "W/\"5b982ad0-ba88-419d-8c10-e4ce8936768f\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "etag": "W/\"d2be876f-c8fa-4e2a-a66d-d41d71867d6b\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-99db14a8bb385744b73791f89223bb62-c792be716d721944-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"8d2d1d31-d9ef-4757-867b-0d1788ab3fbc\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:52.0026905Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"c7fa755e-19d0-49fa-a092-1dba05fd2156\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:47.0050541Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "etag": "W/\"8d2d1d31-d9ef-4757-867b-0d1788ab3fbc\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:46 GMT", + "etag": "W/\"c7fa755e-19d0-49fa-a092-1dba05fd2156\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-36e7776d342cad4ca487a5665664a4d2-89a71dac166fc243-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"57719f99-269d-4855-baed-81dd92983abd\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:52.0427175Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:52.0427175Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"315ebbf1-d13b-4ee9-aa22-9c6365a95017\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:47.0595466Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:47.0595466Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "etag": "W/\"57719f99-269d-4855-baed-81dd92983abd\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "etag": "W/\"315ebbf1-d13b-4ee9-aa22-9c6365a95017\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-407e76d5b38f8141a76f6dffeb2993ce-1689e5324681a047-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"35be5e33-097e-48ab-aa3d-93019aea98d6\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"82e006f2-5f1a-4c05-b203-a5c8d2be742e\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "etag": "W/\"35be5e33-097e-48ab-aa3d-93019aea98d6\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "etag": "W/\"82e006f2-5f1a-4c05-b203-a5c8d2be742e\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-4a271301c3ed7748aea391642a286e01-4a723b44ab52fb47-01" } }, { @@ -213,9 +226,10 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "etag": "W/\"913d9ff1-171e-4575-b09f-1427f2e63da3\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "etag": "W/\"090bf22e-1217-4189-a3f5-44905e15c6a2\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9df82d23673c364bb76ab92865e5ee5d-a7ad0724a9e0d847-01" } }, { @@ -226,13 +240,14 @@ }, "requestBody": null, "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"913d9ff1-171e-4575-b09f-1427f2e63da3\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"090bf22e-1217-4189-a3f5-44905e15c6a2\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", "responseHeaders": { "content-length": "234", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "etag": "W/\"913d9ff1-171e-4575-b09f-1427f2e63da3\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "etag": "W/\"090bf22e-1217-4189-a3f5-44905e15c6a2\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-19fa166d92d77547bfbefec25886c9c3-2251f959e51c864f-01" } }, { @@ -246,8 +261,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-271833dbc62f8f469007b08794ff263b-d8edfd5a5c05c34b-01" } }, { @@ -261,8 +277,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d898249faedb5b4dab1ac712374202a9-89b83f45722b1441-01" } }, { @@ -276,8 +293,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-200f18e5faa5ff409bcc32653991755e-21a03c1c308bc447-01" } }, { @@ -291,8 +309,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-5e2a0e55856bf842b4c78293e13644c5-57af7d85e7f87647-01" } }, { @@ -306,8 +325,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-f1d7e014b61bda4aa89544142c3d3e9f-7356f9d26d4d3c4d-01" } }, { @@ -321,8 +341,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-e9b905aa65dba741803a008ee1fc018f-1432bfc355d6de43-01" } }, { @@ -336,8 +357,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:51 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:47 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-c978a36a1b34de40a164033e8d2306f8-dfdcfe3ae92e994a-01" } } ], @@ -345,5 +367,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "2c7fb42bf457becf7b6c686bb3f45739" + "hash": "3c97f639749d0ba6e3db87bcecc5357e" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.json b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.json index 36f17e719d93..003311d93e84 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.json +++ b/sdk/digitaltwins/digital-twins-core/recordings/browsers/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.json @@ -2,24 +2,26 @@ "recordings": [ { "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/oauth2/v2.0/token", + "url": "https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token", "query": {}, - "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default", + "requestBody": "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fsanitized%2F", "status": 200, "response": "{\"token_type\":\"Bearer\",\"expires_in\":86399,\"ext_expires_in\":86399,\"access_token\":\"access_token\"}", "responseHeaders": { "cache-control": "no-store, no-cache", "content-length": "1325", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", + "date": "Wed, 30 Jun 2021 15:29:40 GMT", "expires": "-1", + "nel": "{\"report_to\":\"network-errors\",\"max_age\":86400,\"success_fraction\":0.001,\"failure_fraction\":1.0}", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+wst\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11384.5 - EUS ProdSlices", - "x-ms-request-id": "b303fb60-9b87-4660-abd8-170c6f9e8b00" + "x-ms-ests-server": "2.1.11829.9 - NCUS ProdSlices", + "x-ms-request-id": "995fb27d-f6fa-4b35-ab9d-b27116193101" } }, { @@ -34,8 +36,9 @@ "responseHeaders": { "content-length": "228", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-1ffd2c1682e2cd46b10e5380529a9923-18f12e0008af5342-01" } }, { @@ -50,8 +53,9 @@ "responseHeaders": { "content-length": "225", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-27f84596ea12a548b4794c72d0168ecf-7c36a7693ef43b4b-01" } }, { @@ -66,8 +70,9 @@ "responseHeaders": { "content-length": "224", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-01f4a0be4f05384d9a95143e71577933-bc46f9230c760d46-01" } }, { @@ -78,12 +83,13 @@ }, "requestBody": "[{\"@id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Building\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"has\",\"target\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"properties\":[{\"@type\":\"Property\",\"name\":\"isAccessRestricted\",\"schema\":\"boolean\"}]},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Floor\",\"contents\":[{\"@type\":\"Relationship\",\"name\":\"contains\",\"target\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},{\"@type\":\"Property\",\"name\":\"AverageTemperature\",\"schema\":\"double\"}]},{\"@id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"@type\":\"Interface\",\"@context\":\"dtmi:dtdl:context;2\",\"displayName\":\"Room\",\"contents\":[{\"@type\":\"Property\",\"name\":\"Temperature\",\"schema\":\"double\"},{\"@type\":\"Property\",\"name\":\"IsOccupied\",\"schema\":\"boolean\"}]}]", "status": 201, - "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:47.2437141+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:47.2437417+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-01-09T01:21:47.2437605+00:00\"}]", + "response": "[{\"id\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"description\":{},\"displayName\":{\"en\":\"Building\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:41.8556036+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"description\":{},\"displayName\":{\"en\":\"Floor\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:41.8556358+00:00\"},{\"id\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"description\":{},\"displayName\":{\"en\":\"Room\"},\"decommissioned\":false,\"uploadTime\":\"2021-06-30T15:29:41.8556557+00:00\"}]", "responseHeaders": { "content-length": "509", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:40 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-111c278f7c596349a1ca1f099d730f8c-b503010c95a8c74f-01" } }, { @@ -98,8 +104,9 @@ "responseHeaders": { "content-length": "285", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-21251f68eff0b549a9bbc42cdc9d485a-6f4c477986b59544-01" } }, { @@ -114,8 +121,9 @@ "responseHeaders": { "content-length": "282", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-0e354ac2c407a84b826974f93de8cf95-6160327224d8b149-01" } }, { @@ -130,8 +138,9 @@ "responseHeaders": { "content-length": "281", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-9217338b95e8d3478b9dcf08e1317691-3a86374a7e9be542-01" } }, { @@ -142,13 +151,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\"},\"AverageTemperature\":68}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"a76dc05d-5eaa-47be-83b8-4ba0d519cbf0\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:47.3934405Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsBuildingTwin\",\"$etag\":\"W/\\\"3360a71e-b3b9-42c4-bcea-2c1059ee1877\\\"\",\"AverageTemperature\":68,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsBuilding;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:42.0347777Z\"}}}", "responseHeaders": { "content-length": "261", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "etag": "W/\"a76dc05d-5eaa-47be-83b8-4ba0d519cbf0\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "etag": "W/\"3360a71e-b3b9-42c4-bcea-2c1059ee1877\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-eb90d09631cc074db7cf8437d5c816ef-a27520ccc8ec9f4e-01" } }, { @@ -159,13 +169,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\"},\"AverageTemperature\":75}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"61f32282-45f4-4de8-8854-e9ea40792e42\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:47.4368821Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsFloorTwin\",\"$etag\":\"W/\\\"941a6b68-6eee-49f1-9dd7-83607ba15fe4\\\"\",\"AverageTemperature\":75,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsFloor;1\",\"AverageTemperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:42.0910469Z\"}}}", "responseHeaders": { "content-length": "255", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "etag": "W/\"61f32282-45f4-4de8-8854-e9ea40792e42\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "etag": "W/\"941a6b68-6eee-49f1-9dd7-83607ba15fe4\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-fe3a6264d3107e45a73f7770960e0b7e-a8040cfdbc9d4b4b-01" } }, { @@ -176,13 +187,14 @@ }, "requestBody": "{\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\"},\"Temperature\":80,\"IsOccupied\":true}", "status": 200, - "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"59a3a83f-3a5e-42a0-a2bc-b0203d3995ae\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-01-09T01:21:47.4766731Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-01-09T01:21:47.4766731Z\"}}}", + "response": "{\"$dtId\":\"DTRelationshipsTestsRoomTwin\",\"$etag\":\"W/\\\"034d852b-e522-43c7-8286-68553ab57376\\\"\",\"Temperature\":80,\"IsOccupied\":true,\"$metadata\":{\"$model\":\"dtmi:samples:DTRelationshipsTestsRoom;1\",\"Temperature\":{\"lastUpdateTime\":\"2021-06-30T15:29:42.1445552Z\"},\"IsOccupied\":{\"lastUpdateTime\":\"2021-06-30T15:29:42.1445552Z\"}}}", "responseHeaders": { "content-length": "320", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "etag": "W/\"59a3a83f-3a5e-42a0-a2bc-b0203d3995ae\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "etag": "W/\"034d852b-e522-43c7-8286-68553ab57376\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-a447a037db0527408b505e88c3c790f8-750cea3b3c7dbc4e-01" } }, { @@ -193,13 +205,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"8715b8e5-3ea5-4d82-9f50-0d433d4a6844\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"2ab00c2e-34f9-4659-a8d1-4c43fead1218\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":false}", "responseHeaders": { "content-length": "235", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "etag": "W/\"8715b8e5-3ea5-4d82-9f50-0d433d4a6844\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "etag": "W/\"2ab00c2e-34f9-4659-a8d1-4c43fead1218\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-ba14ad700a3a684eaa402528b53f8381-bbb333cd270d034b-01" } }, { @@ -210,13 +223,14 @@ }, "requestBody": "{\"$relationshipId\":\"BuildingHasFloor\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", "status": 200, - "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"da12a46e-a11e-4206-8c1b-465dbb9483fe\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", + "response": "{\"$relationshipId\":\"BuildingHasFloor\",\"$etag\":\"W/\\\"b7edea08-70a5-4d6f-9a0f-e2fe0233b89f\\\"\",\"$sourceId\":\"DTRelationshipsTestsBuildingTwin\",\"$relationshipName\":\"has\",\"$targetId\":\"DTRelationshipsTestsFloorTwin\",\"isAccessRestricted\":true}", "responseHeaders": { "content-length": "234", "content-type": "application/json; charset=utf-8", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "etag": "W/\"da12a46e-a11e-4206-8c1b-465dbb9483fe\"", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "etag": "W/\"b7edea08-70a5-4d6f-9a0f-e2fe0233b89f\"", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-8e76937f4110074da1e21ae29cb4678d-64468cfc9231a64f-01" } }, { @@ -230,8 +244,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d5b48f1734c97949b98a3011257d0dd4-e22cc15fb46e4c45-01" } }, { @@ -245,8 +260,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:46 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-170c18c10e83a0409407aab28318befb-d4d39b9e030c574b-01" } }, { @@ -260,8 +276,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-aa6adfd3d012884bb0d6db1f0e4fb429-f4908de7c29e3742-01" } }, { @@ -275,8 +292,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-d687da82a3e11e49a238d39c9e0a1f06-afbee78150ee2541-01" } }, { @@ -290,8 +308,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-cb13e22d05a17a40abf579c21286053b-d3e63f61b0d6c84b-01" } }, { @@ -305,8 +324,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-61aa257705bdd64d8e6b3cf044533b3e-efd4a12724e9044e-01" } }, { @@ -320,8 +340,9 @@ "response": "", "responseHeaders": { "content-length": "0", - "date": "Sat, 09 Jan 2021 01:21:47 GMT", - "strict-transport-security": "max-age=2592000" + "date": "Wed, 30 Jun 2021 15:29:41 GMT", + "strict-transport-security": "max-age=2592000", + "traceresponse": "00-504b00c2fb48024ebd14796299649254-ae1043afccf8104e-01" } } ], @@ -329,5 +350,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "7a0a347a455c14ad439e879eb27b5262" + "hash": "8ffd88d2113a0769d1181936942b75a4" } \ No newline at end of file diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.js index c6985840aa42..b6b517ab7fa1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_a_simple_digital_twin.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "e68b82a50334a1cad05213ef97e2e82a"; +module.exports.hash = "76b174d4f136e20a0319629aab1e6240"; -module.exports.testInfo = {"uniqueName":{"create-simple-digitaltwin":"digitalTwin161015521921704223"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"create-simple-digitaltwin":"digitalTwin162506688430606433"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4b1c2b43-40c6-48f8-b4dc-f2914dc9ae01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:02 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr85JrCZ7bo8mTEJDcFJYWHGR5w2-R3uNxF9IOwssewpgbReVfx6jYrNe9nLcqYeEXj9DHShwr3aGrNYhz_hkq5Pp3kHK5DShlUMlq-kgNiO_vgtcFU6cMLCWUnCtYoJTGturCfI4AkZJoD7t_eu82oRCXL5dqdX7ElIoKYsF8fVggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:01 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'd12e31ea-411e-46ee-a3a0-3f7fe0951901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:02 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2HP0x1kJ4X-NbN7fH34JXV7f-VvMQXWqv_G47j2ffnJX1D6Rh8bz6cYSkHXanVvkYnOEgUlXMcUgjUxlhpt-eUdZCOQuq6byeft1OSAlXjVOsKZgTLc_eXS7jgFmppzjA4ylJx-kgGJ4PieKkVecceOC8kHmNplQALpu6n9qp3EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:01 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=9e85d91f-543d-4e32-a32a-589e7fdbe0bb&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8cb29d27-6a37-40b9-afff-31c3f9db9f00', + '17f1964b-db13-4bc5-adf0-3c429a938000', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AverwFNsdnJFsd_GOzb1g6-uaJ_6AQAAANH7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:02 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT', + 'Wed, 30 Jun 2021 15:28:01 GMT', 'Content-Length', '1325' ]); @@ -47,64 +120,74 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f7c2a97d59c78f4fb9282a87c8b8020d-ded717585654d84c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:18.7090223+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:02.9262338+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c71daf14c4503446821629f7f7fdb292-b1987243db748744-01', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015521921704223') + .delete('/digitaltwins/digitalTwin162506688430606433') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015521921704223. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688430606433. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e6fe19820c24d24e8cc2cbdf51a06d82-b5ebd8b7a571fd44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015521921704223', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688430606433', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015521921704223","$etag":"W/\"29bb43bc-37f7-4413-8c00-ee0713a45bb4\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:18.7990481Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:18.7990481Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688430606433","$etag":"W/\"f9c3a4d3-4d83-49de-b51b-b8c43cb5648f\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:03.1590410Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:03.1590410Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"29bb43bc-37f7-4413-8c00-ee0713a45bb4"', + 'W/"f9c3a4d3-4d83-49de-b51b-b8c43cb5648f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9037f73beb3d46439259041e445a40f1-b87ccfc1b1d9fc44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015521921704223') + .delete('/digitaltwins/digitalTwin162506688430606433') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e71942d771ca83459f2ec928c9697adc-2a259f7c3da0e34a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -115,6 +198,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-779f9222cdf05043ac939af4245ed9ae-4c18a8c0d2fb754c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.js index 9df95510e9b5..0f2b0d56b84d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_conditionally_if_missing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "1672083afae003274a0f2feb67c90522"; +module.exports.hash = "ff62dd44ddf13a9fa068eace2a1b3ecb"; -module.exports.testInfo = {"uniqueName":{"create-digitaltwin-conditionally-if-missing":"digitalTwin161015522149205934"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"create-digitaltwin-conditionally-if-missing":"digitalTwin162506688632102008"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ab0ecf3b-6c63-4cee-9015-19dffc3ff300', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrctZS6sCckdhIWKnd7KRDEMERVzGInNxsqdD3PFH77zNbaHXmBYZSi0CSOo90-1Uk1TByhTeo927p6my6Yc0jXpO_0OugCDaIzkh9zNZBN70nHIxGxnE_qwMnJoUC1vzK3-xKJxc5GTxF10owVGBmhmuJdh79ZaJpqJo-lL0GA2YgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:03 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8a28890c-3549-4e03-9c30-d31506d88301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrK0OodjF_6kj0FI9Y6FbgSHnsl-isW_DFrWsPTy97NcV98aC41qFOkv72DcWWXtu33pIlQufYEsiUfQtpJBhTUHHZYvvYllsCTHe5K8XkWfBlDGuKlhiwGRqQsBHm-8sBeKWaRiqPOEFZyAg_PgdR5rmzW_HwUChnE9sG6VZgCuogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:03 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=ef3f07a3-1acb-415d-b336-cd97a58f240c&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '5afa142a-d0ff-40ce-863f-3ebd600c8b00', + '8a28890c-3549-4e03-9c30-d3150dd88301', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AqT_SnyLP99NiVOz0jc1iTo; expires=Mon, 08-Feb-2021 01:20:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT', + 'Wed, 30 Jun 2021 15:28:04 GMT', 'Content-Length', '1325' ]); @@ -47,78 +120,90 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4cc38b2d2702e94982448c74e86af016-6074df7787906e4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:20.9441896+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:04.9992182+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c295368099616a459da12dd12c4d07f3-85912fd63e2d8044-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522149205934') + .delete('/digitaltwins/digitalTwin162506688632102008') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522149205934. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688632102008. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e4ed1d3e38ca60469d3620cd70043ae1-441444b9e4728146-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522149205934', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688632102008', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522149205934","$etag":"W/\"068d886f-3afb-4015-992e-2482262d209f\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:21.0553683Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:21.0553683Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688632102008","$etag":"W/\"60ab2ae4-d125-49cb-add2-1bedb1698e59\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:05.1629538Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:05.1629538Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"068d886f-3afb-4015-992e-2482262d209f"', + 'W/"60ab2ae4-d125-49cb-add2-1bedb1698e59"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8f8e7045ace2d945b6041c5499838007-677abd8ad7eed74f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522149205934', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688632102008', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(412, {"error":{"code":"PreconditionFailed","message":"If-None-Match: * header was specified but a twin with the id digitalTwin161015522149205934 was found. Please specify a different twin id."}}, [ + .reply(412, {"error":{"code":"PreconditionFailed","message":"If-None-Match: * header was specified but a twin with the id digitalTwin162506688632102008 was found. Please specify a different twin id."}}, [ 'Content-Length', '189', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cdcfff9450e3cb42a738df4348af9ff7-5ab6d342fe4b2045-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522149205934') + .delete('/digitaltwins/digitalTwin162506688632102008') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2f9543426fe2ad4fbceac429c93d45bb-18122d3fce007d4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,6 +214,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4ba7644c9419a04d8e2a8ecf11fb84e6-474a39a09949b449-01', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.js index 7e100ff7956b..605c78cd473e 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_digitaltwin_without_model.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "224a0194f145cdfb42c778a4e94950e5"; +module.exports.hash = "f6522e0063e3991f4bfa4c42a094dffc"; -module.exports.testInfo = {"uniqueName":{"create-digitaltwin-without-model":"digitalTwin161015521997100574"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"create-digitaltwin-without-model":"digitalTwin162506688505302217"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'a90d4cf0-1f2e-4661-83a5-5d1069785600', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:03 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOB1Sg-eodcKOSIkd15iCpx3hVXuS7dEpbPoQpYCV5fu1QXjVHVTd7qcUT7MsgW7m0Tcj2NoMKyoSyyctuWD_T8DYcj5Lnij8LyvJENkpPYEhxbh0JZZqZwU6nuXunQue8Msur2vAEAE7mfMz2ma7dWctzY1rgwv8uIcRvo9EcYYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:02 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '703b39c0-f313-4374-a6f6-9fd034503901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:03 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwuwKVUalo_6sZGJn33qWYl-8Y6t5JYVAhW-0j6rb_Y8zDHAD-RHllrxytPAyTNbOHQDjQHvAp3T-Q_FqObgPNRc3hh4xH61HdphExtGEdeQmTlUPT7fC6iB5fylIn2AAxXoa0mrQVqlZP_NutHccrY4tMaoKphKTZ9QWxemLR9MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:02 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d58488b6-8e9e-4f8f-ba70-a324d5783205&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,35 +93,41 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '6d04b94c-5653-43cc-8359-b7af2c5f8e00', + 'e8adf41f-245f-45f8-a149-c5e4ab734e01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlrwRSX92WRDh5FGSqIPqS2uaJ_6AQAAANP7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:03 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:18 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015521997100574') + .delete('/digitaltwins/digitalTwin162506688505302217') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015521997100574. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688505302217. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4b3f893518a35641bfaf8e5d27e86dd5-dbd63e47e3a19d42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015521997100574', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;2"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688505302217', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;2"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) .reply(400, {"error":{"code":"ValidationFailed","message":"Invalid twin specified","details":[{"code":"ValidationFailed","message":"dtmi:samples:DTTestBuilding;2 or one of its dependencies does not exist."}]}}, [ 'Content-Length', @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-29ce5ff3c09fef419df2cd4a0ace3c15-5000e5f6ec67f84b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015521997100574') + .delete('/digitaltwins/digitalTwin162506688505302217') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015521997100574. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688505302217. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e3b401790b12e24ca9e5f6ff17f9e98d-abb33c7b2e2a374d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,6 +168,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-13d23e35825e64469c4926b4a9552491-f546abe0fdc3814f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:03 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.js index a1f126248b7a..397434001a1d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_create_invalid_digitaltwin.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "abe461464635accf898d6f110dc396bd"; +module.exports.hash = "3f2301b2c3fe4cee9e6eae559db8790f"; -module.exports.testInfo = {"uniqueName":{"create-invalid-digitaltwin":"digitalTwin161015522077807186"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"create-invalid-digitaltwin":"digitalTwin162506688569900245"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f8326bb0-3489-4075-92f1-b1e657236600', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:03 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMC-Ogd_ilXg-oexmPBBrcyTwmBDCSGZ2uz-5jB6q5q2Mp9_Gdkh3CPKr127MKVLUaNFuvdxVHhD-Jyw6SJ56D_N2yY_D-i6WIkFeEDTREZFsaJZG1RLqty9U-Q8N7bYjVTSBMdIXxdwYn0J739hLj9lGog8ziCzAwbNrIiMrwDggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:03 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a52fb20-d7cf-4bb5-9204-2a616ad48401', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevryr5InNME3ap2yTWUGrf42unhvxLcxqCN2W_aL_RqSew633QC-3RiIwoghHweZ0xAYxOPpKaPLskujjrdPMPEt60FxlDLuoeKPXBTIuG4sqU7A0a4sudpEDUJWP8V-cuB3YqQ4Jx2KWeGFOCL-YcCbDJSbuLiwRqtikffMPOjklQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:03 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=2913e7bd-0451-4dbf-aeaa-296828672f51&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,37 +93,41 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a41162a6-6158-4fda-a268-f91442769100', + '30ded47f-c75a-4cb4-aa53-0ac94e843701', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiVBD1TkG3NIiGDoEPkmawmuaJ_6AQAAANP7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:04 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT', + 'Wed, 30 Jun 2021 15:28:03 GMT', 'Content-Length', '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522077807186') + .delete('/digitaltwins/digitalTwin162506688569900245') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522077807186. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688569900245. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fec49ce256a2ce40af77d53bd250ffe2-356727db565aa648-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522077807186', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;2"},"AverageTemperature":68}) + .put('/digitaltwins/digitalTwin162506688569900245', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;2"},"AverageTemperature":68}) .query(true) .reply(400, {"error":{"code":"ValidationFailed","message":"Invalid twin specified","details":[{"code":"ValidationFailed","message":"dtmi:samples:DTTestBuilding;2 or one of its dependencies does not exist."}]}}, [ 'Content-Length', @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-99de8b0535451e429ab244f92e42529a-57c013f65ef24346-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522077807186') + .delete('/digitaltwins/digitalTwin162506688569900245') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522077807186. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688569900245. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-21deff0f3249934ea3731180a985c088-a1ca2b1299f24e48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,6 +168,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-99637092151e8a44acc05f179643c40e-e563198f7cfa524d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:19 GMT' + 'Wed, 30 Jun 2021 15:28:04 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.js index 8d05c33faf90..4632382cd68d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digital_twin_invalid_conditions.js @@ -1,16 +1,89 @@ let nock = require('nock'); -module.exports.hash = "8d1f5284fc78988636d22177a3de6923"; +module.exports.hash = "b95bd3ee582e51e1829b4f67b14ec06b"; -module.exports.testInfo = {"uniqueName":{"delete-digitaltwin-invalid-conditions":"digitalTwin161015522789004899"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"delete-digitaltwin-invalid-conditions":"digitalTwin162506689193700384"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'eb6d3868-7e05-49e9-8e9e-d320c12d9200', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLsQmJooYl9ozzBdVL2nz7QpPVMkemBGXh-pzbKxN_uYRNDby1unlP6JSvNWxOD7dnVM_DqWa8XP99M1i-K0myXWF9Ta7bIY4ap5WDFgUsoSPk3Xv7WHUwyWYE6upnygfszhyeNkRDD_ZQhfM1Pe46xu_85e_r79hE6ZvE_zW1-QgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:09 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '703b39c0-f313-4374-a6f6-9fd039523901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFqZg7qrNzFa2Ue9SCEa-C12g9QnMnMrjtIdR71TivxaMa9xT22-Ly0fCMgaWuHyFQGcokv-r9Q8lhmY8RlLyOw1As7vKfUrlhODBMHrgoxVQhRxhekmLAHM5nU4pe5-pVGD6SXYrYAy4bbsjqnCz6qAZ-mtRn5OBVYDmSvlogNcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:09 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=fac77e70-7f0f-4484-9b76-90996d0a75bd&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', + 'Content-Length', + '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -22,19 +95,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '179498af-d8bb-48a8-a0f8-9b38e2469600', + '703b39c0-f313-4374-a6f6-9fd041523901', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlljN19NePJFoL3Zog6vicWuaJ_6AQAAANr7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:10 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT', - 'Content-Length', - '1325' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,56 +120,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4c257f64cc8ba54f802a2abba12a697d-6222a74c0231ac4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:27.3768308+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:10.5345487+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f1add154882f194ab87870946a4b4b38-b57806390c1c0143-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522789004899') + .delete('/digitaltwins/digitalTwin162506689193700384') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522789004899. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689193700384. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-46fad0aac551374f802492b44a719da3-79623406d6197e44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522789004899', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506689193700384', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522789004899","$etag":"W/\"d31ca60c-d9c0-42f3-a4e2-4ec472aad6cc\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:27.4802593Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:27.4802593Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689193700384","$etag":"W/\"e77ad543-08c1-445a-a967-f56584b9e493\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:10.6263589Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:10.6263589Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d31ca60c-d9c0-42f3-a4e2-4ec472aad6cc"', + 'W/"e77ad543-08c1-445a-a967-f56584b9e493"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-680428bdb1c54e49abb776e41c3120f1-b175631a95cc4d4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522789004899') + .delete('/digitaltwins/digitalTwin162506689193700384') .query(true) .reply(400, {"error":{"code":"InvalidArgument","message":"Invalid If-Match header value. Allowed value(s): If-Match: {etag} or If-Match: *"}}, [ 'Content-Length', @@ -105,20 +186,24 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0758e098cca7734387ce9bcffbade44c-423a75862a20c24b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522789004899') + .delete('/digitaltwins/digitalTwin162506689193700384') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2c8ec2543b16254faf58ab97d2cfb1ff-fdafd60195dccd4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,6 +214,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8ba14bcf79dd474b9021301ba7a3e928-706e395de3412043-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.js index dbe3b4464069..af72616c1555 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "af990f9db40d1ccce58dae9d97719212"; +module.exports.hash = "59f5e54a49ac259441b2cf18d3b52168"; -module.exports.testInfo = {"uniqueName":{"delete-digitaltwin":"digitalTwin161015522547408240"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"delete-digitaltwin":"digitalTwin162506688994307460"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6705d472-4e67-4c5d-b91e-f28bef9edf00', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtLuGR9onpvTjS3UZqWLCUbcObBi1cuSkB-95qh5o6rPDyNQoEBSA2oiUvppAPDc8BcQK3aa8erewA-o1ecm00xmzSsr19VQqRk9Ijn-TBCPxqXja6BzX8iqxLmE7fypc-xzk_AYHMdJtUpkidms8uZcxqZUk2u7Jtds4kf6LqFUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:07 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c7083201-44d5-43b9-b5eb-7809456e7f01', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQmXHXh2aRDuhaUMKcrbwv89vz_OTCNVRvFzBUKKJNn9cMTDHleoms4ZIunVFmZKFon_6MqWkfLWwvpxTkYSgGPnOggWVya1HTfHgZ852d-0WkZR1hHnn5Xz8w2JBwgaqJ79BV6nhT1dNOhl5362Y9foMtEcYat4vDqO0AVKziHogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:07 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=cccb7888-d6db-4fca-9ecc-356b9f100f73&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '6a480650-329d-47c7-9a62-e55e61c98a00', + '17f1964b-db13-4bc5-adf0-3c4294958000', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AsK5xMcLZZ5PtT1QkSPH06uuaJ_6AQAAANf7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:08 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT', + 'Wed, 30 Jun 2021 15:28:07 GMT', 'Content-Length', '1325' ]); @@ -47,78 +120,90 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c67fd9607cd2764c8417d0cc968a497e-a2dd695da1b19849-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:24.9814266+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:08.4913305+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-91f2d8659f451041a1e62b9e50e3daf5-d067cbdf2ef3bc4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522547408240') + .delete('/digitaltwins/digitalTwin162506688994307460') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522547408240. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688994307460. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-36ae06133078684ba6dd152da7347687-9796e8a8b7c7d649-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522547408240', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688994307460', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522547408240","$etag":"W/\"7851378d-0883-43dc-bcbc-d6d9703a4353\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:25.0918294Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:25.0918294Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688994307460","$etag":"W/\"73403fff-7c7e-4239-a62e-859812a39715\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:08.6545748Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:08.6545748Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7851378d-0883-43dc-bcbc-d6d9703a4353"', + 'W/"73403fff-7c7e-4239-a62e-859812a39715"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b869aaef55d7954ab193330d2630599e-783525d51e403d42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522547408240') + .delete('/digitaltwins/digitalTwin162506688994307460') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4b1e64ec6e743a41898c4eb144144156-37fb668f215fb841-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522547408240') + .delete('/digitaltwins/digitalTwin162506688994307460') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522547408240. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688994307460. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-20aafb320944bc40a2e3cf0d1dde2abe-87a0206dadd6b444-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,34 +214,40 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-35e5851d26dd1a4e8b0774cd7c6a07fb-54447d822d1a3541-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015522547408240') + .get('/digitaltwins/digitalTwin162506688994307460') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522547408240. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688994307460. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ad346e5eba6cf646a2b2c9ff80e2f529-b98bfeda2319324d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522547408240') + .delete('/digitaltwins/digitalTwin162506688994307460') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522547408240. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688994307460. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a790c26db1f4264ca1ac2bef62712e85-3328a65369ec2649-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.js index ecb4855377dc..10fee95bf86b 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_if_present.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "e1e549c96dd9fe1ede415b633db72e21"; +module.exports.hash = "a2e71b7c70e11c1d6460bbf9ba9fbc4d"; -module.exports.testInfo = {"uniqueName":{"delete-digitaltwin-if-present":"digitalTwin161015522702002146"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"delete-digitaltwin-if-present":"digitalTwin162506689122504513"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '980', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'cb811391-edb2-4bef-ac58-e7852ad63400', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr25bxiXBbPrsODMFUAt9SCLg9aSbXPRXauzU1vBpnGZ3BTUdBNgt0dOz-YnzPVJcFCXEugLNRYjfhWmoefIBQrOuqTqOUql6aMBs0SvwS6_-W5LnGV1R7dK9lnERe8WXNdl19F3Si5-FcBNzuf4bfeMe0z-dvOX9Jqr4Q9PsKmjQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:08 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '36bb625b-a847-4fdd-b6d8-03c5f5737301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1h5_62z2NL8gwaB_XbbHtz3OAf09tCCC1HgRRIKC8PDQGQOj5ze5COONeutnE-Pi1H_uxXMEhA7z2R3zz60re2azbSdfg_oFopmDTfMffLo9OeDd3uoq934LmE_Y4imCSMrk4EUBloNezgH5QSXivrG6aZXHV9XDeIUZDCueUlUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:08 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=df621c5b-3339-4b09-8c44-85c58e4f9f82&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '297da654-b272-40e0-a324-c56d06f28900', + '5d543b59-2435-4161-9c9e-e923bc057501', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Aiqwms2dcTFDuojLnEQ7r9KuaJ_6AQAAANn7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:09 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT', + 'Wed, 30 Jun 2021 15:28:08 GMT', 'Content-Length', '1325' ]); @@ -47,78 +120,90 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f70a3856733df94099364e8eac20d29e-c5001fb3b60e6a49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:26.5112363+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:09.8256984+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-694e8e233ea34f44b911c03eaf1b4fc5-2692bb4760b0ad46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522702002146') + .delete('/digitaltwins/digitalTwin162506689122504513') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522702002146. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689122504513. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-66126bbfb30c2e48b56b623b777d1099-0614b5c42e841a4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522702002146', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506689122504513', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522702002146","$etag":"W/\"7d5eb185-ab65-4183-b544-ec144b92d546\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:26.6289789Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:26.6289789Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689122504513","$etag":"W/\"920cca0f-4d53-47fe-93ad-47d78c8c437b\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:09.9261731Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:09.9261731Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7d5eb185-ab65-4183-b544-ec144b92d546"', + 'W/"920cca0f-4d53-47fe-93ad-47d78c8c437b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c408f7f429831c49beb61ea410876888-ad881df618b1be4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522702002146') + .delete('/digitaltwins/digitalTwin162506689122504513') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-36a1d318a7afdd49865dd16d5183c9de-88f0d971ef35b94c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522702002146') + .delete('/digitaltwins/digitalTwin162506689122504513') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522702002146. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689122504513. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1113ef55f3260544889e198dbfc374a8-b177fa24ea2e5c4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,34 +214,40 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fa19a68b09653842b23766b4dfaf091d-eefa1828da8a2c48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015522702002146') + .get('/digitaltwins/digitalTwin162506689122504513') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522702002146. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689122504513. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-220755d875c61b49b31b8139890e38ee-d5e99f8873223e49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522702002146') + .delete('/digitaltwins/digitalTwin162506689122504513') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522702002146. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689122504513. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-70be4529bdd91444b2c0113bfa987fe1-380e20aae31d374f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:26 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.js index 96d8c270289f..b46ba22a46ad 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_delete_digitaltwin_not_existing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "1882d91bc136ff8ccbde66a9cfe943bc"; +module.exports.hash = "9233430f83bd444c0d2cd2395ea7cce7"; -module.exports.testInfo = {"uniqueName":{"delete-digitaltwin-not-exisiting":"digitalTwin161015522633007900"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"delete-digitaltwin-not-exisiting":"digitalTwin162506689067909413"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'd9618c42-717e-4445-93c9-151220464f00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:08 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjmT7V1U-Oj1l_KwTWGqy90l4r85K2JCc4Daaj-QfXc3W_ActKmA-gxYHQjozD6IvZ_bjBaZg-BhqLJWTy1LmohCFcd4nnM8L6N0kglx7PXTKXyMYy1KIlJAdsO9t-m_rRoeckybtDNteAEygmzlrGeocTmVRRYIsoL3jLg0_O-YgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:08 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '30ded47f-c75a-4cb4-aa53-0ac9ac853701', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT_RFmDZKkBsYFLaISp5oPMP8JBEI8a_S1dSgMcifY3iuoP8DaiuymkMcBM3nhdyKKL86UmpBG7Q9dli7bkwsXMK42P59leWfFRSp2LEEDcCVP_GKXKdIBt1FwXu4V2112KkcnGeQJCnv73mKQDE7L_M2p9UyuR5yHPA27INjDQ0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:08 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=da9a250a-9094-4eaa-b2ae-724ef0e6aca8&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b92eff53-1b89-4e5e-a26b-8b8376c39600', + 'c6f9394a-e669-496a-b7cd-a757c0d76601', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Amlewb08BoBKk71Xk-WT1ZSuaJ_6AQAAANj7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:09 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT', + 'Wed, 30 Jun 2021 15:28:08 GMT', 'Content-Length', '1325' ]); @@ -47,64 +120,74 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-82578d6503abb34b98dd3ce85b387fa3-b94fe9f66bb0dc4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:25.8179334+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:09.2378006+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d9fb3d8adb011d419793e14d05cbe9cb-9c2bc56b806c5a43-01', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522633007900') + .delete('/digitaltwins/digitalTwin162506689067909413') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522633007900. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689067909413. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fd68722b36fc9a4bb7d436a4f17d50f6-9433884c2050ab4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522633007900') + .delete('/digitaltwins/digitalTwin162506689067909413') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522633007900. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689067909413. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4b909f372a6b1941912b131aff3d2398-7a031eb933261e4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT' + 'Wed, 30 Jun 2021 15:28:08 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522633007900') + .delete('/digitaltwins/digitalTwin162506689067909413') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522633007900. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689067909413. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-162424cb7a0a60458b57d4552196470e-d079a2ee0c39be4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -115,6 +198,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d8d117323d505940aabbc8ae141b4ef8-384918e87558f74b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:25 GMT' + 'Wed, 30 Jun 2021 15:28:09 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.js index cc2791354a10..9fa5ab283b36 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "2fd3d2012e994b5f47d66d78a1a7fa93"; +module.exports.hash = "2da807c11f70c7c3f03d8cd04f040110"; -module.exports.testInfo = {"uniqueName":{"get-digitaltwin":"digitalTwin161015522380404144"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"get-digitaltwin":"digitalTwin162506688852905967"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '52650250-920c-4939-a011-287e6613a200', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrF9b0MjW7BibomEb0FW6BLV_Lf8HfBzyF2J1ZlVYg1WgeStLSKsQvtYtloMvS8flknwXjGwjfSUiE4j2uqaoALPalFuhIuFRaX_Y2XA6mActZWKYXGZgEEvvjFZZgMz-OpkXhsDBjWQNhXMdco84c8IGn3Hk_9ySuoxZs_tA4LjkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:05 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '28812791-b9ec-449e-b425-0faaa1b91f01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrw0BEbdEsL6TmTWG4uyvVe3M3XOYbPv3KAtS-fNcmf-DtXs15ILTw-Vu7F6vN4RgLl8Jh0Ue8zje0Lojl99w0O2Z9djR7Z92ILv0yKqXlYzRTfoBJ8N56AbSKAe9w_RVfFaBzJC11Kb1QJwwJPCOuBBeQWzpsZSulRXCOnjYsqBIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:06 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=329c5e67-a8c0-45b0-80b7-134c3e29c2e8&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'dabd7c4b-1544-4250-ab69-375956799000', + '703b39c0-f313-4374-a6f6-9fd042513901', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AsL8UMHqg8NKkQ9juuJAHzKuaJ_6AQAAANb7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:07 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT', + 'Wed, 30 Jun 2021 15:28:06 GMT', 'Content-Length', '1325' ]); @@ -47,80 +120,92 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9bfa7d29b969884390d2e5c33c623b09-44541d317e85494f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:23.3596668+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:07.1784068+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f4f9f3f0ee67c74ebdfd05ddc7661653-674449638a6bf54c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522380404144') + .delete('/digitaltwins/digitalTwin162506688852905967') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522380404144. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688852905967. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-48df832b0cb5904d8ca5720cbd855939-8265623fd384f54b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522380404144', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688852905967', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522380404144","$etag":"W/\"711e6c15-fe98-4386-b023-3ae6a1d77d53\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:23.4467313Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:23.4467313Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688852905967","$etag":"W/\"2978562b-e157-4cc1-9140-5f6eaf15ea18\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:07.4213435Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:07.4213435Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"711e6c15-fe98-4386-b023-3ae6a1d77d53"', + 'W/"2978562b-e157-4cc1-9140-5f6eaf15ea18"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1a59a331f1697a41ac3435c553155d30-2f079f6c218fd347-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015522380404144') + .get('/digitaltwins/digitalTwin162506688852905967') .query(true) - .reply(200, {"$dtId":"digitalTwin161015522380404144","$etag":"W/\"711e6c15-fe98-4386-b023-3ae6a1d77d53\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:23.4467313Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:23.4467313Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688852905967","$etag":"W/\"2978562b-e157-4cc1-9140-5f6eaf15ea18\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:07.4213435Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:07.4213435Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"711e6c15-fe98-4386-b023-3ae6a1d77d53"', + 'W/"2978562b-e157-4cc1-9140-5f6eaf15ea18"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-96bb188fb994274ba410195b7ef5fac3-12ceaf6acdbcb94f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522380404144') + .delete('/digitaltwins/digitalTwin162506688852905967') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f9d006a2df01ca498e52f8ac60f36d20-070e667e7adc1b44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,6 +216,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-520770f977f29a45aabdc422622e0159-23f8ecc4999d8141-01', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.js index 416f65025fcc..161351ce4690 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_get_digitaltwin_not_existing.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "f88843f5a8083ef21308a51c9be000f6"; +module.exports.hash = "18b696679942a4fa4b29ad5f0fca7ffd"; -module.exports.testInfo = {"uniqueName":{"get-digitaltwin-not-existing":"digitalTwin161015522462506819"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"get-digitaltwin-not-existing":"digitalTwin162506688935006831"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ba309e2c-d866-4798-93ff-4324dd563300', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOxbjc8tkfwY7GyiAFov5vtvmaHVFp7Lde8pugu2xAVJAjBNnM97bzeio37_EZZRAg2DP50ZcT7_kwub5tWkDnnAh-UTiayZHW77WYFe4cxk_r77JPdEokglMyXALmp-HRlzGKzlfLLTgSTm6PTCmI6nJD5KNcuSYMaKi_zQnKa8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:06 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '633f92f5-8765-480b-9824-1d4ce7b52e01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPbmXwmCGnGe3Utg70s8anCyot_Kf9ZR2eYhfT1QS4Shj3KjxV5vY0A0vg8l8bMyetPS6AIAeb9h3lcVLS8mxzFUMsUE2YXUn8blwsQTkUd1jusoC9eFY7w1AQ-2JFaNdzcFdDW7NYj5KNVKhaSF3qVYgBDD9jVAQGxSn4o2lmXsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:06 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=1de45d94-2faf-4ca1-99b9-34d545c8fd37&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b584e6aa-f07f-4ac1-b1da-02b1afd69300', + '8a28890c-3549-4e03-9c30-d315f7d88301', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AuUEzXExfC1Dq91xcsTR6qWuaJ_6AQAAANf7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:07 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:23 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,64 +120,74 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-913b5b44810ec34e9967ac4453b6a966-e4ff23b19009d844-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:24.1435383+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:07.9675895+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-46d13ff15469de4891024c6144c5041e-9fc166566dcf584a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522462506819') + .delete('/digitaltwins/digitalTwin162506688935006831') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522462506819. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688935006831. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1964387926591746a4b334ac029231a0-f7168695ff1e3d45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015522462506819') + .get('/digitaltwins/digitalTwin162506688935006831') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522462506819. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688935006831. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cc7991cd4ae3d04893372b7980ec3eda-a0bc79ca2b614d47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522462506819') + .delete('/digitaltwins/digitalTwin162506688935006831') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522462506819. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688935006831. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a076dbd180a65042a8f7e65ecb62fe7c-0699940810b9f443-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -115,6 +198,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d3ff3b5970801f40acf32fd74729088d-4c1686bb5b73fe4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:24 GMT' + 'Wed, 30 Jun 2021 15:28:07 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.js index 8d6cf9b2c749..ea009ac3f3c8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_publish_telemetry.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "ea56fc3d924eba0ff605753834267bb2"; +module.exports.hash = "c817074ae24b8663530e7cef4193e943"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.js index 223cb2a10458..c1258dc1bcb6 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "1f047fd3f190c075d7aa8abad6c5c7b0"; +module.exports.hash = "0c6ba6078388431de1bfeb306cde3364"; -module.exports.testInfo = {"uniqueName":{"query-digitaltwin":"digitalTwin161015523577706215"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"query-digitaltwin":"digitalTwin162506689827702000"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '980', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c42d2cee-bea4-487d-8391-024ec63f2c00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIQ4IwW7pIhaqk9-g4pbe1jbMNwrVJa0ilPpJqJxC4W2P7l3V4yuhoL6ti_0LIKGlOb9DQNjObri2htkNY9xnXgebO_Ynz4JPxT9p6g-ZPtmr21O_MrE8TM5y1Ak6bayu8InMzBwWnjorKs49mlJ2mv1vh6ZoguvtpIKSRMXtBrMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:15 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'd12e31ea-411e-46ee-a3a0-3f7fe7991901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrt6KMG3MehLWVpZfyqM_AdwdczndODf-UHRpN4xl9bZ9w1872RjvPqmWxyxA0W5vY7i4v3Y7tuAqJPxogWKEiWZPDwY0oDCs0QdfCSIR3XaBSMQaIA5D4nfdoaiIdwCWCYEgJjVYgn3dgMszd6_M7HqxKwqY9aDujMjznH61HikogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:15 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=575c92bc-c5c1-4fc0-b908-7c094dc714b4&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '0490bd0b-26c5-439b-95b1-77d433fb9400', + 'c2c46a2d-caf1-495a-b60f-6d20220c8301', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ana2Lrrc9BZBktovedvTBLc; expires=Mon, 08-Feb-2021 01:20:35 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:16 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:34 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,22 +120,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5cec287e983f364cacead5dda946f7bc-99e123083ed3b646-01', 'Date', - 'Sat, 09 Jan 2021 01:20:34 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:35.2347767+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:16.8722537+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0ff3a4ba3effcb48bb8635693e941ed8-d96da39971d1a745-01', 'Date', - 'Sat, 09 Jan 2021 01:20:34 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,54 +152,62 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-335e2d2d3f8b1a4d845254ef952940e7-55f99b1a5a21ae49-01', 'query-charge', - '5.58', + '2.79', 'Date', - 'Sat, 09 Jan 2021 01:20:34 GMT' + 'Wed, 30 Jun 2021 15:28:17 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015523577706215', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506689827702000', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015523577706215","$etag":"W/\"8f2998d1-b033-4d25-8993-7aaa746cfd43\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:35.3270577Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:35.3270577Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689827702000","$etag":"W/\"48d273f4-08f3-4c2d-a336-e194c98ed384\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:17.2006936Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:17.2006936Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"8f2998d1-b033-4d25-8993-7aaa746cfd43"', + 'W/"48d273f4-08f3-4c2d-a336-e194c98ed384"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7bc0e42048e70a4d81bf50a1800c8c89-f7b2f77f262e8c40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:34 GMT' + 'Wed, 30 Jun 2021 15:28:17 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/query', {"query":"SELECT * FROM digitaltwins"}) .query(true) - .reply(200, {"value":[{"$dtId":"digitalTwin161015523577706215","$etag":"W/\"8f2998d1-b033-4d25-8993-7aaa746cfd43\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:35.3270577Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:35.3270577Z"}}}],"continuationToken":null}, [ + .reply(200, {"value":[{"$dtId":"digitalTwin162506689827702000","$etag":"W/\"48d273f4-08f3-4c2d-a336-e194c98ed384\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:17.2006936Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:17.2006936Z"}}}],"continuationToken":null}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f7e931beb78b5b42bdd3c011cc2005b1-575df297ac7ca349-01', 'query-charge', - '5.66', + '2.87', 'Date', - 'Sat, 09 Jan 2021 01:20:40 GMT' + 'Wed, 30 Jun 2021 15:28:21 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523577706215') + .delete('/digitaltwins/digitalTwin162506689827702000') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c9afc125ed90b848af5343b8c30de0f5-03eadf2d12e13646-01', 'Date', - 'Sat, 09 Jan 2021 01:20:40 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -133,6 +218,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-68ec955fac5c2548acd5e4b84b5339fd-3c00b2e766a5e047-01', 'Date', - 'Sat, 09 Jan 2021 01:20:40 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.js index 319585e6aa1f..a49653b00b97 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_query_digital_twin_invalid_expression.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "f106cee251f697a350335636ec4186e4"; +module.exports.hash = "004033bb09c64e04b25352e67f39a5e4"; -module.exports.testInfo = {"uniqueName":{"query-digitaltwin-invalid-expression":"digitalTwin161015524152805636"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"query-digitaltwin-invalid-expression":"digitalTwin162506690415007592"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '980', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b01de3be-d74e-4860-a0ce-c0b5dfd3c501', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbNGORFXPARYV6g96FnM0LQb76K4b7yA6rDAolP560JU8LjM9LNEtKdQsWRsrU2pki5YpURknDSfOnoR6Icg-G-eB2Ux0XKOoXfF4Z0fJW8JGgVJQ6gg8FWd8FoEwKKPyUBsjE4KosPdnGL-pVnNJsBa9FYIADgMPG7R-iyKGqM4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:21 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '28812791-b9ec-449e-b425-0faa2dbe1f01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrC_yz-e13DOd6gMOzjwZGsdTRe0bWlTnofNqh1f3j9Soeu_ItDtRxmbeSxSMzuj2y03siU9hGeczTUvuf1wtEGu3vFy_kCdDeHiMqSknzcRmclO9d_D-0zQHmOwT2PNs9eVWVY_McgQI2a-qwtX7HjaAsw3NGPbUSElIG1nu4B1UgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:21 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=9dc4c905-2ec4-4d33-b640-6afb344f32d9&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'cfbec0ae-54e5-4069-9213-a10407258b00', + 'c7083201-44d5-43b9-b5eb-78093b737f01', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AncmRU7sikFIiIhgZLGX5zeuaJ_6AQAAAOf7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:40 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:22 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:40 GMT', + 'Wed, 30 Jun 2021 15:28:21 GMT', 'Content-Length', '1325' ]); @@ -47,52 +120,60 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d4f9c3b2564dc243bcb3118bb4a52ed8-67f4de5bbb453348-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:41.0680869+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:22.8345455+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9f713ed041c8cc41ad07923d68ee8682-03a8a7b5dc8d8046-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/query', {"query":"SELECT * FROM digitaltwins"}) .query(true) - .reply(200, {"value":[{"$dtId":"digitalTwin161015523577706215","$etag":"W/\"8f2998d1-b033-4d25-8993-7aaa746cfd43\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:35.3270577Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:35.3270577Z"}}}],"continuationToken":null}, [ + .reply(200, {"value":[{"$dtId":"digitalTwin162506689827702000","$etag":"W/\"48d273f4-08f3-4c2d-a336-e194c98ed384\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:17.2006936Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:17.2006936Z"}}}],"continuationToken":null}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8c6cf72c89a33f49ac1dc8bbb567011e-aa1a70be019e2c46-01', 'query-charge', - '5.66', + '2.87', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523577706215') + .delete('/digitaltwins/digitalTwin162506689827702000') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523577706215. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689827702000. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c83b48629af02747a44d0a0cdfedb02f-1ef44b76a44bcd48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -105,22 +186,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-066f32f2958b4842b313f650778b6c21-b70d6d1b3ea92b44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015524152805636') + .delete('/digitaltwins/digitalTwin162506690415007592') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015524152805636. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506690415007592. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-40020211cf050f42ba316d89494f3395-1ff2c61c67034844-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,6 +216,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d995edd8ac647049bb8e21a23310d91f-a1b2e0253d0f6d41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:22 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.js index 94cba801317e..fc6ec86735f2 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_a_simple_digital_twin.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "bdd178314927efd5ffdb4911c9ce4685"; +module.exports.hash = "6c302b0428b66d0794622e1a3bf5086a"; -module.exports.testInfo = {"uniqueName":{"upsert-simple-digitaltwin":"digitalTwin161015522223600655"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"upsert-simple-digitaltwin":"digitalTwin162506688711601782"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c7595c7d-eace-43f6-8792-a3c2acfcd600', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevri617R7htAdb_iLQZK0xw0qmHvJNAJ87WJ6tnONaETdquCLvzAh46E5-lD6kfwT-7ryFOTtk6damEL2wyxsv-3JAZj6oKqhaj6tp0qHZx_Zb9N6L-oY1wYiv0HP1PSATLDPbatnb4OKFoQcXAcxWsjFDf0OgG0TUIlkhPvZt-rvggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:04 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '28812791-b9ec-449e-b425-0faa2db91f01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrK6LLRXrvkX7rvDSh2SuxCHJ7eW0GDovO0p4wN6bLo1mXX59gQWSVPhqZT52aZNthiHT_iPJnPuATMtzrwxn809-88Xnsfvt4MUlfSy6hLd7yI8gh0YmtiA4lOceNJO6a9dTHBRJLPFaCSwU4msoT21770ZkgSK9wxvqVkNkuKGUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:04 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=87e53b55-393e-48b0-8867-7ad047165e8d&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7c35c906-be1b-4796-9103-5ec1efe58300', + '2addb27d-9919-4ad9-9db7-755bee342f01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AhsBP-g1aL5JnSPiU4HXuj6uaJ_6AQAAANT7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:05 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:20 GMT', + 'Wed, 30 Jun 2021 15:28:04 GMT', 'Content-Length', '1325' ]); @@ -47,80 +120,92 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c8547d6f1197044c9ee73baa0c98835c-2bf14e0cb0a2ae4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:21.7108089+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:05.7957542+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8d7f5fbefaf83441a55fe241e1f5fc36-dd4d8231e47dd247-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522223600655') + .delete('/digitaltwins/digitalTwin162506688711601782') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522223600655. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688711601782. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-98be7b8cb1b7174c9d3094db39a70d30-9f8e1368f5ba444d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522223600655', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688711601782', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522223600655","$etag":"W/\"ec8d5532-46fc-4e2f-b379-9e25d4d8f4cc\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:21.8025561Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:21.8025561Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688711601782","$etag":"W/\"5a476622-6249-4e4c-851d-d83e29e130ea\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:05.9030767Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:05.9030767Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"ec8d5532-46fc-4e2f-b379-9e25d4d8f4cc"', + 'W/"5a476622-6249-4e4c-851d-d83e29e130ea"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9fb346f4a03a9c46830ddbc5323b1768-66fdf7f3abe46a42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522223600655', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":69,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688711601782', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":69,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522223600655","$etag":"W/\"59614451-c4d3-4608-a108-4715dd42f42d\"","AverageTemperature":69,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:21.8463813Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:21.8463813Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506688711601782","$etag":"W/\"84e8dac3-d037-4b3d-9b59-5d19278b7b01\"","AverageTemperature":69,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:05.9803975Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:05.9803975Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"59614451-c4d3-4608-a108-4715dd42f42d"', + 'W/"84e8dac3-d037-4b3d-9b59-5d19278b7b01"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ba46f2e3e0d52c43b9fde148fe5ea1f0-5bdcea7359d8ca4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522223600655') + .delete('/digitaltwins/digitalTwin162506688711601782') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6e29ceccf9eaaa4c890f354e0f6b2cc9-4464696dad64de49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,6 +216,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0cab8d1a6758b54da74911731eae0d9c-c728817193b4a544-01', 'Date', - 'Sat, 09 Jan 2021 01:20:21 GMT' + 'Wed, 30 Jun 2021 15:28:05 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.js index 009897f76a7d..5630eb9092fb 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_add.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "a5a3348b2a8fccc65f49153d9835254d"; +module.exports.hash = "2b1acbbe09d80aeba84b988b0d830fb2"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-add":"digitalTwin161015523089805553"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-add":"digitalTwin162506689409107344"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '75e72ed3-5473-49a9-b565-02fccd842a00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroIyyFzeMuvxbkd5FH4DX0s9YW2DKrVfRYXvnO_nylDVWM_g6YP7WN_uoawgR1f3quWPaxKnMdb31Gt5aOdKe_0m_OLsCQKYtZ7Jnl5HQHwYy5US180_tQsRyYDHKULxAfZIkYK7N-5yQVDS_5NLgbCdW9sW9qw4O6r2CEeen7yYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:11 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '58d79bc5-3030-4871-8772-cc5b29bd3a01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRLB4CdNBPxCJzYyxz_-j9JQoDaHzuNncMp2QmGpTtyoijnPSK-uhS3qs-c987WVwJd-AudvVQKzPmvZaReVYQIk2aasPCwnWgCcoli72CGJ9BiqREWFNM1YwvWu83KDW7YvycejOVdCPKJBYsaV2iT4HcVCavO5vIOFvVni8cucgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:11 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=680888ca-aa67-40c2-a96c-d38bf41126bd&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ffdb9dcb-ae0e-423d-b36d-ce12847c9400', + '36bb625b-a847-4fdd-b6d8-03c506757301', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AvI0NQOYiCVEuABFVmZOOZmuaJ_6AQAAAN37itcOAAAA; expires=Mon, 08-Feb-2021 01:20:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:12 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT', + 'Wed, 30 Jun 2021 15:28:11 GMT', 'Content-Length', '1325' ]); @@ -47,94 +120,108 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4470376895706d438059249a4579d797-d0a67dbfdca65f4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:30.389036+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:12.7449884+00:00"}], [ 'Content-Length', - '160', + '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-da565924595b5d45882c1989688964d6-d5c2ca3d1d3d8548-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523089805553') + .delete('/digitaltwins/digitalTwin162506689409107344') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523089805553. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689409107344. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-30dc5244da6e01479eef098ce2a44c46-1ed0ed6aeec31d47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015523089805553', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) + .put('/digitaltwins/digitalTwin162506689409107344', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015523089805553","$etag":"W/\"1e228173-cd7d-4635-abc2-96e5b5d5ecec\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:30.4998437Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689409107344","$etag":"W/\"d634fbe2-8416-43c8-83e4-7718d7970f06\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:12.8501969Z"}}}, [ 'Content-Length', '244', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"1e228173-cd7d-4635-abc2-96e5b5d5ecec"', + 'W/"d634fbe2-8416-43c8-83e4-7718d7970f06"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b1653a7e0ca0fb499b093e5caabf4275-2cd5c49a9b541247-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015523089805553', [{"op":"add","path":"/TemperatureUnit","value":"Celsius"}]) + .patch('/digitaltwins/digitalTwin162506689409107344', [{"op":"add","path":"/TemperatureUnit","value":"Celsius"}]) .query(true) .reply(204, "", [ 'Content-Length', '0', 'ETag', - 'W/"7c56251e-d399-4f4b-ad17-8d03a6058037"', + 'W/"46bff46d-d167-47dd-90db-1f235cade9a2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-913b3b9935c169449e51ce1014cd8fb7-3ba311409eff2341-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015523089805553') + .get('/digitaltwins/digitalTwin162506689409107344') .query(true) - .reply(200, {"$dtId":"digitalTwin161015523089805553","$etag":"W/\"7c56251e-d399-4f4b-ad17-8d03a6058037\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:30.4998437Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:30.5409796Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689409107344","$etag":"W/\"46bff46d-d167-47dd-90db-1f235cade9a2\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:12.8501969Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:12.8971922Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7c56251e-d399-4f4b-ad17-8d03a6058037"', + 'W/"46bff46d-d167-47dd-90db-1f235cade9a2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-917255efaa787f44bc76bc054cb56650-6b3bf552b1295e42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523089805553') + .delete('/digitaltwins/digitalTwin162506689409107344') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4010dda9028267409eac137d53346c2f-8ab0954692b3c34d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -145,6 +232,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d36e8897b1c70b4bb8a3f1c482707d72-36e75933edbf904f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.js index b44ac70ce3d5..d9571b19f71f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_confditionally_if_present.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "b7051a1efe663418a214a1f28ba9db89"; +module.exports.hash = "ad853e83e35bb228e2f4270042cad23f"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-conditionally-if-present":"digitalTwin161015523347700892"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-conditionally-if-present":"digitalTwin162506689623800937"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'eb6d3868-7e05-49e9-8e9e-d320432f9200', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIuf-5jPkvuKoXEnAol8CwBNlOPLemJ-U71xbKfKrqz1aFdaPRoiKtqwAb9vbCXNxIqblzcormqVT9hpGZxGO6omoxsxEHWO16MyAhYg087aJSK5iuUG-7b-sYBuipmnmPhSGdWqi-2O0E3jfyCgnTS7gDtXpM_lEONw5aPdXBvogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:13 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b1b01582-f8fa-460c-a911-28f44f643801', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKlRJKQ7l73k6puztLgDnioSyVImj6jLc6EpaaaszBSoIOP_826MnOWuLljTjKX3T_oa7cHyjzc3gVeETfof9417Vs2bbw7b_ZUM7T76Gnsv74qyB_BegCR-HcDhDPCLzQ2jaR0yJsG8vY1Bg_XBSqDG4l0JIFaWSB3jwKf5uiE0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:13 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=ec23a2fa-d187-414e-9209-6766121d221e&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'fbe8e346-9112-4147-920d-ec9b018f9500', + '28812791-b9ec-449e-b425-0faacebb1f01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AjjQf5MJlF5LiQoz0-x_T3WuaJ_6AQAAAN_7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:14 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,94 +120,108 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-12588befe914974caafe5511eaa41b57-3c949a12bc449046-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:32.9468636+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:14.9172219+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4507fa5412126d41bbf61d7cb9ebccc3-5a90f59b99f66148-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523347700892') + .delete('/digitaltwins/digitalTwin162506689623800937') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523347700892. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689623800937. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-801e1d2f96010549ad0975252a13a24f-e1ec0c50bca7ff4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015523347700892', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) + .put('/digitaltwins/digitalTwin162506689623800937', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015523347700892","$etag":"W/\"096847db-84ee-4ea1-992d-636cbc0a84aa\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:33.0266124Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689623800937","$etag":"W/\"74ccf69b-765d-4b75-be41-9cc53dfc3d8d\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:15.0977544Z"}}}, [ 'Content-Length', '244', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"096847db-84ee-4ea1-992d-636cbc0a84aa"', + 'W/"74ccf69b-765d-4b75-be41-9cc53dfc3d8d"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ba9e8ba79fcc3e4c9c8b7a1141e58c7b-ed209cb04ea9d744-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015523347700892', [{"op":"replace","path":"/AverageTemperature","value":42}]) + .patch('/digitaltwins/digitalTwin162506689623800937', [{"op":"replace","path":"/AverageTemperature","value":42}]) .query(true) .reply(204, "", [ 'Content-Length', '0', 'ETag', - 'W/"fd37ccd5-843f-46d7-b42a-1c1a46598356"', + 'W/"a170b03b-0ef9-4173-8191-c1e69bbac0e2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-86343aea0f86584b8d51c71ea86ef3d8-adc0b9ccc96a8d45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015523347700892') + .get('/digitaltwins/digitalTwin162506689623800937') .query(true) - .reply(200, {"$dtId":"digitalTwin161015523347700892","$etag":"W/\"fd37ccd5-843f-46d7-b42a-1c1a46598356\"","AverageTemperature":42,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:33.0676299Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689623800937","$etag":"W/\"a170b03b-0ef9-4173-8191-c1e69bbac0e2\"","AverageTemperature":42,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:15.1556271Z"}}}, [ 'Content-Length', '244', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"fd37ccd5-843f-46d7-b42a-1c1a46598356"', + 'W/"a170b03b-0ef9-4173-8191-c1e69bbac0e2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1d9869f3df2be5418b404e61cb0c888a-04e4054472a09c45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523347700892') + .delete('/digitaltwins/digitalTwin162506689623800937') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3fe48b24d19f2e4ea22814abc5eb2ec3-1cd15b9f8bb2cf42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -145,6 +232,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9cde20f75725ea4f92d2a807fa4c6a51-b58e618d2e175942-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.js index c9150fb76a0d..39503e9c54cc 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_conditions.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "98da9c480738e6793910147bcf47bfbe"; +module.exports.hash = "e87478f0d30311188cc99d461878c55b"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-invalid-conditions":"digitalTwin161015523425508148"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-invalid-conditions":"digitalTwin162506689709603001"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'aab8e4ad-9982-49f9-838a-9ded02660d01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrT20mZWc-GT29atzeeD4Pk11salQG_DoRPPOgsno_AFqkGlETinTEojMfwQQeaUNgt4U4XVqzDZ5OyDJqU9ALENviS5uecyOsPBOQjmEbgvFlBqrSlCArT2tAk549cRb5TZIJMVTQ5rEnfASwvqmHupYRobzpFbpxIBdZv7jq_uAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:14 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '58d79bc5-3030-4871-8772-cc5b0fbe3a01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9dDUBXTOFO-U8tgrStgJA1aHVM-BOmCwtuNQg-5ylMX6RUbXUohcpl14sfCAEfGdnziOryyPrvKjOZFm_UVGaXTP8KbDzzPQot3Cni3FOGrpfks6DHw7YkYTjUJ3exyo20NOUg1A9qwSB9LNK7IAIjJRkSlhJbieHyIupL9zE2kgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:14 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=7bdac202-aa82-4cb4-a309-7f269b40de8e&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7df1b1e9-7504-4707-89bf-875ec2f49800', + '898a641d-360a-4605-97f7-63c14a457401', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AkdCgNfin6FBm2RVoEFGADuuaJ_6AQAAAOH7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:33 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:15 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT', + 'Wed, 30 Jun 2021 15:28:14 GMT', 'Content-Length', '1325' ]); @@ -47,56 +120,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-37d32151da0f0c41832f150987fb947b-313099fced5a914d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:33.7651946+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:15.7001913+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b9a4c6f7b11bef45984d87094c372f9a-2e063340063c4045-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523425508148') + .delete('/digitaltwins/digitalTwin162506689709603001') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523425508148. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689709603001. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5b58d943d8111e418c8167c182def710-2ef47abcfc4d6442-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015523425508148', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506689709603001', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015523425508148","$etag":"W/\"89631186-c211-424e-bd3f-bb268b0b4cb4\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:33.8882950Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:33.8882950Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689709603001","$etag":"W/\"a31f101f-2e1c-45c0-8a78-efaa5c9f2275\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:15.7915474Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:15.7915474Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"89631186-c211-424e-bd3f-bb268b0b4cb4"', + 'W/"a31f101f-2e1c-45c0-8a78-efaa5c9f2275"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7c5c40fe162b6740b7891fe93067fbdb-14ce4462ae0a1e43-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015523425508148', [{"op":"replace","path":"/AverageTemperature","value":42}]) + .patch('/digitaltwins/digitalTwin162506689709603001', [{"op":"replace","path":"/AverageTemperature","value":42}]) .query(true) .reply(400, {"error":{"code":"InvalidArgument","message":"Invalid If-Match header value. Allowed value(s): If-Match: {etag} or If-Match: *"}}, [ 'Content-Length', @@ -105,20 +186,24 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-902592fe2bf1f34598f5b21849e501ff-881c5b750b8eda47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:14 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523425508148') + .delete('/digitaltwins/digitalTwin162506689709603001') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-77f392453bbea746bdb520530104a829-f275f1bad237404f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,6 +214,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c65604e575c8b041a2db1e524d91d037-dd67cd71821fcd4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.js index fa85f5e94331..3eaace37fa7a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_invalid_patch.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "6d699afd06cae27d575ab54e67af0627"; +module.exports.hash = "bf89372e400d1c05b2b00ef22cae44f6"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-invalid-patch":"digitalTwin161015523254403691"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-invalid-patch":"digitalTwin162506689558700907"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '61297f5b-7ecb-4d24-abad-36a495962e00', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGubF0TLoS7Wbz2qhdTeQ1H01WA7C92D9QdujY1W5WJjpoQBEO3ALXM0B6dN1wd1GGZRBjVCN7mh974i4ZcllNTPtXsaqHHrzEsA1mgTQVbYztCyi9UfSdMCz3qM1n06ocR2hfJCWjr2ysa3aAonrN4BLFtKjQxEk9D_dBfSM0O8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:12 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ce8f2d6d-3a76-459b-83ad-e4049b836f01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9hc4XJTL796-k1uFoCunfM8qLI6pAD4FsK9qrTM2RCHnBSDfSxiOxhQO9M7TMYThBwR9aFaDF6-Xa7cTxdDjzfpkykYs86BHP-5Vav7axaFbQiz5Ech86ifl9GBfGCfi8F8jiPwXUfUgUPuyT83mTXeyk2PtqsOcAC1NJUCX1lEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:13 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=41851c0a-a190-4c1a-8b14-9d94832cbff8&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '97e9bad2-d928-4719-b10a-fa52d2f38800', + '898a641d-360a-4605-97f7-63c1db447401', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlGH16utb2ZGnc-7BnVNFiI; expires=Mon, 08-Feb-2021 01:20:31 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:14 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT', + 'Wed, 30 Jun 2021 15:28:13 GMT', 'Content-Length', '1325' ]); @@ -47,56 +120,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ae6b7dec299d3a4e8578392a814eb65c-8fa5959c348a2a45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:32.1774616+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:14.1588967+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5c4531910a78494ebc9826520a215c96-ef1b8954b9d3e047-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523254403691') + .delete('/digitaltwins/digitalTwin162506689558700907') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523254403691. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689558700907. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1caa81c427220f498be6f880580b9858-39c8d8d490a6d847-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015523254403691', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) + .put('/digitaltwins/digitalTwin162506689558700907', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015523254403691","$etag":"W/\"f226bf7c-aa8f-4d31-bba9-f13196d41c43\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:32.2948504Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689558700907","$etag":"W/\"b548a0a6-a4ca-4c94-aa50-eb7b687f5cf1\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:14.2944001Z"}}}, [ 'Content-Length', '244', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f226bf7c-aa8f-4d31-bba9-f13196d41c43"', + 'W/"b548a0a6-a4ca-4c94-aa50-eb7b687f5cf1"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0224fbbc3e6ac14b9c69820fee03f5f9-1f34db0d34f4a444-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015523254403691', [{"op":"move","path":"/AverageTemperature","value":42}]) + .patch('/digitaltwins/digitalTwin162506689558700907', [{"op":"move","path":"/AverageTemperature","value":42}]) .query(true) .reply(400, {"error":{"code":"JsonPatchInvalid","message":"Unsupported operation type move. Please provide a valid patch document. See section on update apis in the documentation http://aka.ms/adtv2twins."}}, [ 'Content-Length', @@ -105,20 +186,24 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5b883dc10419a6439776bc79abea649c-d2c7c83146826d41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523254403691') + .delete('/digitaltwins/digitalTwin162506689558700907') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b0e50eab66c581428c49819e406b2ebb-ff184b2507119c4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,6 +214,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-11171115e30aa1459531d591b9c3dcfb-e8414ec1df0d6146-01', 'Date', - 'Sat, 09 Jan 2021 01:20:32 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.js index 21415d98f104..faca0cd17f3a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_multiple.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "cf32055a146926d245b3614a850a5dd1"; +module.exports.hash = "08a458fa9206e09c17b533809818cac4"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-multiple":"digitalTwin161015523174600395"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-multiple":"digitalTwin162506689482704211"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9d0bfd83-8fc0-4be3-851d-56435fede900', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrmqmCqPpThwcgHsmegO3rBInjz6Hgl-t7Atk0Oh8ex22U09dL5ShY9iYDj3BRSm_kWv6VtwM5Tlsk2hkkhGUXQXFNHcYCG6HPtzsN-gsoT6hd3Jji5Munsrwk4MPUpu-LBr3xP9RgMZ2D2Xx2H6s6zXV-cHBdQMc2unSFCeueD-4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:12 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '2addb27d-9919-4ad9-9db7-755b66362f01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6lUc7ZqWC4UoeYLKjTpsrsOSSoVlv6KjgHKIQng8qtCUkjKmCnGMYLjn87n6AJytpI-sk6O4Ol_U67DXV4WI1RuoYPOykVZe1vnv2UbdG-axijHp6ibXngcNi_Njeibb7Ay329jkgTKIrl85cX08MdDzbhtn-mooIcAcj23IOokgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:12 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=98458f45-9f8d-4d77-a0e4-5469c541cad7&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '62e49051-bb50-44d7-be6a-d0ceff208e00', + 'e8adf41f-245f-45f8-a149-c5e4e8764e01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AjKfN6CWQ05FsEthHXd7cX6uaJ_6AQAAAN77itcOAAAA; expires=Mon, 08-Feb-2021 01:20:31 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:13 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:30 GMT', + 'Wed, 30 Jun 2021 15:28:12 GMT', 'Content-Length', '1325' ]); @@ -47,94 +120,108 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-503e46a45f3d1f4b97b9420c8d86b03c-516557ef933dd041-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:31.1962828+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:13.4181724+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e23a786b37ec9a409eaa26488511052f-fa597d2918d4a94b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523174600395') + .delete('/digitaltwins/digitalTwin162506689482704211') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523174600395. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689482704211. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6b08f7ea4a26ec4f84085cbea1293a42-884d71f93635aa4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015523174600395', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) + .put('/digitaltwins/digitalTwin162506689482704211', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015523174600395","$etag":"W/\"be043f5f-b07c-442e-9d4e-8073cd256fec\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:31.2927436Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689482704211","$etag":"W/\"8f36974d-eeea-40a3-ad00-dcd60c31ae4d\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:13.5880817Z"}}}, [ 'Content-Length', '244', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"be043f5f-b07c-442e-9d4e-8073cd256fec"', + 'W/"8f36974d-eeea-40a3-ad00-dcd60c31ae4d"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-58bf364a69b71c4dbc069b4de0344cbf-b0770d3326f2ff40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015523174600395', [{"op":"add","path":"/TemperatureUnit","value":"Celsius"},{"op":"replace","path":"/AverageTemperature","value":42}]) + .patch('/digitaltwins/digitalTwin162506689482704211', [{"op":"add","path":"/TemperatureUnit","value":"Celsius"},{"op":"replace","path":"/AverageTemperature","value":42}]) .query(true) .reply(204, "", [ 'Content-Length', '0', 'ETag', - 'W/"f5d9ada9-116d-4e2d-8c4a-1bec601a2d36"', + 'W/"6064c18f-1be5-4124-8de2-5ec59acf7d6f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-496616006be06448b5194ea5471f3825-6dfc2e0e210e884b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015523174600395') + .get('/digitaltwins/digitalTwin162506689482704211') .query(true) - .reply(200, {"$dtId":"digitalTwin161015523174600395","$etag":"W/\"f5d9ada9-116d-4e2d-8c4a-1bec601a2d36\"","AverageTemperature":42,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:31.3447632Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:31.3447632Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689482704211","$etag":"W/\"6064c18f-1be5-4124-8de2-5ec59acf7d6f\"","AverageTemperature":42,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:13.6469616Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:13.6469616Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f5d9ada9-116d-4e2d-8c4a-1bec601a2d36"', + 'W/"6064c18f-1be5-4124-8de2-5ec59acf7d6f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a21737b31a48f14790ae7bfc85883cc2-28136b6899ee1642-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:12 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523174600395') + .delete('/digitaltwins/digitalTwin162506689482704211') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5fb4fd633ce9e24e86ea59327c777288-18478d4d129cc04a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -145,6 +232,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ef235da4afbb2340b303c019cad721ec-f074ba96449fb745-01', 'Date', - 'Sat, 09 Jan 2021 01:20:31 GMT' + 'Wed, 30 Jun 2021 15:28:13 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.js index 6f9b12170784..008e55c77d23 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_not_existing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "295242433600c8eb97c8594a3daddb26"; +module.exports.hash = "a8d17b2d944c606162bfd6a00b4e4929"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-not-existing":"digitalTwin161015523509502811"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-not-existing":"digitalTwin162506689771701523"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '855ecbf8-b783-4afa-a773-37795180ad00', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriZ_8lypYlU7dvRDUtnVVUKNamWpq8GoFBznQTEbcgplRxiUAlmR6YSj3tSzcV85Di7efQj-W0IDuOJicx06KVX3EmZ-44XG3aC9Y1i1qv2hjh04T9kzqhAbs73iwJ41vZUJeGM-L2Je5alwBtbH0ofXomJvnX_5J-NGIweTW7o8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:15 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '58d79bc5-3030-4871-8772-cc5b3fbe3a01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdYqnsIwpHsca_TKjieCBySypobe4PLLmndHfNFgIdL3M1tP-1ACygiquJq6gnq2AB9xRUBU6VZf8wStTdnePgVYxwWTgRv7WlsVyQCm1gT91Z8s3WiX1hoQrroQn_SJQ5cgyB264KmZ2qZCwjbddCz32rh6QEmVopU8uGIVPzlQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:15 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d86fa0b5-1663-4377-92b9-5e333cd3133d&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '3ba73d04-8e96-4cdc-969a-cdc8fe7b9200', + '4a52fb20-d7cf-4bb5-9204-2a6101d98401', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AswDSpLL8HVKjYpfkGZyAnA; expires=Mon, 08-Feb-2021 01:20:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:16 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT', + 'Wed, 30 Jun 2021 15:28:15 GMT', 'Content-Length', '1325' ]); @@ -47,64 +120,74 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4173c398fe7bc049997d2b8b643caee5-34a6e9b3be1e2e44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:34.5476989+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:16.3057175+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-95793e9b202dad40a461176868960911-e75a8da1e08d1041-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523509502811') + .delete('/digitaltwins/digitalTwin162506689771701523') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523509502811. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689771701523. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0bbc572ea2889f47a1487880dc05a03a-8743487e287ad042-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015523509502811', [{"op":"replace","path":"/AverageTemperature","value":42}]) + .patch('/digitaltwins/digitalTwin162506689771701523', [{"op":"replace","path":"/AverageTemperature","value":42}]) .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523509502811. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689771701523. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-605ac410dfc398488a1db5ee7eb4c7b1-86866a9bf7bc5046-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015523509502811') + .delete('/digitaltwins/digitalTwin162506689771701523') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015523509502811. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689771701523. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-90778f905500e545aaa31a8ec211bfa1-3858741e14c1c94b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -115,6 +198,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0fc3259381a2864286f81508b52ac8f8-3d64f23345aaf443-01', 'Date', - 'Sat, 09 Jan 2021 01:20:33 GMT' + 'Wed, 30 Jun 2021 15:28:15 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.js index de8f217f4da3..ca0a4c6b537a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_remove.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "68e9d03c062b40ff1c29f01f9d266d44"; +module.exports.hash = "791d95a7229b192998a0a5402fdbed21"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-remove":"digitalTwin161015522952704312"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-remove":"digitalTwin162506689334101816"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '1a038f40-be22-40d6-b564-b1208186c800', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5qvLiatT0sHmf1NoaKNjxKZoo25rYr_P_f3TO0DIpwvvzArvB2rMwM9FtJIv3BFdJHfuvAvfg5jh9UrrNHx8yOVOrvOKx4O26skNQdbMAbzyqL5yKyT6l6xbi1nqbnVDqjVPw_EH-sfqVe1DBLAXHsbdQWas19xaK-kycCw3NCwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:10 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b1b01582-f8fa-460c-a911-28f478633801', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEZDDepWeCSZwN5VrqhQz_ZYCAUnfwMGf1Ym-L3lusyn2bunsYfbxgX-OxmUuoNC20SXwIhCA300Pdq0mXmEyW_i2DIDZ7HHi7MZUeF8UdtksbWJyDm04RyHBWa6ryyYwqAA-wF_Tavw4K2245gFvjzl_TfCArOM9UEKBP0ujdkwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:10 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=6c663bf7-3281-4c92-871d-65b077ba6e1f&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '0490bd0b-26c5-439b-95b1-77d4f8f99400', + 'a9a1e068-3c7e-4040-b4a3-695243897301', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=As22tSr2ABJFrXTrXUt882WuaJ_6AQAAANz7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:11 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:28 GMT', + 'Wed, 30 Jun 2021 15:28:10 GMT', 'Content-Length', '1325' ]); @@ -47,94 +120,108 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6fee02bb3887ad4dac66126e7671460d-5df28c1dea32f341-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:29.5235427+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:11.9736389+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a9360ee5d6d8534895d6b572a5adb10b-64e93db5b3d0af45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522952704312') + .delete('/digitaltwins/digitalTwin162506689334101816') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522952704312. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689334101816. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-30eb4035dc905849a7930191659fa0c9-88a3cea71c556542-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522952704312', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506689334101816', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522952704312","$etag":"W/\"fef2dbee-0a31-4a84-8343-ee3bbed9c66c\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:29.6048079Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:29.6048079Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689334101816","$etag":"W/\"55a163c7-677f-49ba-8261-70233aa93c0b\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:12.0814145Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:12.0814145Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"fef2dbee-0a31-4a84-8343-ee3bbed9c66c"', + 'W/"55a163c7-677f-49ba-8261-70233aa93c0b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f534d6687da09841b3baac8fe0d1a216-ff453b01e8116f46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015522952704312', [{"op":"remove","path":"/AverageTemperature"}]) + .patch('/digitaltwins/digitalTwin162506689334101816', [{"op":"remove","path":"/AverageTemperature"}]) .query(true) .reply(204, "", [ 'Content-Length', '0', 'ETag', - 'W/"d317eb38-939b-4602-9b69-781e720abf97"', + 'W/"41227a94-54c1-4f6f-b31e-3ec4bdbccbe1"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-59adb89d8f20e840991d8f38aa485739-697bc1cde9db4543-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015522952704312') + .get('/digitaltwins/digitalTwin162506689334101816') .query(true) - .reply(200, {"$dtId":"digitalTwin161015522952704312","$etag":"W/\"d317eb38-939b-4602-9b69-781e720abf97\"","TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:29.6048079Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689334101816","$etag":"W/\"41227a94-54c1-4f6f-b31e-3ec4bdbccbe1\"","TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:12.0814145Z"}}}, [ 'Content-Length', '245', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d317eb38-939b-4602-9b69-781e720abf97"', + 'W/"41227a94-54c1-4f6f-b31e-3ec4bdbccbe1"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f82db51da09fce408dfb401e6a38c586-fe3e69194688244b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522952704312') + .delete('/digitaltwins/digitalTwin162506689334101816') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a46c0d4a75706c418c09ea6b4e724ba4-4816c4b14a66e84a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -145,6 +232,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3f653c32beef64439dd59e973ed8f9ee-2fd6b683fb43a947-01', 'Date', - 'Sat, 09 Jan 2021 01:20:29 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.js index be4ee63c8af6..e48c43b12594 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_update_digital_twin_replace.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "17d0085d3353091a77f46776983cc631"; +module.exports.hash = "d9be3e61371a1b3d9b5a2db01a83dce2"; -module.exports.testInfo = {"uniqueName":{"update-digitaltwin-replace":"digitalTwin161015522865606318"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"update-digitaltwin-replace":"digitalTwin162506689256302867"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b6347956-47cd-4879-a2f9-1d07fb51fb00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrSkVMwkeNlp_wuDUQjdbSRCrxBpLLxPOWyBF-Ei8nn4P0hXUcslblk9laKHP6ZkscmChyZBA1gU66KwqSY2lp2FJ90f5Ct4UeI6q4NSmDIMYXHZlt8FkaC793e3Q9K9Xww3W7k4etTr8hZOIti9eshD6PcPBFhstn5g-CFYTo-0MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:09 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '17f1964b-db13-4bc5-adf0-3c428a968000', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnyE1Qk72zz8LaMwTX9l-UDr7IiQpoEyVvkpO1_tsm2ccMHvYbA5fdFaKSIOxIkj3J1YxVG8keTSed0hF5EmCG0WQLR46F6LEkjTyqqBJPN4l6pvPFItxwqRys7vCB042Jdi191CRo2E-PR63MGSihFW65YUhu9xJWFSAv3dsRG4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:10 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=6310cb8f-fa25-4cee-a435-e32f13e41c71&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1c0811a5-de1d-4be4-9beb-2cf3bf329500', + '28812791-b9ec-449e-b425-0faaadba1f01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlInkhb_OzhDjdOCfHNHDceuaJ_6AQAAANv7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:11 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT', + 'Wed, 30 Jun 2021 15:28:10 GMT', 'Content-Length', '1325' ]); @@ -47,94 +120,108 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-80390c088e7425418c2113f2799925dd-433b13b610452148-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:28.1839454+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:11.2192353+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-df69311b9835d24398b7532d39db6eda-438c1bdf5b75bd49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522865606318') + .delete('/digitaltwins/digitalTwin162506689256302867') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522865606318. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506689256302867. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5e3bc74b78043b438b8806a2be8a2d8c-c48740906cdc0440-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522865606318', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506689256302867', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) - .reply(200, {"$dtId":"digitalTwin161015522865606318","$etag":"W/\"245b833e-d94e-4ddd-af33-3eebc597b264\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:28.2721991Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:28.2721991Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689256302867","$etag":"W/\"c9f883b6-e47b-4d20-8c5e-effb2e904628\"","AverageTemperature":68,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:11.3509993Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:11.3509993Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"245b833e-d94e-4ddd-af33-3eebc597b264"', + 'W/"c9f883b6-e47b-4d20-8c5e-effb2e904628"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b99fa7b3edbc5948aab1d492e9eb9106-c8a01680b17c6048-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .patch('/digitaltwins/digitalTwin161015522865606318', [{"op":"replace","path":"/AverageTemperature","value":42}]) + .patch('/digitaltwins/digitalTwin162506689256302867', [{"op":"replace","path":"/AverageTemperature","value":42}]) .query(true) .reply(204, "", [ 'Content-Length', '0', 'ETag', - 'W/"c5b037b2-088b-4040-ba9e-f2626d57847e"', + 'W/"675aceee-dac8-4552-9898-982603f5cfe0"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1b0719b7add87c43927affb9508aac9a-c57b377b41d25046-01', 'Date', - 'Sat, 09 Jan 2021 01:20:27 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/digitaltwins/digitalTwin161015522865606318') + .get('/digitaltwins/digitalTwin162506689256302867') .query(true) - .reply(200, {"$dtId":"digitalTwin161015522865606318","$etag":"W/\"c5b037b2-088b-4040-ba9e-f2626d57847e\"","AverageTemperature":42,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:28.3189623Z"},"TemperatureUnit":{"lastUpdateTime":"2021-01-09T01:20:28.2721991Z"}}}, [ + .reply(200, {"$dtId":"digitalTwin162506689256302867","$etag":"W/\"675aceee-dac8-4552-9898-982603f5cfe0\"","AverageTemperature":42,"TemperatureUnit":"Celsius","$metadata":{"$model":"dtmi:samples:DTTestBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:11.4082290Z"},"TemperatureUnit":{"lastUpdateTime":"2021-06-30T15:28:11.3509993Z"}}}, [ 'Content-Length', '340', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"c5b037b2-088b-4040-ba9e-f2626d57847e"', + 'W/"675aceee-dac8-4552-9898-982603f5cfe0"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-39af3999d3c6744193d30db39ab4aa6b-e569ab8b1455f94e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:28 GMT' + 'Wed, 30 Jun 2021 15:28:10 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522865606318') + .delete('/digitaltwins/digitalTwin162506689256302867') .query(true) .reply(204, "", [ 'Content-Length', '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a3dd0a516ede4c48a2296ea476854c34-3c05d0c75a9f4043-01', 'Date', - 'Sat, 09 Jan 2021 01:20:28 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -145,6 +232,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-34e7139a9a7ebc41a7b4465d7cf0f632-f35be4091e369a4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:28 GMT' + 'Wed, 30 Jun 2021 15:28:11 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.js index c8d57aa956b8..30a5e5528b81 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins__create_read_update_delete_and_telemetry_operations/recording_upsert_digital_twin_invalid_conditions.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "a3deda953e1abc71856f5ff56aebfc53"; +module.exports.hash = "807fb88b0f23bdc95e45c30348397442"; -module.exports.testInfo = {"uniqueName":{"upsert-digitaltwin-invalid-conditions":"digitalTwin161015522298804071"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"upsert-digitaltwin-invalid-conditions":"digitalTwin162506688788100928"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4f3036f5-130e-4dac-98d7-8c2a77763400', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2nuf9dlAGOdHanRPebiSkOxwnpZ9eHFJrRt94ZT94NHUKael2HxcpjMZH3u9P4WfE7B6E9HwQ-wsA32oOs8MmbGbCQ0dVIwWI-979OzzRj7x73suwv4YPHzvi_yrxffyt0_ddHquB2gTwkqxwGzXsaxVZsYG574qdLOVeuJVh0ggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:05 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '28812791-b9ec-449e-b425-0faa69b91f01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJb6nZmenRvRLSaMmW_dnzjjL-dsaVnbK9z8BBzpIdBRmdeS-UJVRMA-cu-DPTG6VcO4BvuTNc27pTbBRPqASTol3KTnWbK4Qiiz0pBl2lMVHn7bHCE2yoWZ-cbl5M_Mzddqr8GW1ZFLXm9KFeknJKLzJDDGo0rSnu6V6eK1c-MggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:05 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=727241ca-2842-422c-b357-022f653c933f&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c151beef-47a5-423e-830e-3faa8f4e9100', + '4a52fb20-d7cf-4bb5-9204-2a6149d58401', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AnqWCMsa2YhDvqWsyXJgt2uuaJ_6AQAAANX7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgDAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:06 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT', + 'Wed, 30 Jun 2021 15:28:05 GMT', 'Content-Length', '1325' ]); @@ -47,40 +120,46 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-02d85ee074dab04c91bf3a9fc0ef0cdb-dcc30af23d4f8f45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTTestBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Property","name":"AverageTemperature","schema":"double"},{"@type":"Property","name":"TemperatureUnit","schema":"string"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:22.5184819+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTTestBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:06.5034895+00:00"}], [ 'Content-Length', '161', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5c0b50ee7153ef4591e18df674dc0735-c47b30a528b10549-01', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522298804071') + .delete('/digitaltwins/digitalTwin162506688788100928') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522298804071. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688788100928. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-da3ee1f560818049832302c1c2c2979c-17d457b308cb4d42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/digitaltwins/digitalTwin161015522298804071', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) + .put('/digitaltwins/digitalTwin162506688788100928', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"}) .query(true) .reply(400, {"error":{"code":"InvalidArgument","message":"Invalid If-None-Match header value. Allowed value(s): If-None-Match: *"}}, [ 'Content-Length', @@ -89,22 +168,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5a7d2fc94527084e87bdc43375c6403f-eb2a44cf12d59b4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/digitaltwins/digitalTwin161015522298804071') + .delete('/digitaltwins/digitalTwin162506688788100928') .query(true) - .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin161015522298804071. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ + .reply(404, {"error":{"code":"DigitalTwinNotFound","message":"There is no digital twin instance that exists with the ID digitalTwin162506688788100928. Please verify that the twin id is valid and ensure that the twin is not deleted. See section on querying the twins http://aka.ms/adtv2query."}}, [ 'Content-Length', '282', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d15160df16fcdf4f9b57436f6774305b-3a1be78122e2ff45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -115,6 +198,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4d6d8e4ee33ec24e8d390876a849f327-751c3f557a27bd4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:22 GMT' + 'Wed, 30 Jun 2021 15:28:06 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.js index a8b0ff50c1a5..9a6b2228576a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_not_existing.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "71da3e59cd5db22a184696e2a7a87743"; +module.exports.hash = "9dc77704b50bc25cd991f442aae56712"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '154747b9-503d-4434-a18c-1527ec342800', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXo; expires=Fri, 30-Jul-2021 15:27:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDp-bqzrWq1k0L6E2BvPDYCRQ2pOputzssyZRlbyizVk99M4f91WO6na_1bvOJgU0lqjS5hOJP5RWULB_sVy-3PS8xJ-Upy7RwnznE04kVzWLklVbshjSEpsayE9_45SjpZvlxc22ZvtfjB-siWLIgd683r_MGZjtk5hub4Wf_mMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:51 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '2addb27d-9919-4ad9-9db7-755be3312f01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXo; expires=Fri, 30-Jul-2021 15:27:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMlD5q4XUDQj4Vl_PxBD2_56Hf2xHuSoyhnWYGsTFe1msHyLeO7uMrtqAKJcCneHS-1o0NxLnbLd10Ckv9r1pDdI1cBQDMBOdWQMNw0db-pC_ug9UV3ocgpyikUKAHhfAlGwuh1EC2FY-G9j54V2NfWDardO8Dqd7sacnlwin2nEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:52 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=54d67aa7-40fe-45f6-b3b3-a7abd6ac6c2e&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '62c4560e-2fe5-4ced-b314-1c3d41898e00', + 'aa2c3d00-0907-48b2-81d0-a3587def4201', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AkKXynytALROoYjQzzz1R16uaJ_6AQAAAMj7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:53 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:52 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8ce5fb26c8e2064094a4c47bed634b29-1a0fc9def6fbfe40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-13cf7675da50734684a34ca62cba9e6f-0e670504b483124d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:09.8579826+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:09.8580124+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:54.2831873+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:54.2832175+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-25c70dd184c78c4eb9ccd4c2bbcc2a47-4343b62d945dca47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-41d920d31640b04d8a9d8ceee4251dad-e10712a894418c45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"1749a599-e51e-4c4e-9163-27a25db7674d\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:09.9394911Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:09.9394911Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"39ed27c9-1968-490b-810e-821a74c2d7b0\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:54.6978868Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:54.6978868Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"1749a599-e51e-4c4e-9163-27a25db7674d"', + 'W/"39ed27c9-1968-490b-810e-821a74c2d7b0"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a3f75502de043c469b1efd2a0bf4e901-876ab1aad3b15946-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -119,8 +202,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4c37b70ccfaa4043b8a6706e060b09bb-6db55859e0e37a42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,8 +216,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-757975a319233146b367872d6d23e534-d3a1a89f430a0b46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -143,8 +230,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ba3cac5e427e194a88c1d124c4558039-7df1e1a1a58c354d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,6 +244,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e7988e6148399847bb6dc31f555b5fe1-a8036b4361363e4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT' + 'Wed, 30 Jun 2021 15:27:54 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.js index c89e01660fa2..11b9e24fa79d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_get_component_simple.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "a470b14f400017f482afd5cad3caa7c6"; +module.exports.hash = "9bac0ca2daafba01efcbec476a0fb69a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '70b71302-dce2-42b3-9c2e-76e10d152201', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrXRUByn6sfVf5q4OkOleYK3pNT8VjuyDMumcj_Qcn31dwAf19Cf7j3VRcCzSRQGfgQdJhoPM_GwSuPRKeMZF5568EfJS1EE9sYCgRysgSNGBZRAS8Bx5Ye2DLs0ZTecknPdrn9nnfR8Dhk57-r0LvlB7Rk5GzUPGjvwM4fhLq1MsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:54 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '17f1964b-db13-4bc5-adf0-3c4214918000', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrkHHlOSp_3V1Ew32prwc3CRkfLi-dH0o9NTDzALUy0Ju62URHhK7j3cJHxG4PUTqK-FvDTD6_EIxK-whqlJ8RYVSzJSKdaJJ30kIZIaaQNX1hRggdY63M-1W8U3EkEalxRZtRO6If7YaB2Q5MWShGWqDwQ3zfBSz-0i-ezw2I2BggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:54 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=4c911afc-7496-43ab-947f-95946f84d271&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c01b9c23-efc1-46e2-bb20-1255a5cd8300', + 'e8adf41f-245f-45f8-a149-c5e41d714e01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ai8YPzva2HdKq5j2NKuQwSquaJ_6AQAAAMr7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:09 GMT', + 'Wed, 30 Jun 2021 15:27:54 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-805c9b169ecc2844b00fc533a80e30d7-2e99067afac4d446-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-01db98068611f54ab58cee702a459748-757115592451f243-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:10.6668461+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:10.6668777+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:55.457166+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:55.4571957+00:00"}], [ 'Content-Length', - '342', + '341', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8180213375b35745957c51d4022269fe-00ece49682bd824c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,40 +168,46 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dc1c9ac6ee5abb4ca8e9b12b4e11a151-9582594c0424e740-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"654f4721-af22-4064-b57b-f57458c0baba\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:10.7371422Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:10.7371422Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"a852efe8-50c3-4a8f-bbc5-089259c10675\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:55.5595232Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:55.5595232Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"654f4721-af22-4064-b57b-f57458c0baba"', + 'W/"a852efe8-50c3-4a8f-bbc5-089259c10675"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ed02fca0da616c458b4b62d07f008f4d-60d27abfac021b4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTComponentTestsTempTwin/components/Component1') .query(true) - .reply(200, {"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:10.7371422Z"}}}, [ + .reply(200, {"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:55.5595232Z"}}}, [ 'Content-Length', '108', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"654f4721-af22-4064-b57b-f57458c0baba"', + 'W/"a852efe8-50c3-4a8f-bbc5-089259c10675"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-712fa16d40b1b1479dd4d72aef0d22b4-772fb6d094e7f34d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -133,8 +218,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1dc4fd32d120474b92f96d58e9f54c74-48cf893a695c2e4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -145,8 +232,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-23922d05a9422c4a8749aaf74c0c6171-ce642a9909e25d4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -157,6 +246,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6eb447797d6e2544b1ad25aa61cc0fbf-d5bcfbbbdb822743-01', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.js index 72355c35f19b..16b1b76c56b8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "25ec28d25609550cf93f75f2ee7f66dd"; +module.exports.hash = "da47e556ef0b4cfdf29f95577051ad79"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.js index 5851129b94bd..1a22509e0fd7 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_not_exisiting.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "f98f74c6d808569e9f79dcf7d6ab1c2f"; +module.exports.hash = "bd8937541fc273de6b4a925132fb4403"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.js index 48cdd5df6f08..0ee82d6b2312 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_publish_component_telemetry_with_message_id.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "ba70ef4b50f46fda2a0dffc8e9c1654f"; +module.exports.hash = "26d845ad271127bed9207897a84ca753"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.js index 4bab160fb571..b94f74517bf6 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_add.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "a5ceeef20ef8bcd012f7871aae2028eb"; +module.exports.hash = "733c5803fd7f305dc8cb1a56d227b6d5"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4819df72-beb8-44d3-baca-252c57405500', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxE4OqxjPG-5vDdgYTgo2yTbIUW04wxSOrDUGhN7OajQVlKFC9mfBMVuqkDXoph5MOOvcXX0VBgv_fA6_6dlR74oMNXiykcbxTsIB6yf6B8RFaynwKTfStGgUJiTLx7Raw2kitd__kK3_gkPSI6Fp57F-ebyLdFYf-TOmt7AyF3ogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:56 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a7570ed46601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFz1-KMIvtkRJRPsHIEJ3lfA_aR78wLGEbl0UTl65u14_AQVtQ8W4i2Q6oggXZbShw_-JMqgcO_VgK4DX-sFlDDs1FZ_utxOEhNIBXxmuIBji7b-VMke1h153HUuahi8IISblF5wZyuxKcFhtxDzO6prnv9vdZWg3E1tMSXRaYZcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:56 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=5dc14ea8-4c9d-4be6-9030-e5e17f454527&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '49b153fc-6620-41f2-b02b-2dd3d8e49800', + 'c2c46a2d-caf1-495a-b60f-6d2012068301', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AuYbgMkqDPNGgJB0VpuW9ciuaJ_6AQAAAMz7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT', + 'Wed, 30 Jun 2021 15:27:56 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-03b897df91dc584ca788b2406b87a902-72508fc67541b54e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e59ec162c0d0f947bef3585a9efb846b-cd77cc375ae90844-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:13.2972323+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:13.2972613+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:58.0064313+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:58.0064592+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5292f76cb85f744181943d9414099859-0086942eb5a47c46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e508f601d3afb1418393c036a9abd956-221a8c0a4ae9b84e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"5dc15d4d-0b6e-4aad-91d9-10150c1e07fd\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:13.4052455Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:13.4052455Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"9decec41-184e-4d02-b770-d0b615ce0601\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:58.0948474Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:58.0948474Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"5dc15d4d-0b6e-4aad-91d9-10150c1e07fd"', + 'W/"9decec41-184e-4d02-b770-d0b615ce0601"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e15d76cfdc3b8a4590f7e76f5d626f0f-d7d1a202a46f2d41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -116,27 +199,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"0d629acd-04e4-496a-90a4-476678a8988b"', + 'W/"7a3de81c-7d28-4f33-ab5e-9a1c5d7de278"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c2425e13ad962944b4d279e43435da23-745cffab75e5b842-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTComponentTestsTempTwin/components/Component1') .query(true) - .reply(200, {"ComponentProp1":"5","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:13.4469210Z"}}}, [ + .reply(200, {"ComponentProp1":"5","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:58.1434169Z"}}}, [ 'Content-Length', '103', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"0d629acd-04e4-496a-90a4-476678a8988b"', + 'W/"7a3de81c-7d28-4f33-ab5e-9a1c5d7de278"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-029da75aecbd0e4abcfd9b3164648fe0-2a3d8ea6e1c34f43-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -147,8 +234,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ed594ae24d956145b2fbf523849a2888-ba0a4f273c5ba746-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -159,8 +248,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e09c7a0ee008d440aae6a5cfd528a855-971099f20b9ac845-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -171,6 +262,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-93e91f73f954cb489cdd1b2ab3251023-143e6a10f121004a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.js index 31189a8bfbc2..53ad0fdb45a1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_conditionally_if_present.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "598bd6391453d482eead320abd3a142d"; +module.exports.hash = "cc6fb7374e59e9beb7344beea679523c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '49da0699-5577-485e-95e7-255556aac100', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr03C4TSak2C5dvE0SzqUsgAGgTrSlmYE2hrB4V6ZGcvBzU5nRRfxs_C0n_30qU8oiwFQwTPElQEbTpg58m0O-z3zZyg10PuppkwqFWndy4y8cCcCk1vjVj8cNS1aUUDGDiZDBtrn47wVYG3I4Jn_z-PKlyCKf518GRVabFsedHvsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:59 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e8adf41f-245f-45f8-a149-c5e49d724e01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrByvGWvl4eZE4C_-nb3RlagHnonHrXsETvesBzRD-gehdFGIElA_E9NEWw8fNtuKD1Elxa3IADAm_AdIs7dTRXUwMebIB-6gNXX47IUJYnNQ5rW2bM0mF8BfLTR1SXJPr1_smP0UOcavPs_x61UI9yFS8GA1rBre4LLH62luFNOogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:59 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=293e07f1-f086-4471-8bb9-f255996f9080&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'e1dde777-26e6-486e-9ed2-8249245f8300', + '17f1964b-db13-4bc5-adf0-3c42a0928000', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=ApPqdbBq0x1HgseEUNUTnX8; expires=Mon, 08-Feb-2021 01:20:15 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:00 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT', + 'Wed, 30 Jun 2021 15:27:59 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e06215053a19ec4aa0dc8ccb14874bfa-4b3f5419d7237947-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-58a17f2bd2b1394abb5963e82a31adae-bee272f8f404b940-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:16.1139256+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:16.1139743+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:00.5067213+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:00.5067489+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0b331268a9669b4eb8aabdddc4dd141d-3b33b5656a78a642-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,40 +168,46 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fb3a5a4712b31b42980e88b14a7ba313-502bef63f28ea74c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"00a13df9-3c07-40b4-91c9-90f8633b702b\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:16.1890779Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:16.1890779Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"063cb692-0121-4703-95fb-4d3f9dd3b15b\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:28:00.6255958Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:28:00.6255958Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"00a13df9-3c07-40b4-91c9-90f8633b702b"', + 'W/"063cb692-0121-4703-95fb-4d3f9dd3b15b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f6a41d311118db4dbfe55f5bc062fcd7-1761195ced867d41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTComponentTestsTempTwin') .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"00a13df9-3c07-40b4-91c9-90f8633b702b\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:16.1890779Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:16.1890779Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"063cb692-0121-4703-95fb-4d3f9dd3b15b\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:28:00.6255958Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:28:00.6255958Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"00a13df9-3c07-40b4-91c9-90f8633b702b"', + 'W/"063cb692-0121-4703-95fb-4d3f9dd3b15b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-005e8dad9c78484cb080966c337de496-5f5aca8d2e68fd44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -132,27 +217,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"3883417f-d8a1-4a95-83c3-6dd6a7f6176e"', + 'W/"c4b0d4ce-1c60-4dac-a913-466acb1087c4"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f044760b46a9f04cac57d21d569b8aaf-4363251ee5306d42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTComponentTestsTempTwin/components/Component1') .query(true) - .reply(200, {"ComponentProp1":"value2","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:16.2604478Z"}}}, [ + .reply(200, {"ComponentProp1":"value2","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:28:00.7100523Z"}}}, [ 'Content-Length', '108', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"3883417f-d8a1-4a95-83c3-6dd6a7f6176e"', + 'W/"c4b0d4ce-1c60-4dac-a913-466acb1087c4"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7ea247cecc66e640adea619f0ec21f70-3cd87ed847df8a4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -163,8 +252,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0efa1e1be688f848a2e9181d7d04c51a-4e15665570dc2141-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -175,8 +266,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-182fc85b2a2feb439fd6cb88a46a2455-222e4b861aba9e49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -187,6 +280,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-efdd49969ee1fb44a1548c9e4f166f9b-b70251bcdcf6164e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.js index dfafd15978a8..b2c6bfa0f174 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_conditions.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "7a5a4eecc9c371bda1b9a68fb3c04a6f"; +module.exports.hash = "6f62caa59733446907f66d45ddd72930"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6eac9ba9-675f-4509-95a9-e32459663701', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTTWXWo9ZRmC4jy2UVttspTAEviS7MgHtUiruX_4sCwwFEYyvfzWcIJk4JgkzW8LiqysyagNU8L-g5mH5tNwH9FVYiA3moc5iIeGE3bI-tsp9qSlHlTiIMUWTXnipNHV__MTn8y2Q_G7m0jKJamPrT0tpifZ_1tJjjDNKIHe2sF4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:00 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ce8f2d6d-3a76-459b-83ad-e40426806f01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevruytkb4lTF_bgpTGKi3r-9jxPyPiDzUdcFt9M3Q_rXssEQ_MLgrd5uhhRmGqEpSNRT3opWoS0e7a4lszEKXs_Dttq1S4wvP5iNvtKLPO2jWRf8Xs73pwDBhFCUndPVNYtipgi2Y9NBp_1PaGAQoE-42jbXBrms4iAAfeEKzgD2zcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:00 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=285094ac-8992-4e9c-8b69-30bdcdd0500c&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '193ca0d4-8558-41a9-a6e4-f8064e039900', + 'a9a1e068-3c7e-4040-b4a3-6952c7857301', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Apk0nsiZJYBPhgXu8eb5qnmuaJ_6AQAAAND7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:16 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:01 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT', + 'Wed, 30 Jun 2021 15:28:00 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-09297835ec25bf43856cea39a2d3c31a-b75d8daa6d93ad4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-01ad7f6ee68290478b9c1305e4e2fcc4-655cd15ede68e94a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:17.0578321+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:17.0578584+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:01.3366981+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:01.3367279+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-de9c6425ceb593408d6f977d7e8cc801-7d9b9f1f6d871942-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-97901449c0224443bc323c5e989e5a2f-723500bd7c51b140-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"1c9fb868-fa8a-490f-903a-c4648b0cb8b5\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:17.1556552Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:17.1556552Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"143e87f4-f49e-4df9-915f-1ac25d31ce30\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:28:01.4307730Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:28:01.4307730Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"1c9fb868-fa8a-490f-903a-c4648b0cb8b5"', + 'W/"143e87f4-f49e-4df9-915f-1ac25d31ce30"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c6a154ce29745a4daade9bd82f24a30d-52ca5b0d58fbff44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -119,8 +202,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-df2aff8ac158ff4484bd1fbd68f9bb13-53a486e1a6bc264f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,8 +216,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fb9517a3c846fb4d8cc799dadcb9686e-0e37b03164a7f447-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -143,8 +230,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4547e424f1c2b14cb0cff385fdb655d4-3eb7cea620289445-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,6 +244,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-361d5a6a02e71c4c9dfeaf5bc85faa0b-43963c1f43d03c47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:16 GMT' + 'Wed, 30 Jun 2021 15:28:00 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.js index 3db65cbb0d36..53ae9fdc11e8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_invalid_patch.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "a7780a499dc02665d9f69da58d013306"; +module.exports.hash = "0c03562c083bc488b2d4d3d88cd94d11"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '5c3493a1-d788-4b85-a202-cea1ded50301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr41YeRicXXoPRCPcLIzfZAtU5MoFvuqGdQmbNnDbaPJcOm6Pu6NfqnbLWsc6S3K1aRLCxhhlBb36fSXy_TVNyGL_HCWIU8RMpPZPef0UbYKbvV-M1vdkTL1DGIfeWoATA-5U2lq_O3O4ciutAwirxqPy43prkxjbBvlSFbKB2r8ggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:58 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'a9a1e068-3c7e-4040-b4a3-695226857301', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr0ioG18hSpR-YzCCaNgpm1GsCFhywe5R-zubPa0sd2bKbMcSdq1vVKdXKq_tRjZHa3uXsH1KxPHiBOOfX55a-rKbqtfrpcnOIT7GInj_K9vpVTp-06JtV5vE8kEO-mwfcFoY2hfYWnt5pwgbMAjhbeTGnDsPYY2XUP2ost8U4kSEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:58 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=3646ba30-e86e-4ce5-bfc3-b02dc3e86df9&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '74760bcf-80ab-4a7a-b7ee-827886fb9000', + '5135eaa0-e541-4f41-804c-684bf3086a01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ai9wKrB4pvtOvRrmgCZEBBuuaJ_6AQAAAM77itcOAAAA; expires=Mon, 08-Feb-2021 01:20:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:59 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT', + 'Wed, 30 Jun 2021 15:27:58 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4bfb430e16de954fa8e22f209f1c1b21-c2b64966dd026b48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-960c49522a577046a2943d62bbcaaca3-7d407393bed80b4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:15.2604077+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:15.2604556+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:59.6405264+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:59.6405565+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-58f6f69623f21043873484628c0b4cee-6c2ed33c4541aa4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4d50f64db226124ea0809107594fb822-463a6935c57fa147-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"c755d2d7-0b8a-4db9-b273-c9cb9a3729d8\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:15.3442049Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:15.3442049Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"ffe52538-2b5b-48a3-af79-7e09b20cf463\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:59.7309984Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:59.7309984Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"c755d2d7-0b8a-4db9-b273-c9cb9a3729d8"', + 'W/"ffe52538-2b5b-48a3-af79-7e09b20cf463"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7e8c7b6eb2033445b8d9ec6f838c1208-44e294c191006b40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -119,8 +202,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d5101eeccfa6c84abbab900f70373f14-674910c68c17c94c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,8 +216,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3586da2f4bab9740964bf85616e4a580-9636e4f198c4d240-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -143,8 +230,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c3fff45f27d5c642845624ef3d5c8639-579f184e153ec34c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,6 +244,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d227afe72aeec741ab2316c1ac83a7f3-fe64033d1f911746-01', 'Date', - 'Sat, 09 Jan 2021 01:20:15 GMT' + 'Wed, 30 Jun 2021 15:27:59 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.js index e381e9bc791a..619dea987c4f 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_multiple.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "4ce8d5859cae3bbfc43ee75202a0a0c1"; +module.exports.hash = "697586fb49ac7c0ad841a9c93c4ef745"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '68f16aa6-2c9b-4fef-93f5-2b0fd9a16d00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:58 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrx1SepU8i2K8xF8eatPig2_xZdX5c2SRFlrFcAX7FySGtyXOKBhv-s7TZsoTi98pLxG8QMRFFZnUQHA5dD9mxe-DZ1dgQDz8L7iiz2r9YY9GoSLALIer1KMZ-TJkONFrXK7WS-IJ_eSJ6lIrMywH6YqFi4W1WwAWGRl9MwJfKidcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:57 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'd12e31ea-411e-46ee-a3a0-3f7faa941901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:58 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPqe75NaY-mVXGQVavYO5MC88g57Ci1sYAou8C36br9WmxeWcHumGUBIq6CUF3YpnefvomfFRDlNo7A9-j9xEgrgBEdbGqeXLKFYh2yJfVQtFOdWV57XtZDukdFmWJ7b2XUewNI30UjssUn7q42P5m4sXIhGf29TULL_GRtljdkogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:57 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=813d36fa-cc70-43c5-a597-1cccae5456a6&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8b1947ee-c6a8-4b20-9e6a-ff0098198a00', + 'a9a1e068-3c7e-4040-b4a3-6952e5847301', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=ApS77p1oxChHgmrqg0rPANeuaJ_6AQAAAM37itcOAAAA; expires=Mon, 08-Feb-2021 01:20:14 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:58 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:13 GMT', + 'Wed, 30 Jun 2021 15:27:57 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a872e048c4ae1a4e94bc8edb384e126e-b394f73c88b7ab46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ab42e4863ed65848b85a14c4f128bd9e-b5b2c0c9fcf63947-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:14.2790601+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:14.2791027+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:58.8102238+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:58.8102614+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-76f4895885f49d41ae1e6b800cf73d4c-b61aace8e4bd6a47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8f5d312f46c8d74d8d44ea73d6879815-e0b4d5c123f0c94c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"4f668988-d06d-4e2e-9322-55772701f988\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:14.3810539Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:14.3810539Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"b81b3218-56f2-4f93-8ea6-b081d4a7dcc7\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:58.9185149Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:58.9185149Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"4f668988-d06d-4e2e-9322-55772701f988"', + 'W/"b81b3218-56f2-4f93-8ea6-b081d4a7dcc7"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-89bc5c874729be4e956e6860c4acabdc-af3fc83b10d3ee4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -116,11 +199,13 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"b3641b90-cf16-43d5-8046-6e64b2ce664a"', + 'W/"c9416777-c6b7-4f80-b1d1-ce48e7631c9e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7cf23fab7c49f048b3ca49e824141461-a3ab4a94c003d045-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -132,27 +217,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"b3641b90-cf16-43d5-8046-6e64b2ce664a"', + 'W/"c9416777-c6b7-4f80-b1d1-ce48e7631c9e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8293fa0f511f6a4c93f1ce9f4400b617-3d7ee9f21ba46b4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTComponentTestsTempTwin') .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"b3641b90-cf16-43d5-8046-6e64b2ce664a\"","Prop1":"value","Component1":{"$metadata":{}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:14.3810539Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"c9416777-c6b7-4f80-b1d1-ce48e7631c9e\"","Prop1":"value","Component1":{"$metadata":{}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:58.9185149Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"b3641b90-cf16-43d5-8046-6e64b2ce664a"', + 'W/"c9416777-c6b7-4f80-b1d1-ce48e7631c9e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2ad0485bea339847bf42fc58df6bbee1-f6216e03d402d24d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -163,8 +252,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-291f3bb1c103a4429b81108d166d117e-601bf330cde90a49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -175,8 +266,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5671e6ade949d9439934e6b1d8922e33-a7031f896a3fb44e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -187,6 +280,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0745d32d522cab4094c20a132d42cdb5-5f5e62dd63818143-01', 'Date', - 'Sat, 09 Jan 2021 01:20:14 GMT' + 'Wed, 30 Jun 2021 15:27:58 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.js index bfb3c6df0ecf..243391e8c53d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_not_exisiting.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "ac6ad2bacd527ef0a8b2872eaeda8c15"; +module.exports.hash = "441e067c521638638523e2dbd04138a4"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a72a31e-8269-4e7c-9cb0-c419c9cb6f00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxiJunwwb3Udi2Hgj_K31SkshBT4LVDgpuQABxFvDFzyerlrm6beoZnNCr4x8lWPhvgsfRZZ-hDhgJqrMOcIJXSz7VtmMZHR7RXw373AN_II_ZS5Xg8jKwbcUXMut3918dbwf-SeuNou4Z-TtXVmFCND6dbrwRmT3mndTsf0uJRogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:00 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'a9a1e068-3c7e-4040-b4a3-695201867301', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:01 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4KR_tAhPNQxgoAXcWs-751dVY2mm1eeSc-dbJCGyhH4iKs2Ajx4aWjOi0UYQ3hzx4i8idJF_ciJlWRBgarRPSJL7j4UoozAgEX0e1yNWviGhFKqBuwz1ZYfqWbmOI04knyjrttU150SWTsxqsqDVugzxAF9aRGQRcgXtaTiOXisgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:00 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=00783254-d476-4354-bf77-2e39cf24886b&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'bbdf5d9c-2daa-44a3-995c-aaa8e68a8d00', + '28812791-b9ec-449e-b425-0faa1fb81f01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AjL6N6gdcqRHp35qa0jNhGQ; expires=Mon, 08-Feb-2021 01:20:17 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgCAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:02 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:01 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cce2ac1508d02a49880e7662fdcf3107-160473673017db40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ce49fb446bd64542a3e81fc58c389026-dfa3ff28dbc11b48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:17.8661961+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:17.8662249+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:02.2081374+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:02.2081697+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-da5f06624bb51a4d8a1ad6c8c851b692-c9cce4e027518646-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-64fbd552d621684fbf5389439599452a-0e1a7ffbdc700349-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"d7a55079-71a5-475f-b4e0-b8dc6a498c94\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:17.9472600Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:17.9472600Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"9458727e-405a-4bf4-a6df-5a6262de19ce\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:28:02.2986850Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:28:02.2986850Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d7a55079-71a5-475f-b4e0-b8dc6a498c94"', + 'W/"9458727e-405a-4bf4-a6df-5a6262de19ce"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-15ec9d5214d9c2478f6fb8ca03b35fe6-055e3f4f9f6ec647-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -119,8 +202,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fb5e736690146443813d088743bae3cf-209438c45bdcf04f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,8 +216,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a7046be72ad00340af5a9bc8c5b2203b-f70bd68978c23d40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -143,8 +230,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-72356c9e0ec09d438ea2cf8156fad42e-4ac535e585093b40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,6 +244,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7ea9f0d36933e247bfa0348371f8c824-ab400000ac724c48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:17 GMT' + 'Wed, 30 Jun 2021 15:28:02 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.js index 69ac7938ad09..17cc126f0456 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_remove.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "ee57c8f7f9314b0e8afcbbd831a47d71"; +module.exports.hash = "4d9b8f459dd9c6f13a29f1384f79828c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '7106c8e0-7a52-4d99-9157-c8503f7e3d01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxEJnoaxrbiAcjLlF8mifdh_RDIjAtHh0-heVcbMB6EZ6sZ8Z0szwNWDL7hhEtfQQNkXUDfFSLIwntVKYL64KzpNU2or7nRq8S8IgsfaLNl-N3pIbxOA8wgKpBZBjzKp0R3RmkPU0V183JvmcQIwN7RHbV17EfBt4nvZKm9Osnf8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:55 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '30ded47f-c75a-4cb4-aa53-0ac98b823701', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLDGrB2N-_GGOiikT9aKytL6zL0zw-RumKtBqGROIc60Y5D5QWZuY-sKCOcFoFVMT2I6QgLdwAlP7hQ0szRIM-1mL2R9vFYoVBJ-Wj8H7RIyV_xJ0o4_1GzURWAAyY0GKJ2EOIQHgDFxhwU6Vr_6FWPhVDVjJdRxPxxgPExmb2KEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:56 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=5ea4050d-9489-4cef-bf84-49f3a6f7d077&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '41e6402a-aa3c-4c60-8ad9-af318f529200', + 'a9a1e068-3c7e-4040-b4a3-695256847301', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ak0v0Um94BxMnjRHto6YMwGuaJ_6AQAAAMv7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgBAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:57 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT', + 'Wed, 30 Jun 2021 15:27:56 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e7db757ce9c2ed4994033ab9d41aba4f-f689338851fa3448-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-bfff4e01b631424586dcec41dc2a949f-88b60e8bc6c1b647-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:12.3953954+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:12.3954197+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:57.2094824+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:57.2095134+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-55d0a1c41336ce44bc145cc41e6eebd3-32497af56022d74d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-99dd31308572e746a009e6748a09ee22-db38b3b19fbe0949-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"4ae00c94-5ea0-4973-9b1c-9d60c47b7b8e\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:12.4821226Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:12.4821226Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"3714b4d5-aaff-4e3e-b3a8-3bb103303a3b\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:57.2966331Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:57.2966331Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"4ae00c94-5ea0-4973-9b1c-9d60c47b7b8e"', + 'W/"3714b4d5-aaff-4e3e-b3a8-3bb103303a3b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cab2e4c6d4b1c041b65e8e18d6dc7389-81a8a08a089c8a4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -116,11 +199,13 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"cf70c802-0558-4f68-89d6-d0ba149fccd6"', + 'W/"07da472a-fa7f-4b35-9aa2-98adfdeef5c2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4beb05217562e54a8b89d1b30c9141a1-c951fe27e39a7644-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -132,11 +217,13 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"cf70c802-0558-4f68-89d6-d0ba149fccd6"', + 'W/"07da472a-fa7f-4b35-9aa2-98adfdeef5c2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3824714f129b1c47b5a75b0b58476952-2669061cd43b9143-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -147,8 +234,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-257a22a36223cc4b8598a79be68b8d96-1d941729ad38be4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -159,8 +248,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9a8b905d4f562e4a93303c33cf97c3b4-c16061aafae3ce40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -171,6 +262,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1aaebc88e9f2c34d97274ceb6fa0530d-8ab55611ab781746-01', 'Date', - 'Sat, 09 Jan 2021 01:20:12 GMT' + 'Wed, 30 Jun 2021 15:27:57 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.js index 8865db51fba1..25f2c0b79cfc 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_components__read_update_and_delete_operations/recording_update_component_replace.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "747970369b5a887fda63bb61959d6fe1"; +module.exports.hash = "b2aa9f2ab61b43f38f985eea478b6ee3"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '49a654d7-9719-4617-a158-e90ceb5c2b00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYTMMaNoSoKHX9wZiGDd6zIAwehb7k1LuPlbLRvDiWgLntkJ2AqP3GN8br07PaCMhIC_SeFGnh3JaCmIlGVVTZvqLKJTznSgIXfYfjL67lZbHU1TWcvQmZ4-GbHHHWPW4Wfoo6jFqP0PBIz9bnBvaBnMHUIj8dPQPz-Gjog5aJNYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:54 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '2addb27d-9919-4ad9-9db7-755b91322f01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruwUwT1OdI-jPyPwkxmC2QNj0Pfr8msblfArfl4Csc8t51mchSjOGcL3px07uKZGM-wpDKQBK_0P8AJRMk93q48s3fLyx1jrp2gWrcepltBpB9DjTQXEe8vsv83pZOpv-4GZH7EWPObRiczWFdCpvxhxJ34DwQD6OU8XF_0j_J8YgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:27:55 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=93ba10ca-8431-4150-a47c-8aaa09ba993f&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '180cef85-4941-43f5-9c47-c363ecbe9600', + 'c6f9394a-e669-496a-b7cd-a7578bd36601', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ap8ucOTNf5JJsIwN8McoePKuaJ_6AQAAAMv7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgAwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:27:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:10 GMT', + 'Wed, 30 Jun 2021 15:27:55 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d776c92f9ee18145ad9057e5825f84e2-c78541b49cbce64f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d2b3430facc0f046ac38c80c5a540743-84c6df79c1342745-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTComponentTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTComponentTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTComponentTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:11.4843738+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:11.4843992+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTComponentTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:56.2484601+00:00"},{"id":"dtmi:samples:DTComponentTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:27:56.2484905+00:00"}], [ 'Content-Length', '342', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cb6e2db1c8a6e14494a060b1535c7b76-87d4e7f899d27541-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,24 +168,28 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ce08873b66de344586983d09f6dce31d-ee8837bb3f9cf646-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTComponentTestsTempTwin', {"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1"},"Prop1":"value","Component1":{"$metadata":{},"ComponentProp1":"value1"}}) .query(true) - .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"017fa55c-414f-44fc-9ba4-d776c56bb2db\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:11.5634100Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-01-09T01:20:11.5634100Z"}}}, [ + .reply(200, {"$dtId":"DTComponentTestsTempTwin","$etag":"W/\"4f31125c-0fa5-4fa1-9461-07ac90faaa6d\"","Prop1":"value","Component1":{"ComponentProp1":"value1","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:56.3364706Z"}}},"$metadata":{"$model":"dtmi:samples:DTComponentTestsModel;1","Prop1":{"lastUpdateTime":"2021-06-30T15:27:56.3364706Z"}}}, [ 'Content-Length', '347', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"017fa55c-414f-44fc-9ba4-d776c56bb2db"', + 'W/"4f31125c-0fa5-4fa1-9461-07ac90faaa6d"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3053672c49c5a84ca51fad9ff27c1d75-1b81c454d2e1f544-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -116,27 +199,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"b1b92f94-d5bf-4a52-8890-977ec6656f83"', + 'W/"3918f716-9d0f-4be5-a437-112e644677bf"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-22c839a190342c42a8ace5f5467472f9-74acb06475ed2b47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTComponentTestsTempTwin/components/Component1') .query(true) - .reply(200, {"ComponentProp1":"value2","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-01-09T01:20:11.6020030Z"}}}, [ + .reply(200, {"ComponentProp1":"value2","$metadata":{"ComponentProp1":{"lastUpdateTime":"2021-06-30T15:27:56.3852448Z"}}}, [ 'Content-Length', '108', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"b1b92f94-d5bf-4a52-8890-977ec6656f83"', + 'W/"3918f716-9d0f-4be5-a437-112e644677bf"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-194ef4f0b41af846a3fe595f9a9e29d9-715874c34444194f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -147,8 +234,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-90328d9b06089d4e896ed6633173383c-0b3ca79d73963b49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -159,8 +248,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b8b140c7e12c094e88afebb5ecf271bc-768ef02bedffe244-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -171,6 +262,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f5bc64742336124aa85ad4a59319b44e-08f65af25b98c04c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:11 GMT' + 'Wed, 30 Jun 2021 15:27:56 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.js index 826e7ebde945..5b2c3548e967 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_create_event_route_no_endpoint.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "e215587782c0a781841dd884d19f9629"; +module.exports.hash = "c17f770ef516f469665ece520b2a4da3"; -module.exports.testInfo = {"uniqueName":{"create-event-route":"eventRoute161015524258207252","list-event-routes-enpoint":"endpoint161015524258206357"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"create-event-route":"eventRoute162506690488504235","list-event-routes-enpoint":"endpoint162506690488501815"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f6bab0b5-3baf-4fe7-8563-bf226548ab00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBzCnCd3fpB7-YheK8Pcevi4r5te5i76A3S_0J0AhUIUylMDGBcMuRl1w1y6MyUaotEbBCVsDvqWLpmxHmoQMtrV1lqLQOSu--CbH18k7k8HfWEaYE50HqCuKLx2vc7yEVb-w3cVAasivCBMBpBVI39yMymIIYqFgTqpZbqWOF6AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:22 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a75744dc6601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-UgxaozS_O2BbrfuEAGUxuiE9KAQaos3fBeBTZDYlBATQhOTaOS4-OhjU-Dv8Sq21dAXlFzslEWsPfmvkylBmyuvHj19rMdFlA4RzmwxbWjhr6Ngt7XgG5QwG9Ose7nfryc9AyWwKR_XaU9CSPKQnGUxbLvBOKlXb9AHKvhKDB8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:22 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=665aa016-7ff4-4951-9b2d-bfc20f4a2ec9&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,23 +93,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'bbdf5d9c-2daa-44a3-995c-aaa8dd8f8d00', + '5d543b59-2435-4161-9c9e-e923da097501', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AnFIu8QKwl9BgZji3kN0BVM; expires=Mon, 08-Feb-2021 01:20:41 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:23 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT', + 'Wed, 30 Jun 2021 15:28:22 GMT', 'Content-Length', '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .put('/eventroutes/eventRoute161015524258207252', {"endpointName":"endpoint161015524258206357","filter":"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'"}) + .put('/eventroutes/eventRoute162506690488504235', {"endpointName":"endpoint162506690488501815","filter":"$eventType = 'DigitalTwinTelemetryMessages' or $eventType = 'DigitalTwinLifecycleNotification'"}) .query(true) .reply(400, {"error":{"code":"EventRouteEndpointInvalid","message":"The endpoint provided does not exist or is not active. Check that your endpoint is provisioned correctly. See event route documentation (http://aka.ms/ADTv2Routes)."}}, [ 'Content-Length', @@ -47,6 +120,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fc43f4c8f7cb414fa49434f301a8207b-900f5f5141c8e14b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT' + 'Wed, 30 Jun 2021 15:28:23 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.js index e9a1c41800f2..17f0c6613f52 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_delete_event_route_not_exisiting.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "39cc23d57258bbed36ed1a87d2fe6832"; +module.exports.hash = "b474134e9645564096fed61715f4380b"; -module.exports.testInfo = {"uniqueName":{"delete-event-routes-not-existing":"eventRoute161015524444002553"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"delete-event-routes-not-existing":"eventRoute162506690614809648"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '276db14b-3011-4a91-867b-462849f80f01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrPQ5APz7CV1GS8188kRSXDzneJdX22hZfKOZoIQtj5cjFAZ2fx6UJfcCvyWFoAcS0eJ8DzuUbFSFHP8UPwSzObtAQZihxWb2m5XwOJK-9JPAiegg0YuyBX1svZLAR_4xlerx4GQTzJfj_HT0kAWauJGLPuXCkKLg7yMhYaXW4QOkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:23 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '5135eaa0-e541-4f41-804c-684bf40f6a01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOiLGjMrgn3lVTJaHaSJd-JiOlHZd359YAqCYOeNErL7i8ctdBkHRIk4Sno3uIdodKpHjQ4R0HvI5EeD1fYb7EmZRd0MUeESOCqP9gaIfQ_dqbgoIiKbPCHRqOr29B5kEYj9Y18br0D_LV3JkGwnneY7exlv1XYboT8FjSPOAaPogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:23 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=a0be5536-be5c-4e7c-b8bd-d25159004015&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,23 +93,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'db7a938e-8750-4f45-a107-75efe40d9500', + 'c7083201-44d5-43b9-b5eb-7809cf737f01', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=ArDjNcRNg9pDt8CFnTEOy3euaJ_6AQAAAOv7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:43 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:43 GMT', + 'Wed, 30 Jun 2021 15:28:23 GMT', 'Content-Length', '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .delete('/eventroutes/eventRoute161015524444002553') + .delete('/eventroutes/eventRoute162506690614809648') .query(true) .reply(404, {"error":{"code":"EventRouteNotFound","message":"There is no route available that matches the provided input. Check for all valid event routes by calling EventRoute_List. See Swagger example (http://aka.ms/RouteSwSmpl)."}}, [ 'Content-Length', @@ -47,6 +120,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f432985648668949ac2df5d8f60534cd-8e6d07451f038544-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:24 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.js index 99c0f7e99c33..a22a12562345 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_get_event_route_not_exisiting.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "809721e56b039a6054e22394dc07ba02"; +module.exports.hash = "4f6008e2ae7067846bd98408a3c9aa50"; -module.exports.testInfo = {"uniqueName":{"get-event-route-not-existing":"eventRoute161015524310909955"},"newDate":{}} +module.exports.testInfo = {"uniqueName":{"get-event-route-not-existing":"eventRoute162506690556306617"},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9eff9047-e177-4898-b937-03e5672f5000', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr1izERl_i8P3S2lKt9tnjionFWznkTImqDQCzO19h4KLDY3X9VaBwmZd1zICJPMdl8S-ov4rYeR-PF3Rw-pydATHD4yHnoRIMSKmFdbLcIDRnNNDq1Wtw4ttjzme4087TAmrHiy61TknKVihbxa8tFxKIYOOgtywElVadRiV-mYsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:22 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a7577adc6601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWJCHbaDx74q_2twIdVpXIiwI7FTVtmi54DKStwM4O-0c1FnTx1pZz3f4HRBm71OLbdb9kGjb4a-jVCVXlZYPH_8CmaReUVBiuNCH71dH6pOfXGEYOhMSy9JJ_wK6qZbk-x6hO2s6tObyMEHLftYjq6kBvSOCOlAU9O-839ZfIk0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:22 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=0188a4cc-ef38-49cd-a2ce-77b67c8b1263&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,23 +93,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ea5f5dfe-46b4-4f38-8b65-3de5b0109100', + '4a52fb20-d7cf-4bb5-9204-2a619adb8401', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Aol72gcZxWdAhE_kPPdio_CuaJ_6AQAAAOn7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:42 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:23 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:41 GMT', + 'Wed, 30 Jun 2021 15:28:23 GMT', 'Content-Length', '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) - .get('/eventroutes/eventRoute161015524310909955') + .get('/eventroutes/eventRoute162506690556306617') .query(true) .reply(404, {"error":{"code":"EventRouteNotFound","message":"There is no route available that matches the provided input. Check for all valid event routes by calling EventRoute_List. See Swagger example (http://aka.ms/RouteSwSmpl)."}}, [ 'Content-Length', @@ -47,6 +120,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d5379ed12c984649a9ff3f1fb1589536-705e42ce3ad4cd4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:42 GMT' + 'Wed, 30 Jun 2021 15:28:23 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.js index 9ed8dae3a518..1732491e0028 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_eventroutes__create_read_list_and_delete_operations/recording_list_event_routes.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "22ddfce0b00798d6fa81b5b74b9216c9"; +module.exports.hash = "64f36031bc145ae7ac38d94dc4165859"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '69c0a661-1bda-4d95-8568-49d30e135d00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrd7ORol_vzp3HZpTllDZCwDvJlTZIecr78oXNfZcMFE1-kJhsCM6OC2D_5zk417UacFezUYfOaevgjBow3cS7Pwb-a7aLbVOi1V5EZ75xAKwGn7DLCPla8U0KnFoA3z0ICc20ceKMvkX7QvoMUvxycxkmXV0eLHzGkdtvuQBM0kMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:23 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '5d543b59-2435-4161-9c9e-e923170a7501', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4vN-B5cSj0BNPw0vm-vheAbX_Tt6fSr1eb206x4SDaYZ2G5HM94CnKajoiHRvclz3FTpJUi_HZRUf5y87cTknTVX8vwae87Q9i8xlk7font_rZtJqlVq0_ZPFoqNKzRHvzfEtKDoLEP-JTD-7JAfv5Rr2HiYPDNKK0T9M-T2d4MgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:23 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=3bd629d7-cb49-4e6f-adc3-7525cd81f17f&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '557dd64d-c113-4a2e-b17f-c2682f209500', + '2addb27d-9919-4ad9-9db7-755b85382f01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AnBS-AfLmTxArupvOKopYAE; expires=Mon, 08-Feb-2021 01:20:43 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:42 GMT', + 'Wed, 30 Jun 2021 15:28:23 GMT', 'Content-Length', '1325' ]); @@ -47,6 +120,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3a174f6481fcdb429e5580242611b686-9916557496872f44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:43 GMT' + 'Wed, 30 Jun 2021 15:28:23 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.js index 65db7beee18b..6ef682e0cf9a 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_existing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "251e0a7871f825ec25f9c573b9647b43"; +module.exports.hash = "2cf07540c15419d02d192e1cf561e4bf"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '55e49536-a163-49f8-a41c-6c6d938ecf00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrojAzLKrEcBFgbG_pwPkWmeNFtKtBRCF3fOSdxRRsqWoJz8HsjFdrvZppJo3AudPlCYes_AYQfjeF2F1ttL7z2S2v2H2xW1MS_puQzX2HwqDihhA-mGRlnd7NjYxgWtr4JmckdCn4841QcwsuWwgNbuCLwDzT1FqAtEwNQDCGJbUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:25 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '703b39c0-f313-4374-a6f6-9fd043573901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjSj6c-nD3rebv8B2vLGnq4x3D_QzSjTCX_m-cCpOjnh4CwU0mFvh5x9c64ZEuWdjewNxqZXag6ytdSSWSjLfpsramLsp5gdtA4UYKymQJXxr8s2NweeDatdEPzGL63dDMp7tdXKL7vTnMo2mGjImXJJ8aT-hMHu2Wqtqm3mNmdYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:25 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=053adbdd-5cfd-41e3-a329-9a05323f1867&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c4dae692-1b9f-4d65-85be-407664228f00', + '36bb625b-a847-4fdd-b6d8-03c59a797301', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlG-VOurVwdBhvGQHGua5PCuaJ_6AQAAAOz7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:26 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT', + 'Wed, 30 Jun 2021 15:28:25 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fa12e3bcbc5e434999c0b44df868ed63-4863f82c49171643-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-442687a39d3a0b4cb227228d208e8023-d2c3beacccaeed40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:45.7919541+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:45.7920006+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:26.3023487+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:26.3023794+00:00"}], [ 'Content-Length', '334', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-afb889561d090b47ac3314066516e7a0-4ede8aa34387be41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,8 +168,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ee86f9c4860c6847ab236a7e0c52abbf-c9df1a1a853d694d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-883d07480de9384e915232f82adc7d35-4aac781f106a9740-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,6 +196,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fa1862c388d319469a6aa2496a5d2648-8caf1baebc48e34c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.js index 4d5644aa8972..60ec1bc9344e 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_model.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "54d6e25e5e37173ce301b886a67db85d"; +module.exports.hash = "97d85c924074c6960f31da9bb54ba45f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0a94517b-ac3c-4b71-8265-2b2646b82600', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4aeEpuzYdQ6hnjFe9wl4HBq097Dansrgfgw3n9XXQ8GXhcNIWbz8kI14JI1h9KY6hDvVJOL5XG3VeVsC0r-ElA-VEECJSSitwt3Nzu4pg4spsK044eNGE7XL8Qd532kKPMfCXhJYYAl4ffwDqvH0mi454PeqiYabuXpDXh4H71AgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:25 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a52fb20-d7cf-4bb5-9204-2a618adc8401', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:26 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrP2J5xSuYmjjr8jAgcDvjGtXokf7HhGjubCDhGB4dSMDXjIeQ92NQecMJ21saUSzVTFm5MZ-j2-8TpZ_5bCdf3utQ5AmXNyI7qvkII2t63ZdvbKXS8PvYfa-8QN8QbNXKO4zZncW7qNocCBGrji2fY43q3c8rcU8RQSN4--Lz9wYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:25 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=1dcb6bba-0133-4d83-93a4-f55d65da19ea&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8b1947ee-c6a8-4b20-9e6a-ff00111f8a00', + '7c9f8702-87aa-46a2-8483-efd035b23b01', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ao3omV-z4I9GqB3-DttaPkw; expires=Mon, 08-Feb-2021 01:20:46 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:26 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT', + 'Wed, 30 Jun 2021 15:28:25 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3c4363f17a32134187f3da901fd913ea-4f6b46e07c9f3041-01', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a83a2ce1474c2948bac39eb755a52add-26a2194be6669249-01', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,8 +152,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9170802046c274438af716d54fc59329-19450a9ef5168c47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,8 +168,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-886903663b35104084f05d6f47fc5ed5-3502420f968a3c40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,6 +184,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b8ed45b8a512c447ad3c94781604c76c-d187eb06ea14504e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.js index 7cafa720ff5e..724c3d8bcb7d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_model_invalid_reference.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "6915c5e696192bcbfe52b10c7766f30c"; +module.exports.hash = "a071a27b21d037689d20d991c5c3f912"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '35682d1e-2dec-4898-9a64-50a1eda00401', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrE-QN5i2WEJBzOrgbVm1qjz-7muQLlBtudEYleI31Lpl9yJGczNCm7LSF0-KABeb8UxeVCtprzlxLuQHaJ8GOO5czCIDpi1_Uly2LUjW7eczhhvuwwMlSfWrooHnptVzmqNLPxP2C4obmLfijrk9gmvZaaPGG_-ZPGRMN1BQjYZ0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:26 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '36bb625b-a847-4fdd-b6d8-03c5f8797301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrbqzqq1n4xYAspkSi09YaxoQ1ixOfxMteF5Bek67UTPXcAF3xdesWaEiVxr8X3_iIdXICtHi6dfje34krp2jMxAqkDYAzrTg5iu2oTLZCVNpG0MYes6DxSALYNwhEIFkHJBbVao7ZhqaMsdBkvLAW1YjUVid_LGePb4ESvIWyduMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:26 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=63ccaf30-14e5-478a-9bee-20231f992cc5&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '846f0c2c-eb93-46ee-955c-1b5003639b00', + '5d543b59-2435-4161-9c9e-e9232e0b7501', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AkJe8yQJlFdNk3SV3WaoK-c; expires=Mon, 08-Feb-2021 01:20:46 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:27 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT', + 'Wed, 30 Jun 2021 15:28:26 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c2724df2158783438ac70039ce3c9be9-9f06a9e578caca4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-de485238b8eebf44a9ab864537890ca5-231c4cc373a8ba41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,8 +152,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-bdbbfac868cf97449fe4c3ee3e5aa4be-07d9ffbfbe2bd740-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,8 +168,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dde2a23e9fa3bb4cb29300244ace2156-5117c5e7cd04a34c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,6 +184,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ed8ee3bd74e78141ba325ef93633b002-3fc775e5b4ec724a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:26 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models.js index ae2771ac4ed4..9a758306f29d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "ec4fbbf7683202a994d4ff04f2a12871"; +module.exports.hash = "1dbcef6c4082364714e4ae8c1ee1dad6"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '81217959-8648-4b7b-87a9-e6ab00a67600', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxVC9IJZc5K_DF1tFGprMZTWRp2klbZRBSL4am7qBO4ozrn_QnY693dYL968lQkM1cDONl7P3v2gzANawVsNZ5xVQwwg0G6HveyKplpl1mqVGfgw7y5ys-xCllbNwtHOVj7VawlOUliA2Mcd4YPs7ZnJC_DHoqboDb9IWWt8GOiMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:24 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e8adf41f-245f-45f8-a149-c5e4bf7a4e01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:25 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrP7xI6gSYmV66FL94upAHxxtAdqLK_gPzTwWRnCzbqv0k7eLcNDDaAg1SJ4VV1nJJCAeGyCFNt1CIvyEoBZ5z9Sv1sh8_-D73OUqH1AE0pRAOYPmiflOcY0e3HOmaJtJB-jhIfxQMcXhKGnsZg2W2o9RL26_E98Tpuh-LBpZWG1sgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:24 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=40c41a5b-d333-46cb-8727-b34fdce660fe&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '179498af-d8bb-48a8-a0f8-9b38024a9600', + 'ce8f2d6d-3a76-459b-83ad-e4045b876f01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AoqHg0xTEiVMsm2DvFNOL0A; expires=Mon, 08-Feb-2021 01:20:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEwAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:25 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT', + 'Wed, 30 Jun 2021 15:28:24 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-551fb2f8c34250418720a079812e6ade-d827c12e7234544d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3a1ab0ef8dcda148978cc298359b0207-f10ff400e0ccf545-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:45.0400267+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:45.0400549+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:25.7708861+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:25.7709167+00:00"}], [ 'Content-Length', '334', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-201900bdc75a004f904fcc0acdf9c084-5c24c89390c49442-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -87,8 +166,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8333511ee2b1d54abbad9157dc233da0-715765eb94869d47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -99,6 +180,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f1d2c6d0f6fe7449ba14424eae6859a3-97e3fbbc759c2d4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:45 GMT' + 'Wed, 30 Jun 2021 15:28:25 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.js index f8436a7f4429..a6836edf2353 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_create_models_empty.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "40b398431f8d0d91866d6b123fa032f4"; +module.exports.hash = "2379876042c5acd4ef8470e21d757bcf"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '2fcd26d7-2d34-4530-b37b-6eb99425cf00', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4B3KYfU65MpxnD1Zoe4_j4t2up3AaW1esrae05KcgPjYx9pfwPW_scaoromYcST-ore74RZdCgjZZPfrk1QYjjhHNPK1OAId6oYQLHWAijCI6EK5GBCb_jqIF1aCXVrsAdw_yGqL3G195-6fJtAKBw9Vtqz4TkpK85luNVU-ExQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:23 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '36bb625b-a847-4fdd-b6d8-03c51f797301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEQAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:24 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrgzNfSyhc36aIa5Ho5FFoAHRjAUVVNCvhJUQQqIm8q6ndwcIozETGJynmd43PYunIJm-c3caE0MwbPsoPkyjrVNB1t_5BukJoFgG_NgfqRVGp5ZwxOuaCGV-cMgL73i3aZGYgpw39ZG2sB_SIbAbu5OyPKqoKbWOEoUEj6QzmAnMgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:24 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=60b9a64c-69cd-49c4-a5e0-3cd8130d9d6c&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '62c4560e-2fe5-4ced-b314-1c3dde8e8e00', + 'b1b01582-f8fa-460c-a911-28f452673801', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AowsoLOUr3pHsYdoXKtNiyA; expires=Mon, 08-Feb-2021 01:20:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgEgAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:25 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:43 GMT', + 'Wed, 30 Jun 2021 15:28:24 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-720af9dd7790564a9c8e6729a2eb9242-5467debb12875343-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:24 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,6 +136,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-310260460f6a6d40be3a7bb1ecb62dde-b6f3a4ae765b7441-01', 'Date', - 'Sat, 09 Jan 2021 01:20:44 GMT' + 'Wed, 30 Jun 2021 15:28:24 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.js index 63b61d011704..f0c3eef9c1b6 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "7873666c7ca5f3cb88b248caeada542f"; +module.exports.hash = "f743764259dd6a2d5ef2a83c5059b191"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4d9640a9-c248-4ccc-a35f-30c07389e600', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTApgzl2res_jwVhqZYBMVUx-kImLTskATcu0JZ198C0ZF-V2qu2K1f80HjEYxo58hW5HZsPT0IBOBwHWg-fx1P5IrdRCRNR0MikLdlvFi40mn5wZiisCIpKmDlt_5BW13_uvFn36WeVeub6D_ZIqR5fYyjmx7NFfpo7Mk2JIrUYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:29 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8a28890c-3549-4e03-9c30-d31538e18301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrxb42iSAvrFf7BoN3pd-wX0F9vawab1slEmHdm1w0Is2B8aWVj2yIH5OstsydGoriIUHluNTEEBjtBvU38MjejqKUI_Bc7_wZENSjDFcTKBd5AEfteOwLLYK59hDeOR4Kl_vLRNzW5qZZANNwRcCNzbISm3smSR5r0MLd-IHD_OcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:29 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=089457c6-fc02-4ce1-bec4-5b326a5dba12&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c943d2e3-6b50-48f7-a5a4-e7f7a8898b00', + 'e8adf41f-245f-45f8-a149-c5e45e7c4e01', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Alwv2SDqj4NAgbGg_Z75hOGuaJ_6AQAAAPH7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:30 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT', + 'Wed, 30 Jun 2021 15:28:29 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d77bac4bcf182a4293af29d4d0ece53f-0e719663a7f2294f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,36 +136,42 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cad8dbfea8092642b9593b4b5bad0fd0-a7eea36237aead44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:50.4649467+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:30.6821633+00:00"}], [ 'Content-Length', '170', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f40946ec1e081d4799e5a15eb8fbb9e8-e82fce63c05aca41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:50.4649467+00:00"}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:30.6821633+00:00"}, [ 'Content-Length', '168', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-751b95c006697f46ad990f2d7a7058ba-440e517b4064b34f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,22 +182,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-167f8b46a70ad14fbf8641cc02320667-9129016f8d2a3a4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":true,"uploadTime":"2021-01-09T01:20:50.4649467+00:00"}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":true,"uploadTime":"2021-06-30T15:28:30.6821633+00:00"}, [ 'Content-Length', '167', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-969948143463ef4aa8c3e9b687907d9b-f956f3500b831c46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -129,8 +214,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9dbc483d530aa94f97275b14fffa65c2-fbb4e4136202804a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -141,6 +228,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8dd0c076fd3fe34fb09a497fcc04ef6a-fadc115f24b0124c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.js index 0fe38e76c90d..5a07d4e9a6fd 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_already_decomissioned.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "7b073c2d462beee0f1c8de9df320227d"; +module.exports.hash = "104f4a35a4ac0f5cad17c81f9f5b280e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e24e1d15-7405-4ec8-a613-28ede3192b01', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:31 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKSuTVKwnoLQoxP8HKywNxYX3qBVErUXCF5o-w6j4GD2y78GLM_WmBXRajR-zi8on3m9v0aDW7PtwkhfXAEBqBmBTo156XnFfdgwiJeioyQvofj67Vr7rneHPEntHPX4pfFzWi6KOLjPlwwVJxRg4ZNmFyvEoRKDSBOIj9K7RglYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:30 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b1b01582-f8fa-460c-a911-28f43a693801', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:31 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrF7Ieurd9V8qj5WzkOXTL-KdCqssYDPIfCDVK7INOGQ8c9e_FUlFopWfx8J2cW2oCm6BieXHBVuyebVtBKB5rgll2I6Xzq3CC8ERlBW8quqjnsJQuVROvRgeVcANvx1nFLmgsL0gSUEivaAnoLZKZtlqnGK9ChlT8tbL_fcIYduogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:30 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d1cdb001-084e-4831-9110-4359821efe51&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '831fee68-0ae5-45bf-b997-13d0512a9700', + 'c6f9394a-e669-496a-b7cd-a7572adf6601', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AmcFkM1Z4ZhPsgQTyOag1OA; expires=Mon, 08-Feb-2021 01:20:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:31 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT', + 'Wed, 30 Jun 2021 15:28:30 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ebd8becc64c0524ba5522edc90bec10b-02f25b05e222744c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,36 +136,42 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-122e884933ecda40b67b744fb3046aa4-34b93fdc1c026b45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:51.5152499+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:31.8747337+00:00"}], [ 'Content-Length', '170', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-202b01c11fe4214682838dff82baacaa-b84438899ea1654c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:51.5152499+00:00"}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:31.8747337+00:00"}, [ 'Content-Length', '168', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7cdb052efa99394dba62df340390f591-713885bba2220b4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,22 +182,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-940848681cecea4d8aa472de41dc41e2-69afb53d6fdaa54d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":true,"uploadTime":"2021-01-09T01:20:51.5152499+00:00"}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":true,"uploadTime":"2021-06-30T15:28:31.8747337+00:00"}, [ 'Content-Length', '167', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d55c2ffe64a3f14787f2ce13cd9a9d8e-e9fdecb6fd5bd346-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -127,22 +212,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-96f9a5ee29865240b243d755051d9001-4e2df2e6e57bd34c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":true,"uploadTime":"2021-01-09T01:20:51.5152499+00:00"}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":true,"uploadTime":"2021-06-30T15:28:31.8747337+00:00"}, [ 'Content-Length', '167', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4dafa79b1a411d4893e51ef78ee985b3-5437385068d7574c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,8 +244,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8a6b732f9af5f842abbd22377c502d0d-060a51f9b6e1e64a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -167,6 +258,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f1a00de273d20a498f8a6f96daa2a797-c67fba3672079143-01', 'Date', - 'Sat, 09 Jan 2021 01:20:50 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.js index d8dfc1342e4b..332c79eaafeb 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_decommission_model_not_existing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "22ed57dd811c4245611593adacaa6391"; +module.exports.hash = "3bba870acdc3d99b62c056a9a088fb7f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '15697996-02a2-4108-86b3-9c9ffd370201', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:30 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDjNcu-ilLxK5xbTSgaWZeFswVTLWpAY7Nv-elP59iHbN4p2yvbUpshZoueos5o9_uSjTHZIKHQdgDSA9k30liqDGL9rVuTVkKb1kx44l2x-ldZT6mC2LUNOBNQiHn_0iPL_OmN0diS8DPrsVrwUFaSSsxJQMr1HtPstNvY_Rve0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:30 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '703b39c0-f313-4374-a6f6-9fd008593901', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:31 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFCyKhULMnQA_1V7nZDj7U4hjzCPTe3WWtX-RjPuXhTipZ0pJHoqZiDBAXhud6I_NlDp-D6Y_cweoKpFMRyuiN_OM-bkMf1Ev76Y4538XLJsMxT1IiMQ3jYEPMuaJhhVHt-OrR9xpzIQYLAHrncieBh3UvErIIa0GaRvjybpZEqQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:30 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=8a1ac7ae-fe50-4be2-8e0c-c65f4a247fd8&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'e1dde777-26e6-486e-9ed2-824983658300', + '30ded47f-c75a-4cb4-aa53-0ac9e28b3701', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AvzM1EBvcZJHuyFBDiLG5gU; expires=Mon, 08-Feb-2021 01:20:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:31 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT', + 'Wed, 30 Jun 2021 15:28:30 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-65fbc16c1828854389905d4c473eb2d1-67fba33b630ac640-01', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-31866faecfa6184baed0f17bd7771ca4-4632715f34199e40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,8 +152,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-116cc39f5fc74c4eb7672ed8105a9e92-f3269787b7c1e640-01', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,8 +168,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-152f9e8fb77c7b48b0dd81778bd94821-a87484116d69824f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,6 +184,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-352861351dd3614c963588e02223511e-459d9299be55b844-01', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT' + 'Wed, 30 Jun 2021 15:28:30 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.js index 5837ddcaef71..c209be1d7a29 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "93c4b4da1c75e84c5d1473ed7f113317"; +module.exports.hash = "16f21503bc8f37cffff48b2ef3bca667"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '45d0f426-4ea5-4d16-b8a6-db05ae68cb00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevryOHbUsZXfn8iZEWVeweOBQJ_08KgTmXK6M2TpiRAjN__iIWBKJaW_H9_FzBx4Ogn5IGjUckV627n6yNDnYLu_H9AddpgpWV5QZw0HNDLoLFEMdeJacp-3r-z8mc0dK_QPMumjEs6rqq2iCQet-ojcZxYRKndn5aDwZb3mVaUME4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:31 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8a28890c-3549-4e03-9c30-d315dde18301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevreISTTOqMQjHhedzCPiK9lBK3PHRxEdxOUazIlcnCK-62tamNDXQWsuBC8yw3HvYqseI0fFSGaCLHndykwdLT4YxRCg5H5beB7GCq9Pi7eqE1lsf3z_g1NyA0wSsnNFpGGKNFP6A5aoC_DgKQZ-3ggjqC-wF51hOkJOUS9BsdnbEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:31 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=01446b3d-4d52-4067-a63d-ad49a707ecc4&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7ddbcc12-f913-48c4-832d-c33ee0a28800', + '2addb27d-9919-4ad9-9db7-755b753a2f01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Aq_2Gv7yf6JKrd7zId4x2ts; expires=Mon, 08-Feb-2021 01:20:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:32 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT', + 'Wed, 30 Jun 2021 15:28:31 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5163c60330d6f7489ec73827aaa1c821-3ba00090bf3ebe4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-da10e5469265e542bfc1a3f7efa9fc53-e2946e1cd5e3ec48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:52.2112805+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:52.2113062+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:32.5684139+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:32.568444+00:00"}], [ 'Content-Length', - '334', + '333', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-04fbd10b386bf54b93c6cdf93e7561d5-b60e058abcc02241-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -87,8 +166,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-30ded8f33f3faf4bb2c4ef1b29db05af-3f777c0768ae744e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-10165699571b844dbc44c973052f067a-9aa19400245dc441-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,8 +196,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-da7c06d27d9aed41986ecebc66e7647b-0db23765514ba448-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -127,8 +212,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b33c38b98df89a49af7f83996802a421-1b729ac37ac3e344-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -141,8 +228,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-db3cc16b7ccd7d4698c31135c53b8a31-c0afa37bb8c02244-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,6 +244,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6eda34d1f4253348bc36c6eb3cc1982b-75078650e0ad424b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:31 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.js index 71598eb8bb32..2e4b25fb23aa 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_already_deleted.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "b91b60b3af2dfa7952aea15fcce7aa92"; +module.exports.hash = "902e5b2806d6ca2809b90878e1f5e63f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '416830b5-87be-48c0-b242-e2631c9d3100', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:33 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr7BZEvoz_IgA3J-P3uTOP1a0mRXKR1QMSj6r8-GFw-NcJXlMNQibLxDo4YzJ3vf0ivylJAeXgtafEQ8nE-qOwPPMUjk8liO6yzQhlhqK1bVsF3MXpegeQd8sihslMSLMbcIS5W6pYrFKFVRGCjAu8o5-4BPdvV-ToBmT7awFiAe0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:32 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '30ded47f-c75a-4cb4-aa53-0ac9878c3701', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:33 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpBAe97rd0TQh_ncm6PiuH2qMoK3wR3knkIOjwfkKK8vAEnoGhbEh6Ed7X9atpPvVcexIqXl5VZi1bW_lbpX_SLdcbWXm07Y4slA_nfSM3whtVBhD5HtjmbQxAGBSzsM6hA6hKpQrDEnnDSjPwfV3oAsD-MqrSM78stkk7_b2rzYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:32 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=756c3351-0603-47b7-bd46-1845e5316062&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7548f2c7-4cf6-42be-9001-22cb422e9400', + 'c6f9394a-e669-496a-b7cd-a757c6df6601', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AjnYgaOtdJNPr8rDcONMU12uaJ_6AQAAAPT7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:53 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:33 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:32 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1e87ed955f18e44eb1a533ca62a675f2-010a170a36e4a346-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0fafb174544fac4ea142b797c10d5463-1c538409ea2eae49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:53.371856+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:53.3718859+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:33.7203355+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:33.7203629+00:00"}], [ 'Content-Length', - '333', + '334', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-eefae7f90174dc48a54a35195250e3b9-52d2295b3656c24c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -87,8 +166,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d62570d43bb619489d4376a0d49ea93c-870345b56fee804c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9a1ef3397487e945818f8dec5859063a-7a0184a64ff7a74b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -115,8 +198,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-bdb8aefe27444d4e9898b6e9c43f77af-bb089d3ed6108743-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -127,6 +212,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f5103959fef5d9438dc6a0d0f48bd974-71a65346b6e51649-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.js index e6bcf5c73cbe..7f5a62ab60a8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_not_existing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "e8a6f6672a07f22104963ddb06d44b82"; +module.exports.hash = "f0d63ee59cde35be919fe31795585b26"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0e65a951-efb3-47d5-8675-9379c42de800', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzegjQroFlfhgAUd4MimJGZLTMv98FNsekOdbXipdK4PKHgZJ9p1opBibm9AEkSfk6jvjqvs1MdQVIBhC8A3ShFvtmlqqypmFkIVOpbv3PF6mNMNspUCE1Nxn_4ZVy0LI6DeF0FZHBUxh7zEyJBf2KhgWmsYKUWJIMqNg9TDtFwAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:31 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '898a641d-360a-4605-97f7-63c18a4a7401', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:32 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrtpxDYmijGCzOvKVIyev4l36H4sNV2q6NI7QFJ7trXkDpkdye_HzJoFKVHAdz0fn1gq9I0GH2WAXWhnofK7yJZytlgy2ODDVHIcHWSrprckPQlIoZLQNXOwfGT5El-eZxcUn6vAWh-NBtjREVWdkB5a_lMN7aUnPkWHmBhW--LbIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:32 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=83d60a85-ab4c-45da-a471-6249dc06297b&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '17f09490-9474-4a4f-a01d-6043f1429f00', + 'aa2c3d00-0907-48b2-81d0-a35840fb4201', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AjAR7v_9WKxGkt9P9GInhUs; expires=Mon, 08-Feb-2021 01:20:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:33 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:51 GMT', + 'Wed, 30 Jun 2021 15:28:32 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-19452041958fb74fa052dfcdebd1c667-6f1474e8a5128441-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6f779cc845e97541896fef3b1e5397c1-50005bf3744d2b47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,8 +152,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7630ac253d2bb44294eaa4a16430932a-808fe4eee9728443-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,8 +168,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-167acf1c9e3fc34986fce9aedd1dec1e-c30029428749d745-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,6 +184,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2568aff0a374a6439ec645ad4ebdd526-ba7e0ca62b6d2f49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:52 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.js index e764100e74e2..dc34719df2b0 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_delete_model_with_dependencies.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "3b76919bbcc56192cc0a1981c6c2488a"; +module.exports.hash = "21601798f4f2424405b87a7744471265"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '772e468d-c8a1-4a80-802f-790ac8556c00', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:33 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr65k9OouJlnkAilNbUOJ96_v5FzxHMv6ZRNASr8wYSBr3L4Kc-O7x7lnjohE2aFEfdhP8P85sK1JrwgyT4meLLup95gRr4Flk71cUZDjvPPpRwefmPq_vBIGnLOr-MKCWIM5jrFAIPK9crulBhdnATmogTqndWWrHs5jhhG0e_c8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:33 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a757f3df6601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr12D19jkGfYUy-mFmmTOWAzTxrxm2f5Md5d66HjHZ8g-q2HHtH1kb5X2pWFWAPSLTQ5KhhJd940x1sx5WeGEok9SyZgqIfsOxpLDTr8E-_RKXp7IhNp3gPr7ne27lPGDS0q4FjQR-TDn5_dq-0og5avdw0Q8FI7PM8yijm7i4X-EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:33 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d352dbab-6143-44af-8908-238833a09b0c&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1b675ac0-dddc-4eb7-a546-799ec8c78c00', + '28812791-b9ec-449e-b425-0faad2c11f01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AqMfgelarWRFiHB6PTFHzMKuaJ_6AQAAAPT7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:53 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:34 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:33 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9a8f444d8777d04e98b1416ce4b43072-e9a263db97a4c94f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,22 +136,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8827f50eafcaa54fa48945a58dc86b42-f0cf5e718f05a54d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:53.9029947+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:53.9030234+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:34.3304856+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:34.330514+00:00"}], [ 'Content-Length', - '334', + '333', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1d0d2567160a8d4c8bf0aab049f4c171-d3bafffa3639a949-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -89,8 +168,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-14ccb3d6aa325740a52afedcaa9328da-baab352345df4e4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-71c5237335525b4988a6c344490bfdd0-f964bcc269356e42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,8 +196,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7731d1fadc820d46bdfdc6036c204c3d-f71bc2c39161844f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -127,8 +212,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e94e3b9a61af5442aaa298be3d6e3f62-1e1a37e35537094a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -141,8 +228,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-849f668690a78542a90bd801db60200d-c4115968c4a4894d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -155,8 +244,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e8682d071281f0439611f7e5d04f5275-a313126014427142-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -169,6 +260,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d70ba7151947cd42b88e2e6c1d29f12e-014c75f77b265049-01', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model.js index 1c05d3392fca..8cb22da000c8 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "874ce2b23bf6f7c9b4499b0e3c1d9796"; +module.exports.hash = "871afc6ba9b8046a2da14840ba3ed08f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '86f6ada8-46dd-43af-914e-d04edc15d600', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrDhxpskO_CB9webM8crHkWmJU_m3DgDTVi2JYd7dEf3MPq-DCZAttWLq0bVjggBXSiz8Yksqq3h34SiD6SK88QcpdWxSQyzjZsZSj8caSeBm1bXCAaCoKTNnUDnhRs2Kr7l84RbB7Ckx5guPzyRvH7YYKKV8feg60lhrx_V42aUggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:26 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '8a28890c-3549-4e03-9c30-d3155ce08301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:27 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWPhadEVmHRtJsMw4q293gxb9sOu7D1_gRoBORcO5WKmwJYrm00LgcfmIDtN0UhyxEDFgb2Vl1OdQM-_Kf5Bd9t4txKW-8Q4RwK6ri2czm_YCnzu5ZSdse17VKUyRtwY4m2cB08k_OaWYMgWmkHWzBZ7kRdnUVdwH53H9V0NkmSAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:26 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=82da4b49-cbfd-4b5b-9330-9d90831f378d&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'e89dbcc0-e186-4ca2-8016-2de83c208400', + '633f92f5-8765-480b-9824-1d4c38bb2e01', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AhzAox3SrJ1Pin7eL4CL4tuuaJ_6AQAAAO_7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:27 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT', + 'Wed, 30 Jun 2021 15:28:27 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5d12d49c53d0014799ab03edc2b2df69-60da6ef9a9e72f43-01', 'Date', - 'Sat, 09 Jan 2021 01:20:46 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,36 +136,42 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0a76924340d5444a94ad448f77c3fb11-9c837632af62b84e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:47.8055242+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:47.805551+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:28.0387243+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:28.038755+00:00"}], [ 'Content-Length', '333', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e7365b54676e434aa29bd2f2870075e5-04c2454ec1846a40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:47.8055242+00:00"}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:28.0387243+00:00"}, [ 'Content-Length', '168', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-415cdb3b28dfe940aa419f2a15138600-94f111fa4b7d7940-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f322806c3af163408e45d1a5c080933a-16284724dc9a9544-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,6 +196,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-25c6c0bd6aa1cb4aa0876c4003b81054-2b2515e3f2bf424a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.js index caea19c249b9..a0f16e0a6543 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_not_existing.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "97fa4ee6a20c6e1b418c85a67779ac2e"; +module.exports.hash = "0fe0e5d5c39618696458f7eebb9b8ceb"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '41145537-bb4c-4d74-b5f9-6ae950cd5b00', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQPbomodUlcf3HniZDoAgx2NQJnhjGzFMO_tg33W3gVGNJ08fs0oBivtCHtXRtfqiTCaUQp9A5Mq5_NXYNgmaLSIcT7U937i3lN08WSYX21ZWLy4fPRpBUxfeN6erK0wVfpQhub1VvKOgb0Ax4ttajFqPDowd4Ljiq1ctS6xtHIEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:27 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'e8adf41f-245f-45f8-a149-c5e4e17b4e01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrNP9Q8TEG2TwzYcMIhp9FCjCCJwoXFCfoSpiUf22ILjBHHjjLgm7tp2tTcDx8Ov-0NEzpxf5xLWy3AEOaDFxwrn1PllDCYCHTQSHLy2XE4xnyjobMNx7JNaS94uI-QOogfOcexzMegrKdOfdFc5MzxqkjViVKwJ61KV3uwTnzH1sgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:28 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=3b74a82b-fb3e-4a55-8d25-71c045a5a711&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'cfcd0787-8769-464f-abe9-263a04979200', + '28812791-b9ec-449e-b425-0faa45c01f01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlWKePlGAN5GmqVyXB95c6I; expires=Mon, 08-Feb-2021 01:20:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1ba6a7f9911d04418ea6e641fe381b9e-a8b8776d21b60143-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2b6d9538819d644e87ad253c6eb2ff61-3c34d70eb6924240-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,6 +152,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ad7ae9c2785eb3409b92aa1d817b9e8c-773009f67318ec4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.js index 252e124369cc..483fa53f2937 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_get_model_with_definition.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "f30539e250732ee81bd356b1224fa709"; +module.exports.hash = "decdb18dc253edbf9748dcc4146cc74e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b0b8c48e-ba1e-4f52-90a2-77b8e64c3d00', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6zG4esGUaycBGViL0UVD6wjUI0kARxFHeF9VbX9DDZKRuCyfRs4pFkqHDJ9M1IfDjyxJD2kHy1zac-4R-6g4HHKWUsZvj7PR1tZQPV1sLPxHTvmyqWEsVLtp6YWe0futoytDzaJZMaPDO9NHwKS2AwftLKQf5rJJC8_usnXW8BsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:27 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '36bb625b-a847-4fdd-b6d8-03c5647a7301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:28 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr5mbB-3hQu_Y_vVDofdGXWjSaogILOih8iUPTsKa_KUbKg2034ZMobkMyaz3MHAfobmO50WUl7Ez_EzzSuydaLuqh-7puZw65ak4z04aZSfYSOw3nk39jE4CKR4GF5jb21p21Up-5L9as-H9gYl3JCpPmekfXqTtX-5L6a_qjegYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:27 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d91a59d4-39d0-42e6-87f5-f04894215573&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ea5f5dfe-46b4-4f38-8b65-3de584119100', + '898a641d-360a-4605-97f7-63c12d497401', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AnB9hYPGakdEnyYp1MLs75E; expires=Mon, 08-Feb-2021 01:20:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:28 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:47 GMT', + 'Wed, 30 Jun 2021 15:28:27 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-042d39306586f64f88f55d1c80a6ae38-934e891361a7fb4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,36 +136,42 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0b5168941423484b939e1a0183295a8f-1abcad23f3de6b4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:48.3223434+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:48.3223733+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:28.5583016+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:28.558355+00:00"}], [ 'Content-Length', - '334', + '333', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7f00bd442bf7034e811feeb171f7e1bc-867ca1f2552e8c47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models/dtmi%3Asamples%3ADTModelTestsComponent%3B1') .query(true) - .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:48.3223434+00:00","model":{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":["dtmi:dtdl:context;2"],"displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]}}, [ + .reply(200, {"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:28.5583016+00:00","model":{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":["dtmi:dtdl:context;2"],"displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]}}, [ 'Content-Length', '451', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5089768de8d23944a6fefccd47e0d70b-a528477715561043-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c64b6f47dfe85d4b8b9242b4b7e2ec8b-4c541118c69ddb42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,6 +196,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-99cd1f1d7a486a41b786409983eb6dc6-9a89066856ec214b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:27 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models.js index 46e6a518b5f7..315fe1918309 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "666e4bca71a1be99b6a8a93c341b5c0c"; +module.exports.hash = "74d72b33cb0bc529bd9615d49d102ce5"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0b757b89-25ce-4df5-9ef7-d696edd33a00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrFIZZFdMkH8IHOuG4C0ifzja99OEVtfGuMw8SyA0kuan3D2bsFbL4Q1_aOYhYSXLBqJdqsBmIVNpW1ADjtLVyLQ4FeVSug-41XkNvRh8cZncRmK-OZptEmkkcoutYNmf2ZgCZAh8SRibuq_RGhsMPUzADbJ5M5glsdePM75yP3GEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:28 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a52fb20-d7cf-4bb5-9204-2a616fdd8401', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTZP9scuHj5UFNq71IhP2tE43vpjSeC1YdtFg5CDDFEn4VCwzqhSA13sgN-OsZ-XS8Tcfb5dRdR2CsCYgCRSXGMtS5fyNdctXApdJ_Jw0e4Zy16GoYizZ4hYZPdWGwHvNQdkMF4zyZRZAiCBaSWZLShC-lb2-6aUsBK_XkL14BgwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:28 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=f31c1cab-87c2-4d7a-8043-df6497cde1b4&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -24,17 +95,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b3cca7dc-48ea-4820-8730-db4325557b00', + 'ce8f2d6d-3a76-459b-83ad-e404bf886f01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AuTU4W3p6CVJiUt3WAM0oYuuaJ_6AQAAAPD7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:48 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-25475650f56c3c4784c30a9c6dfd6af1-1cf5f1c9ed705b41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,36 +136,42 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-586146751153574bbc31664d1e0bcc19-48eaf24d2210b04b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.1734831+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.1735081+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:29.577428+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:29.577458+00:00"}], [ 'Content-Length', - '334', + '332', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b17353af319b6f4a9004a199721c96f8-3b7e28a148743e4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models') .query(true) - .reply(200, {"value":[{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.1734831+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.1735081+00:00"}],"nextLink":null}, [ + .reply(200, {"value":[{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:29.577428+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:29.577458+00:00"}],"nextLink":null}, [ 'Content-Length', - '360', + '358', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-26055e4ac704d44899f751e1e35c6cf4-08c16c778e9a8e4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-aaf8f2d386aa6746a22f47a46a609b86-d11a4ccaf3ccbb4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,6 +196,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-962885aa660f79468e345e9417d695aa-1d380fa1b5d0e34a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:28 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.js index eda676a9c6a5..fe8e69d3c6c9 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_models__create_read_list_delete_operations/recording_list_models_with_definition.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "0cd0e7871acdfb260d18f9cdca418cc0"; +module.exports.hash = "cad1937a6d711ebbfc7e7e3e1201efb9"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '41cddca8-6109-4efd-ae35-40308ee17400', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrv0HMQtyDQeiWjXRPztCc1cXEve-Y4LG_QgRiSS7RZrRIKFbzQ_8tJkZj3UXKqJgDlOOKJcVB6lkxF35r0vbhQu13u6Q_Nty8wwThyTMu6FyVvE986YWp0GlJtWGYcQEkqMIGe_kVTH0dXhfFwBOfF4Qowi_n3fKTTJl8a_gxIbAgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:28 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b1b01582-f8fa-460c-a911-28f4b5683801', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevramBeU5kcSYb0yFQcYOa_-Ae2hsfrd-xcbX3Oe8Qydmp1Dwb8mHQ5R96fkupryQL0VDBdcezlhgE3Fy-F3ooeLO06sxPSXFnD8ko5-nKIg7fYfWgNDfphQD7l9odmhEc1YIuzXSmBGKue2NdBAA54jszjhdwLKDFCFvVJoxQ5z9YgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:28 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=6506dd65-eeb3-4cee-a496-fe49c749af76&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c6b3473e-7e87-4cb5-803f-542984888b00', + '17f1964b-db13-4bc5-adf0-3c42679d8000', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Agh7jUU3S2VOuaLRs6VlrNWuaJ_6AQAAAPD7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:49 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:29 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT', + 'Wed, 30 Jun 2021 15:28:29 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-967e91f3bf4c334cb648f1d824cf9248-170f6e6303fe0f44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,36 +136,42 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-94ce31d6bc27fd43b8afdcfc8f40de93-9c42612e71613f4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]},{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.8719992+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.8720265+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:30.1221582+00:00"},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:30.122185+00:00"}], [ 'Content-Length', - '334', + '333', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b62590ce307f9b4ea730b25e586588be-b1150508a59e4d44-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/models') .query(true) - .reply(200, {"value":[{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.8719992+00:00","model":{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":["dtmi:dtdl:context;2"],"displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]}},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:49.8720265+00:00","model":{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":["dtmi:dtdl:context;2"],"displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}}],"nextLink":null}, [ + .reply(200, {"value":[{"id":"dtmi:samples:DTModelTestsComponent;1","description":{},"displayName":{"en":"Component1"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:30.1221582+00:00","model":{"@id":"dtmi:samples:DTModelTestsComponent;1","@type":"Interface","@context":["dtmi:dtdl:context;2"],"displayName":"Component1","contents":[{"@type":"Property","name":"ComponentProp1","schema":"string"},{"@type":"Telemetry","name":"ComponentTelemetry1","schema":"integer"}]}},{"id":"dtmi:samples:DTModelTestsModel;1","description":{},"displayName":{"en":"TempModel"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:30.122185+00:00","model":{"@id":"dtmi:samples:DTModelTestsModel;1","@type":"Interface","@context":["dtmi:dtdl:context;2"],"displayName":"TempModel","contents":[{"@type":"Property","name":"Prop1","schema":"string"},{"@type":"Component","name":"Component1","schema":"dtmi:samples:DTModelTestsComponent;1"},{"@type":"Telemetry","name":"Telemetry1","schema":"integer"}]}}],"nextLink":null}, [ 'Content-Length', - '993', + '992', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-279c5e4fa7dc2b47853eaffd4a18bdd8-4abbc407813ed44e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -101,8 +182,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-032d5b87fb06d94a8b6f6b89769a2ed3-4a2875f4fe89dd49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -113,6 +196,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2f2539c93a016e4e9a42a3ff6884842a-65fea6960d4d294b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:49 GMT' + 'Wed, 30 Jun 2021 15:28:29 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.js index 0e099ed63d1f..2e0171e0adda 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_basic_relationship.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "090ad367fb034b77f746cb83f9897e61"; +module.exports.hash = "654b559c06fd4402dd08573f0b9e992a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '923874ef-b750-42dc-b52d-d1a751bd2400', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKlno7TUKFG0XxCyfxx-ddhDFB3N9_vVk-amVZvkCyq9-dy9q7yOxJuCcEMlV7k-rw0NTk0TsKOAGydR1VwC89y0NllGKTVjMfsiW-V--yzfAS4cVaVURlOZNW2J2yyvayo6K5FSXe0WkI5kcjjkuLsQbbu6Er5mV_-xxwxZJTJQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:33 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '17f1964b-db13-4bc5-adf0-3c42fc9e8000', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:34 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrLoXmJxGlnm1A2rDS10J4vtdljaIUzIxr90An2anoB2JFYE7fUN4vzJwQDxD2uiUiHvkusYbLSkLGo8ywiBVMM6oSVpeHXJPkUjcPHREbi3MoAHkZz8uEf24QLFzmTOodYcyH23PzFviZvWy24NMcSRN6zMemW50qS5WkGdVFPOcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:33 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=6bb87f71-5b0b-4473-9b83-3112af1ae4ea&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '949c8d15-7fdc-48b4-8bac-2a3a6a608f00', + '17f1964b-db13-4bc5-adf0-3c42069f8000', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AuiRzPG2uHZHjgdsOGfTxPM; expires=Mon, 08-Feb-2021 01:20:54 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:34 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:53 GMT', + 'Wed, 30 Jun 2021 15:28:34 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ccfb23d01c7f8a41aeb55a467cb7c542-3b88d11d1fcd214b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-af6bc0d772040746a674c47d27df5680-7c71a42f2b417c49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1ac35ee87799a5419a6feeb344c2d7a8-f7fabd3244638a49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:54.5547237+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:54.5547513+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:54.5547734+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:35.1246779+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:35.124703+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:35.1247183+00:00"}], [ 'Content-Length', - '509', + '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6560b5a309fe7e469926abfb0fd8c150-2dde662b8b173240-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4ea53aa96231c44f939bb972a7e5414a-1e6e694d580b5c4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ff86abbb69730d4593d0f3dcc44d1d71-18936808d215674d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:34 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5a424e538b122c479aceaff7bb2882d2-62d5daa17135d141-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"f53685a6-b633-48de-a9a1-2a2308ec7fb0\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:54.7122912Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"bb1c771e-47bc-4b4a-8213-4d599f0240f3\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:35.3462833Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f53685a6-b633-48de-a9a1-2a2308ec7fb0"', + 'W/"bb1c771e-47bc-4b4a-8213-4d599f0240f3"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0c8351f4415df44f95720e7d788df0a5-28ef95eb1083294e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"27e79c4b-3427-4397-92e4-14875c682d6e\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:54.7593936Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"74a2e8cf-4d1d-4da7-9d37-7ee1dc00b26f\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:35.4117067Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"27e79c4b-3427-4397-92e4-14875c682d6e"', + 'W/"74a2e8cf-4d1d-4da7-9d37-7ee1dc00b26f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6adf0f4886ffb44caa3fbe8201653c85-6c0268b5b524af4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"0a055dc6-6c07-4815-bd8c-a2a439365a92\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:20:54.8118588Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:20:54.8118588Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"502f0b81-debc-495b-ad4e-3f24ca5a360c\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:35.4752822Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:35.4752822Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"0a055dc6-6c07-4815-bd8c-a2a439365a92"', + 'W/"502f0b81-debc-495b-ad4e-3f24ca5a360c"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f27502788e9ce64cba1269ed79b209b2-4f908d13d33b4645-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin/relationships/FloorContainsRoom', {"$relationshipId":"FloorContainsRoom","$sourceId":"DTRelationshipsTestsFloorTwin","$relationshipName":"contains","$targetId":"DTRelationshipsTestsRoomTwin"}) .query(true) - .reply(200, {"$relationshipId":"FloorContainsRoom","$etag":"W/\"f180f596-78ad-4fd4-b82c-9757cbac1c8a\"","$sourceId":"DTRelationshipsTestsFloorTwin","$relationshipName":"contains","$targetId":"DTRelationshipsTestsRoomTwin"}, [ + .reply(200, {"$relationshipId":"FloorContainsRoom","$etag":"W/\"d3d9d9d6-bccd-4de0-8080-6a7d670d4bc6\"","$sourceId":"DTRelationshipsTestsFloorTwin","$relationshipName":"contains","$targetId":"DTRelationshipsTestsRoomTwin"}, [ 'Content-Length', '210', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f180f596-78ad-4fd4-b82c-9757cbac1c8a"', + 'W/"d3d9d9d6-bccd-4de0-8080-6a7d670d4bc6"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0605c063ca17af4e8feed432ff702e9a-e2cd302007ca504d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f37b83122bb4ac44abce567f9add48fa-8787aa66d886b345-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -219,8 +316,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f53ac7f14e378d4ebab3c4f9632dcfcb-5f589d95b289e648-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -231,8 +330,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5e36a58bd51791428eca3d82882d94bd-ff0f4cfaf1c2d549-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -243,8 +344,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0a09f7d7f64f2e45a8cc0c98bbc55e19-a53c194cdf665846-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -255,8 +358,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b4e394bdebd7d6479d66d6596da8d993-91c2ce218112804b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -267,8 +372,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f643b58fba37a24c95c61a1582079709-74b79085e2864044-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -279,6 +386,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b59308872789ed45b94beedee525d089-a02be910d92d7b46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.js index 9a86952b503f..43b65f9a93b4 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_id.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "a851e25d867337167ffee2e4bccd05f2"; +module.exports.hash = "b2189e6f98772a7bca383097ea19cb76"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '43a93b53-ec8d-46e0-8c8a-3b7e71945200', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:36 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrdDpZ17jbzrW4pLYwdj-3qt9ZUD-CmTJiBlDevT8mm2RGUlj2Mu-MXhzXPBp2sMdBGAYUm4aII_EyspuWQfuMe7YbNshS3X50DyxMFTN2wfEBr-7lHbGUlfHNlNA7tYw2lrUfJwqPCCYPOdI9MazeS29f7wnLLeA4V1vhkeanvrcgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:35 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a52fb20-d7cf-4bb5-9204-2a61a9df8401', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:36 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrt7Ry1ppeDVsQKT19-R-1Ck5cJuqbFBf2vvt_OUjXFZrh0bah9nhyDMD55Sz5UXXcp5dAER8T2vsgt_yS-0sl1ZQ2orUzRdNBY9oEj2wqw5pMIblvE-XMZW8CxRe1rL3MpG2ZD2LP4EMkhjfuxJOzlyHakBL3_GK5R4RcusoaYI4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:35 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=356fcbf9-61eb-415e-9d55-1bd85186a2a1&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '651a9d3a-c5d4-4147-be5c-c028b5719300', + 'aa2c3d00-0907-48b2-81d0-a3583cfc4201', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AiooA9cwUg1Mv8VGhPsD_yo; expires=Mon, 08-Feb-2021 01:20:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:36 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:35 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cd1311415060d246b40e39b0bf670b67-5f3d70405589f14f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-75eb9f782cf78a4db85d250c8e1a1e4e-cce285d9aa18e04b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a315226ba69eb645a1e1da0b23b027f3-564d4f4d38f4c946-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:55.5582104+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:55.5582332+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:55.5582505+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:36.5120951+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:36.5121186+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:36.512134+00:00"}], [ 'Content-Length', - '509', + '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0bb9706f778cb043ab4d31054d885908-293f2b42851a2044-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b1bff341d17e8d4ebb21d3e379610d24-a11006c5597c374b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8801a7b6579b9d47a89cd78424bf7816-8b9978393b857949-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,56 +216,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c9d62618c68ed04db5ae6c0c69b84298-db836c6358f58f43-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"2a2c198f-b499-41d0-94f6-10174550b6ba\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:55.7490002Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"f60b88a8-5d94-473a-b2d8-bd7076176b02\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:36.6950409Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2a2c198f-b499-41d0-94f6-10174550b6ba"', + 'W/"f60b88a8-5d94-473a-b2d8-bd7076176b02"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1aa7368593f4eb44ac2c21b05082cf92-a649cb07034bc045-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"fc9a33a8-92f7-4118-87f5-ff8e0c308f05\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:55.7929693Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"8ef0d721-6398-40cb-8b7c-edafc37a08c3\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:36.7464881Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"fc9a33a8-92f7-4118-87f5-ff8e0c308f05"', + 'W/"8ef0d721-6398-40cb-8b7c-edafc37a08c3"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e88a51d17ab4474da3b198435bf2ef83-619816dc6d14e749-01', 'Date', - 'Sat, 09 Jan 2021 01:20:54 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"55068f89-5378-4917-b9d9-e5ee8bf7820b\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:20:55.8396898Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:20:55.8396898Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"ed8edf4d-3a2a-4a69-9f9f-8d88cdea24c2\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:36.7983775Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:36.7983775Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"55068f89-5378-4917-b9d9-e5ee8bf7820b"', + 'W/"ed8edf4d-3a2a-4a69-9f9f-8d88cdea24c2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-265845297ab26c4cb9da20995bf3c898-c6fa47063682a946-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -193,8 +286,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dd793f9659ca714ba62d90f4287e6399-1f4976d94d201e4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-698be154c593d54ca6ba3c48c73f3937-321d648918321344-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -219,8 +316,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c329954427ebdc48b66b091459e68030-25980011226d8a45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -231,8 +330,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0fba1923a4db0444813a6b194a837985-2843bee2ee925e4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -243,8 +344,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-084dc6dfd4cf7548abbad71a4b24466d-6b1e67161982254b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -255,8 +358,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2f68d4c319766f459756f91526d1adcb-28989c9bb950ee4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -267,8 +372,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7f7090efe9cbc741a874126a9f0f8a17-9e3c021d9b59f847-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -279,6 +386,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8ca78bab1c86754682d02c25bdc18c21-02802c74d3102248-01', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT' + 'Wed, 30 Jun 2021 15:28:36 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.js index 10860db88061..99cbf88b77c1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_invalid_relationship__invalid_twin_target_id.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "8635643b63c04c69baeeb1e11736e82e"; +module.exports.hash = "be3e7a96363d8bfea8aaac219a3eb14c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'ea7e9859-4ccf-407d-833f-f77b907d3d01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:37 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr23-Y6ANnkB5QsrJ0NGolZzmijV9UDduM0cPwMUrQmuVZOXdK5tA_Ycvvq-2HTDzNKlTB9FWPHoYcfYKpJStXPcMg02XY7WGCsoshOriJ_tRqd2H53qsaImGGqpeE-bjavsyf-4Fz-U5G8hq3tAx8_eVkmhUNl7C6JSfA2YPX6ZYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:36 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f75e896d-b4c4-4e8a-8d17-6ea6d2112201', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:37 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYRLmYQDooNTlqgWWC7wEuSPY-_9qOTvhVaR8RUMGowXMGAL0CXFv4fCA7ip5aTLuokTXU9mGzyiwklEncBwDFhNCLQdJF7oGjZ2J-DXqj0ISoASTVrm4O-QGocJuhNwqDJifT9WUxFzqTXXAS6lKLPlytpypus6UXA6D8ka7W1sgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:36 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=c6777af3-4a78-40a1-be07-a6db0f353072&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '3ad31720-478f-4daa-9ff3-05de1d298800', + 'c7083201-44d5-43b9-b5eb-78090c787f01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AkG0JQCfyjZGrXzgeLjuWPauaJ_6AQAAAPj7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:37 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:55 GMT', + 'Wed, 30 Jun 2021 15:28:36 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-956ccfe573c7f14382c65bae7119c806-195d650d9c195245-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d7d0a1f2b0cac54d97b7d686ee8a0d05-197c44f8a7e1044d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d1046a6ac7b6cf4ea6874d3af4178518-645e5706701c2c4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:56.6739154+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:56.6739559+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:56.6739743+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:37.6645154+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:37.6645382+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:37.6645531+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a259bc91a6368a498204f5693d5113d6-7c0d4f4e1f2a6a49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-265c85068c358f439d241a505f4fb8f8-0e64050a6d224849-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ec6cf22a18d147429e7a4ec6de3e5216-29d2c9547532b545-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,56 +216,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8c1c019f41fd5f4b981805a9b5170b38-b9e65ca4801f934e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"43903efa-6c28-426d-8b0a-ab321a256566\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:56.8265886Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"94228f40-f7f6-479a-bafa-ed59f7a1f75c\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:37.8345536Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"43903efa-6c28-426d-8b0a-ab321a256566"', + 'W/"94228f40-f7f6-479a-bafa-ed59f7a1f75c"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b60d90f7338b494096bd9afe86a37a0f-ff885743d84bc44b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"6abc2f9c-bfed-4beb-b67a-60cb87447d09\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:56.8735227Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"264e4122-f051-40a7-8bc2-23e23ac28ae2\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:37.8874266Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"6abc2f9c-bfed-4beb-b67a-60cb87447d09"', + 'W/"264e4122-f051-40a7-8bc2-23e23ac28ae2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-571bad2961322f4ca449d2d44bc9b8ed-46a28805cb0b014c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"b24d7331-4e70-4772-90c5-668e1418c16b\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:20:56.9172639Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:20:56.9172639Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"02c88095-6eab-493b-91a3-013a58a139bb\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:37.9351776Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:37.9351776Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"b24d7331-4e70-4772-90c5-668e1418c16b"', + 'W/"02c88095-6eab-493b-91a3-013a58a139bb"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a65a36a7ece3c046b19355e20bac754f-fdeaa0eddf95054b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -193,8 +286,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6739dffa04688c4788c874c675517a91-028bc2338f5eae42-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-10548dbe76582f459031fe3ab8d9ce5a-38c0ad3c81b7fd48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -219,8 +316,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dc6131391c2fe547be2c835595abbde9-158b3602e39d9040-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -231,8 +330,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dc54799084f2954385e88bd80960bcd4-4357041919e6104e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -243,8 +344,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5d1f45f2d8e74a41b9cad17ac8026dfe-0dc2be4920136e45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -255,8 +358,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-12b1f1801c80bf48b0d7668446fdfefc-6226aac0491d9948-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -267,8 +372,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-db8a6192f75b3d41b86495980bd126f8-aac2285959a37442-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -279,6 +386,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-237550738cf855488b40a2944dc2e01c-76af54b48811894f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:37 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.js index 8e62b1382efd..56e95dde02ad 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_create_relationship_conditionally.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "fd042df0bf5d1eafa7282db9f0e477f6"; +module.exports.hash = "2d0f3d60b6aefd18a18242c8abe3b2d7"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '22db8a82-f2c5-43e8-b260-5f118f9b6501', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:38 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruIaeNdLJktm4y-9L2A6YQG2MESSZZujEXCcHkIO2qe3NXz0eeIzBRh7i05TfPFjekWBMqs1_AAplE8R6DXTDECUdlJzSvreYESbBDkJ4XrdGKCgb03Jt_2RfOhCyOAm4qhe-tCtC3tAkrL5I3U41Zks3cunk7zm-ROZevT8i238gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:37 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '58d79bc5-3030-4871-8772-cc5bf9c43a01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:38 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrIsxGw-8wQlrd7IY5G-oiskDvG__5LhbOxMQsKxf2qndxYBSdFhH9rBy-xRiwzjx9yeCxEfevf7C_WAEU2pUjY8BhaKsuQvH2pTDau1ThGbaF7Rwb7mZ1krbk8QYaHkeQvLZQkwBoRcN9Pokf6nfZOsRvYXjBXkU4mTBhTMZ1czkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:37 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=d3b5547e-bfad-4b8a-9492-2916203781ab&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'eaf5f345-c086-4220-9161-66b674549600', + '2addb27d-9919-4ad9-9db7-755b0d3c2f01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AnYg03gXkuZNvQ1mzKCIyvauaJ_6AQAAAPn7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:57 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:38 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT', + 'Wed, 30 Jun 2021 15:28:37 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-28bc248163d90e4d9b4c8d3a4327bee3-a75a43c8b8b7a44f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d7e246097440fb46b8e2a9ab09d810d1-db419c1e6a6f6c4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-757329201eca7f4d9c30ec5ffb04e3f4-3ce5ea1565fdb64f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:56 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:57.6523062+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:57.6523259+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:57.6523414+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:38.8141777+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:38.8142009+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:38.8142181+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-43e157d64823074e89552ffcd4723c88-2df3f0dccb99f44e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dbc0b2605e96bf4982e2f73897912c94-94ed8bd99571264c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e0e08cf20065f447bd027d7b8da1ab15-6b7b5a4d698d1841-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8dec3d66e50b194988871fa230ca0cc7-aca5042f425b4749-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"0d6b5304-db12-457d-a93c-e280a5bd5fb2\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:57.7825707Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"dc8a9ea5-d0d3-4d14-a0cc-4667ae0daa13\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:38.9934112Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"0d6b5304-db12-457d-a93c-e280a5bd5fb2"', + 'W/"dc8a9ea5-d0d3-4d14-a0cc-4667ae0daa13"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b7acda777d5c3a49be538c17695f1c96-b4fbfe67edda8045-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"5eed709f-e1f3-47fb-95e0-0eef2057a1c5\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:57.8448178Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"a3430e1e-7029-443c-a7ec-5096520b21c8\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:39.0464780Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"5eed709f-e1f3-47fb-95e0-0eef2057a1c5"', + 'W/"a3430e1e-7029-443c-a7ec-5096520b21c8"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d6508134a4d92a48b606c7d643d99432-da8408d06829354c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"2f6cde8d-0ba1-4a4c-ac03-b066790b0533\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:20:57.8837990Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:20:57.8837990Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"630b74ac-2983-41bf-a723-b949389fac67\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:39.0976857Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:39.0976857Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2f6cde8d-0ba1-4a4c-ac03-b066790b0533"', + 'W/"630b74ac-2983-41bf-a723-b949389fac67"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3dbd2d5f5bcf2440a593d39f18efd18f-9dcc89ba4b607042-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin/relationships/FloorContainsRoom', {"$relationshipId":"FloorContainsRoom","$sourceId":"DTRelationshipsTestsFloorTwin","$relationshipName":"contains","$targetId":"DTRelationshipsTestsRoomTwin"}) .query(true) - .reply(200, {"$relationshipId":"FloorContainsRoom","$etag":"W/\"9c0d6ffe-cdfb-40a8-9955-425bc4ad3a4b\"","$sourceId":"DTRelationshipsTestsFloorTwin","$relationshipName":"contains","$targetId":"DTRelationshipsTestsRoomTwin"}, [ + .reply(200, {"$relationshipId":"FloorContainsRoom","$etag":"W/\"a8905e86-d65e-4061-be62-a6de28e1628d\"","$sourceId":"DTRelationshipsTestsFloorTwin","$relationshipName":"contains","$targetId":"DTRelationshipsTestsRoomTwin"}, [ 'Content-Length', '210', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"9c0d6ffe-cdfb-40a8-9955-425bc4ad3a4b"', + 'W/"a8905e86-d65e-4061-be62-a6de28e1628d"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-03a01e7affa1934bb21a0a16a257ab54-7029c7383a86cb49-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -209,8 +304,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e990ab0f24985a49b3d732e2eefbea5d-7ed2c9e63a0e1146-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -221,8 +318,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-efcaba84e42bc540bc6bcbddba501531-ccfedb102359a74c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -233,8 +332,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d87311c7dec1424798bd503c49b9d926-594f72d32af88f40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -245,8 +346,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-474c6b43074e754fa90b461544a7674b-58943813b31d6e41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -257,8 +360,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e4d688e353736b43a1ce97c4bbff6589-e9fdc03f9a334640-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -269,8 +374,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0062659063df5240afe1bad52c2d5ace-05b1aa6efed28641-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -281,8 +388,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-442f19002325bc4fb8383febfd898902-97ecdf79a3b75b4c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -293,6 +402,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4d6eb006fec84b47828b7b0acd7d0bd8-722536a6f7d90146-01', 'Date', - 'Sat, 09 Jan 2021 01:20:57 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.js index 89aa775fb31a..610d5794d5d2 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "4c3093999f5901525edd61d2c9de5269"; +module.exports.hash = "a6103459da28ac2e3180e138c8c15645"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '405a3cd3-9fb6-4cb0-8aaa-660bdc022900', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:43 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrd_JXcrQICp6myHe5gyIuMClDMPqBlL2e23WS844g7XcirMD5YpkyOW9ga5epqymw3kuGWpLpUCaJ2pwD-tTAGP4jxXPBCCEKm6GUkS_ER33V2WbnPwv286dyTOF6FWSvGjNGvZbdIdkxlhgdArb5H-IwG82uUuAGOTCkYfKj9t8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:42 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b1b01582-f8fa-460c-a911-28f4a26c3801', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:43 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJdLMSQ_IwwDnk6coYYmS5gdzoBcj3eyEQHhTp3nDdpMvCSeNIQAfKWBf3NB-VchyxuX39swwmptSdQVeHA99dPxtZvPu2NqCD2SwUwClxSMmBCQINCZDMhG7vCNRTDBF679q6xnv6NMv341bJYmD95YZnBQeNCzm8Ev8oKf2Vd8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:42 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=2ab7b59c-ae8e-4d70-a97e-19d762965720&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f1f957c7-c25e-4aa3-a17a-1b2ad17c9300', + 'b1b01582-f8fa-460c-a911-28f4ad6c3801', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AryTwT8p9fpIvxWuXR46jImuaJ_6AQAAAP37itcOAAAA; expires=Mon, 08-Feb-2021 01:21:02 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:43 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e0aa484964053a4599656974792c6716-85eb9bcbcfe6fc42-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5b52fb7ce746394aad22d47ba8926e02-d7fb5e1c2f26b64e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c9aa4f3717c1a24fa5a1576054984e7f-49b7f4ea89002540-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:02.5392174+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:02.5392408+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:02.5392551+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:43.5802309+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:43.5802553+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:43.5802714+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-558fcdcd0cb89f4789f21dd4e935d349-9060d768361b0944-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-eee97849af6078429e4d18ba58b6c319-11d79752570f8e4f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0cac481fa02fb049bedf0e8f6feace0b-5b39f4a52a950948-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-eddb2412810ea249bd72d2068cd93646-30007617134a3844-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"ed38e5f7-687e-4849-a199-92c057a0b3cc\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:02.6783695Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"6f1fe2c4-36e9-43e7-a0af-53390a043c1f\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:43.7440334Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"ed38e5f7-687e-4849-a199-92c057a0b3cc"', + 'W/"6f1fe2c4-36e9-43e7-a0af-53390a043c1f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9acb4888f4b52548853e0e88d41fc1c6-334f2b6938c64e4a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"8c376453-7cad-4de7-8261-a1590fe4f5d3\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:02.7319403Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"7debe5df-e4e5-410e-8fb9-7eebfdcfc705\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:43.7926803Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"8c376453-7cad-4de7-8261-a1590fe4f5d3"', + 'W/"7debe5df-e4e5-410e-8fb9-7eebfdcfc705"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-308cc740f61a254c92ad8d14f636f0d7-d15f892f4d86a140-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"f45697ac-1705-41bc-8b59-1273b8f5a479\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:02.7737147Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:02.7737147Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"ad78145c-6dc8-4f85-b5fa-6e86ef74d801\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:43.8459329Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:43.8459329Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f45697ac-1705-41bc-8b59-1273b8f5a479"', + 'W/"ad78145c-6dc8-4f85-b5fa-6e86ef74d801"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6466733c8848004c9ccef56eefa0c3c2-8baed691e338f241-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"2f6c17a5-9339-48b1-88e0-b8cab6213504\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"57611d0e-8489-4e80-a15e-c39915372c34\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2f6c17a5-9339-48b1-88e0-b8cab6213504"', + 'W/"57611d0e-8489-4e80-a15e-c39915372c34"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d406bf1d155ee848b84755b09ceff6ec-eee44a42c419674f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1b39bd29dafa2c479ca64fce841f5321-25852b134d33c349-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -221,8 +318,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d54c0300726e694fb18225d31eeb7203-324611130e3f3b42-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -235,8 +334,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-857ebcd1a0a95e47b425b83de9be0dd4-3facb5b9c9dfb942-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -247,8 +348,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0997d3297e7f9443a4e5d41d3e383e28-9732da65081d5f4f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -259,8 +362,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cf1bca27a183b44e90d584910256c7c4-b325822e13fb784a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -271,8 +376,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d310805f6543c4438741cdebb846245a-3c38e6d505b0e748-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -283,8 +390,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8785ca6ae934754a8bc272b2b9ae27b5-4b3a58fef0bcf64f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -295,8 +404,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1d9fc35d8008cc41a23bb299dc8b5b70-c99e7f77bc328f4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -307,6 +418,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-95ed63498d115c4c9e1bdbc7ffda4522-5e52c2f32018f140-01', 'Date', - 'Sat, 09 Jan 2021 01:21:02 GMT' + 'Wed, 30 Jun 2021 15:28:43 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.js index e18fc87643e2..b6658c8b58fb 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_delete_relationship_not_existing.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "a22145c1c3e13dff68bfc858a0cce297"; +module.exports.hash = "289a80a31bf5ff5beaa2205bf97aedc4"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b10d4e15-9d34-4268-af4c-41757da19a00', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrwQSbkV2cOHFoYNXb4LV9wVB-XbiNGWEMzgVV_JGVxr-at5kAmEEO0rwcYCuItzqIh_2BqVrzQDKw1pFw5wBdfZaYRHu35IVquxjhtqotqYLKtkhBf8WKXWIeYGRXawuMakjp2EonKm3-aorbJ2AMLoADYJCwe5paeqZFmYRLEBYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:43 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '36bb625b-a847-4fdd-b6d8-03c53b807301', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:44 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevredX-vZMd4v4MfMqrhkI6lCVWxyRxNamgyXnr6E8m4FTIp6ySRI1-dVYwW8C8D6cqNmQrMoQ6BoFIL5-BYtNceMD3btuJsTuXuZH-tWGnjKXiwfnB8yCQU-QQQjF5FP2b3xPcayx4mGjqzaYWGtIlSnKKJ7r0rZjCsHz_MnYHMiwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:43 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=e7fd8868-1ff1-48e6-a734-0fc2d816101b&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'fc587715-ec7a-4fa1-bece-ebdbf84a9900', + '28812791-b9ec-449e-b425-0faaafc41f01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=ApbmtnOqWcpCj6Eo0WJoSCeuaJ_6AQAAAP77itcOAAAA; expires=Mon, 08-Feb-2021 01:21:03 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:44 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT', + 'Wed, 30 Jun 2021 15:28:43 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-93c5c5ecd9ed81438df03cc5eba9b426-f64e73405810644f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-65500d9f1680b64b93885df04797f29d-c4d763394706ea4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1c893f5bcb915f4fa229f495d1001ae3-140da5c414284040-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:03.6635193+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:03.6635823+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:03.6636173+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:44.9157845+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:44.9158074+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:44.9158249+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5595438f97169d48b68bb9f6db68d30a-2b0bbf0ed3f29f43-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ed9b59808b9af242adcac36d6fde0f2e-1d5b291249a9b04b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c50867a4b3e72c41896b657f2ae6e211-4aa8fed86ef93845-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,56 +216,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-eb9e0c0ac3fdef4987205aa55c9cc7aa-a0fd832a1c903148-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"0ec45b78-a443-4bbb-81ba-e592292c623d\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:03.7887776Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"55af94cf-eff2-4a28-a40b-a2a404e7f0ca\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:45.0853817Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"0ec45b78-a443-4bbb-81ba-e592292c623d"', + 'W/"55af94cf-eff2-4a28-a40b-a2a404e7f0ca"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c13513d90cba87438caba3efc0d255f7-1846ee76e6665f4b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"24bf1acb-72eb-4617-9995-4aa03c5896e4\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:03.8287390Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"d159c97d-4c69-499b-9716-2e5e925a90ce\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:45.1372715Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"24bf1acb-72eb-4617-9995-4aa03c5896e4"', + 'W/"d159c97d-4c69-499b-9716-2e5e925a90ce"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0246afd106a211488fc8563346bf8e8c-4e214ee66537a844-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"a9fe4dfe-1eb8-46eb-a344-ad617e9dba57\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:03.8716033Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:03.8716033Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"9956d9c5-c952-4bd8-8104-ed22cb7b6724\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:45.1851004Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:45.1851004Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"a9fe4dfe-1eb8-46eb-a344-ad617e9dba57"', + 'W/"9956d9c5-c952-4bd8-8104-ed22cb7b6724"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f0d2afff58a8024ea29ec0ae090b4ae6-7639f266aded8b44-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -193,8 +286,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3a8b21fd17bf0e43832eaab43d91434f-83fa5ef6bb5fe742-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-71382818f1696947b3396143e3cf7db6-9f8447bce01e3946-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -219,8 +316,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6c4d772ca8cf6840a51c1cf4e405fb9c-944ea4a152b63443-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -231,8 +330,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-094c778e4d789e468326dc638d29f389-5c2271a1c19d5242-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -243,8 +344,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-142111d6be42f0439c7eb6cbce9aabb6-c3e3a2772ccb5740-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -255,8 +358,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1b387e0c91f30941b0543897127145c0-5f432ac9dea7e147-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -267,8 +372,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8ad2e68884e45a448e1cd4cf0d6b973d-c3c87de573a6c748-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -279,6 +386,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7da3ff9e1198a148be522b5ffa513707-f6625ac5b00b0346-01', 'Date', - 'Sat, 09 Jan 2021 01:21:03 GMT' + 'Wed, 30 Jun 2021 15:28:44 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.js index 7f155030b50a..4b0d122bd92d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "40023fb39eb914aff67199f66d269f52"; +module.exports.hash = "3b0695c1d8b643817640e94b3d3b42f1"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'a78b5b73-05e4-4ded-b211-f3e46bc9f100', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:40 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrK6Xkjzr1B5RTVuhoxpizJE48dWwV6UtY-aqaE4z6_VF1zET8kKnozDTGnLntYxDk1dwMpK6rTWEgVLPzcspG3dhJw_iPKuUVhg0CSy7mUFutjl8VquRw7fNbd23Ok1HwU_985ZlrVmswYhRUiAvgQvyxyZ7Clf2naxk6zXAbTgQgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:39 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '28812791-b9ec-449e-b425-0faab2c31f01', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:40 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrm2N7VKOtDSTGOrrras36lg2wIlFYHxceB0zi5FEPpndG4rwl74N7mPqQpVKRHdtpcvYs52v_tpOVc6W7p-HRSClUIxzzHDONm69xEC8Eila5OZor-ti4X04XvpC78I6yFbzRQCHsQOpfuNgaZAw4C9mhsfWKORfV54isuqKBrpggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:40 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=90a0407a-fad7-476d-a2eb-1f777e6eceb2&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -24,17 +95,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '56b4dc3c-c37b-4bbd-b4e5-7bbc363b8300', + 'e8adf41f-245f-45f8-a149-c5e402804e01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Ani02QxqMc9FudnxoLFDUSSuaJ_6AQAAAPr7itcOAAAA; expires=Mon, 08-Feb-2021 01:20:59 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:41 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9e438f3083b48f44b572e1916256df07-cdbb08ce5fc6e24b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8f8aa82700f5a44d8cda54c8fb8a18de-7a9e93e895a71b4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d6c29cff20db35439f8a10786994ecfe-d4143348b1e4aa4b-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:59.9227535+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:59.9227763+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:59.9227945+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:41.2226474+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:41.2226743+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:41.2226956+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f2810a28576f214c82b4971364202421-3f24bc19f146554e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-abe5d0ef604f434d90dc8aa685e3b6df-7d7ab15a556ae34d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-eb55acadf735a442a22c254e1d6f4444-79d0051a53984e41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,88 +216,100 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-79f9ff0197fda04ca1c01fd20d5b71fd-08286e6d9da8404e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"7a9b06ec-8931-44cd-8756-4321ce07485b\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:00.0644117Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"41c998f5-223a-4c66-8535-720027feb17f\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:41.3892985Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7a9b06ec-8931-44cd-8756-4321ce07485b"', + 'W/"41c998f5-223a-4c66-8535-720027feb17f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8a9498accedc9948a402bcc2c2272ef5-f27120803b0ade46-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"8d1c249f-b3db-463a-8257-d765e96ba790\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:00.1176608Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"cff8f90e-5e3a-4905-a783-53227c28ad02\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:41.4405282Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"8d1c249f-b3db-463a-8257-d765e96ba790"', + 'W/"cff8f90e-5e3a-4905-a783-53227c28ad02"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-367801d4b33d674bb783e2a4563ba784-45dc2f98109e3844-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"e3fa11a6-7beb-4544-b995-78398385d97c\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:00.1631406Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:00.1631406Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"9f30cfbd-fe4c-4106-af73-ccb98c9dab9e\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:41.4902374Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:41.4902374Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"e3fa11a6-7beb-4544-b995-78398385d97c"', + 'W/"9f30cfbd-fe4c-4106-af73-ccb98c9dab9e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ee732ab49034d04d8d3222b13be0f32a-e7d49e8e7ce55e45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"2141996e-da9c-487a-abb7-299ae546062b\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"05d1bd71-8c15-4698-b65b-cda2bd48a552\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2141996e-da9c-487a-abb7-299ae546062b"', + 'W/"05d1bd71-8c15-4698-b65b-cda2bd48a552"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a0b9348dfb07e542992faebaf551ba83-df79d965ebabdf4d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor') .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"2141996e-da9c-487a-abb7-299ae546062b\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"05d1bd71-8c15-4698-b65b-cda2bd48a552\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2141996e-da9c-487a-abb7-299ae546062b"', + 'W/"05d1bd71-8c15-4698-b65b-cda2bd48a552"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b1464cc37faf5e42992f21a9ad25d6bd-71bea139b9fd654f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -223,8 +320,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-19cfeebcc370704abbdc1dfb8e2d264b-38fe60eb79715541-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -235,8 +334,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-69ea964cebd750439de6f98e86b7c838-e5762982fd63fb4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -247,8 +348,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-42e28d944dc1764c936e59562d05df8e-abeb17e32c3a654f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -259,8 +362,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f6649f9ca5bba6489b50e865d8762af1-cbc26b74a30f1b41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -271,8 +376,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-83081258e8ac4c47a7a2144a8a02e2fe-a03458c4809bd94c-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -283,8 +390,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-67233a78933d914d9bebbf1f4ee19e81-4ab766b77fdc4c4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -295,6 +404,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-90dc75d82bebdf4c927e2c9e9643f75d-7679ece179f85740-01', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.js index 0719fd9d65ba..8596fa58d014 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_get_relationship_not_existing.js @@ -1,16 +1,89 @@ let nock = require('nock'); -module.exports.hash = "18f1a6827daaa6e41670146efbe101e2"; +module.exports.hash = "15aea6b265e258340401e2ab2721f220"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '9b4143b5-d9e4-44bb-877e-7df5fd0ba301', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:42 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr9IDBhrTokS11_JsyjgQMKxkITbepCoCQHmwJPzTp-25UU2cq3U14LFVUGvYnhw2_4AFmfpaH10BIwnMURoQfqGbM9Gt2z3R8sdsdNjF_BpyypNyuxnL0gBKP3txsYN4_xdBRAczEoFAJ5hakt8H_yWOPufhgyLbLrgLnc6YjsUIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:41 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a757a1e26601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:42 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqZrNhidDye6G4i-s08rzxIcSeKoHjrZnVhe3Q8Lg86mFn5YgxoaAVHAKnHxMNbwkdIwT2LvSP1lFJKCvX7LY5GcyFCJKqGo7iCU5CRusTzlU4T4ZJgEU9kYjSr-j2mmpP4PHzFzpu7ALmJwJXquJiHxmmprNgNTJo5jGXHEFWRYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:41 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=3e46db7f-2e6a-4312-a393-8dec08451613&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', + 'Content-Length', + '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -22,19 +95,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'fcd6e4e5-7af9-47a5-bf5b-b639926b9700', + '28812791-b9ec-449e-b425-0faa01c41f01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AhPuLGTJ2xVGpDs8UUFAbOKuaJ_6AQAAAPv7itcOAAAA; expires=Mon, 08-Feb-2021 01:21:00 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:42 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:59 GMT', - 'Content-Length', - '1325' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5ef83c6143f1824a98c2c836354d5066-3cebbac38f0ded4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-520b26b2619cd34caa54215031b16588-04a3a82bc4a23542-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e8f364b9e32625439cb667bf996190fc-1fef185b59e4834c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:01.4749232+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:01.4749455+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:01.4749637+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:42.4417262+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:42.4417526+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:42.4417689+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4b751b0d0888124d83244a41243e1425-33f9f14bad1e3b45-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-72a7a70d247eab469de22e7776c1b13e-025008b674c4c846-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-103cb7bcae74e64eabbb6a9cfbeccec0-919ec31fd9a7814a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,56 +216,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-10a071c43c27454e8eaaaf4cb729eb73-58aa4881fc232d47-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"b4f1aae4-d53b-4c6c-833b-0284902df748\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:01.6358346Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"3c5a46cf-5ff6-49a6-b438-d3065b66ceea\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:42.6117902Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"b4f1aae4-d53b-4c6c-833b-0284902df748"', + 'W/"3c5a46cf-5ff6-49a6-b438-d3065b66ceea"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c3e8911d144bc2448dc9b06657cfd0b8-539a53ac4aff1d43-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:41 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"076a5770-f01c-4641-941b-eb8b36f1724c\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:01.6755289Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"bda54597-99b9-4910-90f3-fc511513ec8b\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:42.6628265Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"076a5770-f01c-4641-941b-eb8b36f1724c"', + 'W/"bda54597-99b9-4910-90f3-fc511513ec8b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d917d04e886f094abe89ad1aed019936-78a3f2697e9af445-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"5c416c38-9494-45bb-8b87-f7c68bd50f4a\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:01.7208235Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:01.7208235Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"19b563eb-3094-4d63-af12-b3e98196c539\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:42.7174250Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:42.7174250Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"5c416c38-9494-45bb-8b87-f7c68bd50f4a"', + 'W/"19b563eb-3094-4d63-af12-b3e98196c539"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-896cc7fb39a70f4ab12918c987247f09-75ce7e8310017e4e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -193,8 +286,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c599ecaf2108c7499d74c82d85d70098-fbed429fe5bbe548-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-455d75b792f7d54ea540126c05251f9d-19630c39c5553047-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -219,8 +316,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-70e06c66218e9143b4b6526a94edea6e-d14a75e75ae0ae4e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -231,8 +330,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-be13227ac648ef4299364d2df5b5f49b-2a267542c1b0a54d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -243,8 +344,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f5aa8e0371314549a5b6d73e39d3d3ad-c0393a3b6254314c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -255,8 +358,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e4416e98c142ca42a41fa8c9a76b2fe1-e2f62e4eb8327f4a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -267,8 +372,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a42e5b019278184dba0a133c6d6ab80b-0848e0a45cbda04a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -279,6 +386,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-38a09bde3448654f91f6276b1b31df51-633bd79f3f84d04a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:01 GMT' + 'Wed, 30 Jun 2021 15:28:42 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.js index fbfb40f89d9a..432df745fee7 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_incoming_relationships.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "d1379c996f15b28270f05fa02b7c7504"; +module.exports.hash = "c4d4c518250af08cf741ef1ca4d461d5"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c42d2cee-bea4-487d-8391-024e5b4a2c00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpWcCZkhL_MqYUndiJvAafkqH2fZ9MdYdh-FYvPzG64W1qresgRJ3iIv9y4yt-vjse84Tl31KNVhE5SPQvzmdLcpSKWF323VHOZp4Ev2h3XDT1XBJjOBrp2xTLBMfP5hX9aG9U9DHm0P7fe4kxlSNHbbJWDAmY7FAMulNOMXXpZ8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:55 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '2680a9f1-90c9-4446-aba8-9802ace82e01', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:56 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJBZYWxI85E8EkjsYy0nn6GwaO2Winno1fW8fEJ6dpV0J2SnTuTZY_eBU7ZqdifSq0jsXg9BsqTwfcGhmpJgu3IjNRRdHH5AjUjeTY0XIFHRox_j569M-NxfUbxHM62-kfoZnWSeJYPTq_AtGn1DI_4gL0czXbBpGNhp9PD0T2hggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:55 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=631f5613-40d3-4ba6-968b-c8c4e7576748&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'cde38f7e-20c3-4dc1-80f8-fa01db848700', + '703b39c0-f313-4374-a6f6-9fd0db603901', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - NCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AkLzBpkZ5hVHjaDjEs0TuT2uaJ_6AQAAAAn8itcOAAAA; expires=Mon, 08-Feb-2021 01:21:13 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:56 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT', + 'Wed, 30 Jun 2021 15:28:55 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-af8a0e8b6bd6d84482582f6f9dfae01b-76c3c2a1ac4c0f4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d742e9f55b79024e9a880c1c498e1976-8681a658f062ac40-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2a8ad0180172554c9b92c93f87543fb1-93bc33d61ffe7542-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:13.9924351+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:13.9924608+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:13.9924799+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:56.7295185+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:56.7295444+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:56.7295646+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1bba28df66a4314d91361a4bec7fddd8-335d73952c7a4e4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-28f19f934c4d1c498b9fae6400eee073-c29cccdfb2d9de4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7ec756acaefacb49ae691cad4025cff4-94dc5b26eced2947-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c03c6575c5041a4e82c4ae961687dcef-d43d099c8791684b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"23516e82-ebd0-46ac-896c-8e8a349552d6\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:14.1274517Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"d1bca285-d2f4-44e0-9492-0010608594b2\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:56.9008086Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"23516e82-ebd0-46ac-896c-8e8a349552d6"', + 'W/"d1bca285-d2f4-44e0-9492-0010608594b2"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-89f649614bd63543bfd43432a3d96d6d-c6b1def68d239f4e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"f8357463-5ccc-4471-ad08-81875e5379e9\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:14.1717707Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"24a45360-c874-4a77-a0ac-4e024d012be6\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:56.9556594Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f8357463-5ccc-4471-ad08-81875e5379e9"', + 'W/"24a45360-c874-4a77-a0ac-4e024d012be6"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8cdb2adf2ca53144802c75ee2dd04453-05d3330f16a6d649-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"7cd02568-504b-4e77-b2aa-378de7a76e41\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:14.2359121Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:14.2359121Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"e01fea81-7a51-407d-91cf-34ecb403d4c7\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:57.0075360Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:57.0075360Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7cd02568-504b-4e77-b2aa-378de7a76e41"', + 'W/"e01fea81-7a51-407d-91cf-34ecb403d4c7"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9b6e63c6b6f83349bc9da3287cd67aed-e2d489a46724154b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"def506aa-4792-458e-bc9f-90417a45ecc7\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"6f5a188c-4cd7-4487-b227-47dc0ba3a94a\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"def506aa-4792-458e-bc9f-90417a45ecc7"', + 'W/"6f5a188c-4cd7-4487-b227-47dc0ba3a94a"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-455bace3c4b72b4686119a02d6685340-5d50e027f19a9143-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -209,8 +304,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-df0f5ea21a8c5d4197b7c63a763958a4-e19fc1c0d57b9642-01', 'Date', - 'Sat, 09 Jan 2021 01:21:13 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -221,8 +318,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4b0bcde51059054d8a7861396875705e-05e8f573903c194f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -233,8 +332,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-eeeb76a39faeb94c8419309d37b007ec-21d5ec613e057642-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -245,8 +346,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2993950fff34294cbf0f15cf6c533a55-71c5bd5fb089cb47-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -257,8 +360,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-35eca7b31959b848b45a79cbe58dc7ed-f8c71e538ce60841-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -269,8 +374,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f8e64dfd752907418c113cb052d50990-fb97b5f06113ff41-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -281,8 +388,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e2c1e7b00db22d41a5669fad6a03771b-9bdf2fd2fcb5da45-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -293,6 +402,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-470cb3f65c678943b7880a95779ebb34-b0efeb80a312d640-01', 'Date', - 'Sat, 09 Jan 2021 01:21:14 GMT' + 'Wed, 30 Jun 2021 15:28:56 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.js index 223c8e5bd00d..72199fa4bf97 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_list_relationships.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "3f72c1489c7955babc015ba67fa57941"; +module.exports.hash = "4e1b0e9925dacc11edf5be431262ee77"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '980', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '239b7266-89eb-4440-aef5-960cedc59901', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQO1FR5zVE9qT2CAeT5ctmKOBpbLx4P3qQBCgPkjsHh8OkYQS0JbTkV4aVJTIYy1U1EDs2CRzWpuchGO7Fs6WAbIo38mYjLny9y7ZuDYfITQp9nZ05aRVAK3sLb3YscX_7Q-p5KupoVAeQawrv0VYEFKbUfZDe0v8LV0arpKY4F0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:54 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Length', + '1753', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'a9a1e068-3c7e-4040-b4a3-6952a0967301', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:55 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2to4dPh-lRuYQQpNnJTfZ_RwoNIsxKVSllVcVwWZgrVHjzHd8mAWPwcqbw2rU-IP9pj3f0WNC1PXFRtHwxu4_6KJ3iKcj0YvITcfMa7Ix-Qdz_DaEHT-x0KlGJpghHD3TIemVS1rywed_rBai5nsy81Qo1EcQ1RT4PMa0jg0MsogAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:54 GMT' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=817786c7-fa2b-4346-8983-cf7d5176eb39&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a063a025-6494-4944-9b23-9cd3f6619400', + '36bb625b-a847-4fdd-b6d8-03c538847301', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AjlKrOzTs2FAhu8qM4Dcg7yuaJ_6AQAAAAj8itcOAAAA; expires=Mon, 08-Feb-2021 01:21:12 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:55 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT', + 'Wed, 30 Jun 2021 15:28:54 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d1b93d83815467469489d443d4c5a990-c7d434689965564c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3ea2be59f0928c4ab7d2086c5bfa46b4-b7cfca852d4dd248-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cf5619b9c65e7c4bb05e3ad39dba2061-b9f77bda9be31f42-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:12.8898259+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:12.8898488+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:12.8898676+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:55.5565049+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:55.5565308+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:55.5565491+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9a6034d28cea3d41a7fab74d47edc2c9-08cfac1d28108042-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-950b8d7d7bfc6146bc2ab39b60a2e032-68a6172ddd88f24b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5d14298ede3c3f4d801db8253bcd5d69-6f4a14995ab2a446-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,86 +216,98 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-bb25c8f79fb7db4f938a74347145f42f-1148345d620f8245-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"d8b8d23e-195c-42d9-9189-9ed46db4421c\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:13.0320484Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"85374f4f-b0b3-4af2-b948-fcaab0db199e\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:55.7234076Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d8b8d23e-195c-42d9-9189-9ed46db4421c"', + 'W/"85374f4f-b0b3-4af2-b948-fcaab0db199e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6548c3f99f7aa343ace3eb1cafeca811-fa08bc751f2a5048-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"e8ed0bc2-8f9e-4e2a-89e0-158f9872a7ff\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:13.0762590Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"0f25098a-0e0b-49fb-a87a-fd450e43a52f\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:55.7757686Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"e8ed0bc2-8f9e-4e2a-89e0-158f9872a7ff"', + 'W/"0f25098a-0e0b-49fb-a87a-fd450e43a52f"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-234316791e9cce4a93feb644a0864ffe-b247258a6b0fe44b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"ac7bfbd1-1332-4573-ab81-7d47aa420099\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:13.1188620Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:13.1188620Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"346c8f03-b027-44be-aa8c-92a5fe9667c6\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:55.8213732Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:55.8213732Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"ac7bfbd1-1332-4573-ab81-7d47aa420099"', + 'W/"346c8f03-b027-44be-aa8c-92a5fe9667c6"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-381690d04da71945a07347ff5f972767-7f668966e865f948-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"3dc18a8a-2ad8-4f2b-a1b9-e2a19a671463\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"cc1f7984-f100-4f12-a007-b476f5e478ea\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"3dc18a8a-2ad8-4f2b-a1b9-e2a19a671463"', + 'W/"cc1f7984-f100-4f12-a007-b476f5e478ea"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f12c3494543814479cf21549d92dc10d-22770224f2ded947-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships') .query(true) - .reply(200, {"nextLink":null,"value":[{"$relationshipId":"BuildingHasFloor","$etag":"W/\"3dc18a8a-2ad8-4f2b-a1b9-e2a19a671463\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}]}, [ + .reply(200, {"nextLink":null,"value":[{"$relationshipId":"BuildingHasFloor","$etag":"W/\"cc1f7984-f100-4f12-a007-b476f5e478ea\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}]}, [ 'Content-Length', '263', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-90b2f962d588a046a693312b3af9ef64-c5ca68840d767c43-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -221,8 +318,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c02b7aa73d3289438fc825c31788ff89-5ce600915c370746-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -233,8 +332,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-40251c8eb748374f886998c34b199114-350fe2a297c7814e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -245,8 +346,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4b75107b7ec9b4429ade1ecb931199cb-2f32e47f569ce14c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -257,8 +360,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7afdd3af9b6b5b4cbb08cf45e4d17b52-fda9344588c3b34a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -269,8 +374,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b1dff32edb838748ae52cb79d2220abb-2b409db754c94946-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -281,8 +388,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3f76b0e4498d584cb7f03bd19c5bc4d4-4ed2a78022059247-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -293,6 +402,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-37372b83b7a8ad43a37673e3e331f859-4fd7ef45b477ee4a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:12 GMT' + 'Wed, 30 Jun 2021 15:28:55 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.js index b9f6cfe08a1e..467503896c33 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_add.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "9d28e2a6bd5d526288b4ec2e439b3c57"; +module.exports.hash = "7a1943624bd3f4c280c45ec7da752c1f"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0b4a13b4-1b83-4d3f-b35a-4f09e6c3a800', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrG1CJ2Zt9j0hBuPji9B-emsOmjtBuSFHzLwjp8DukgqZBCUOHrTsrocNBiX6GGE1U6DyfoDN9FpC_KrS5_KXxZXuU3gqK1UTNnIgqQTrWr5UsdcinuPGTb8a-Soe0V_5Z3eztwC6__PQkQVBO-UYf_5nX2kF-ebmILQn2c6xvqS4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:47 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a75703e56601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:48 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrISPkSMWjoGTyx4tLGg6J3vgzLt6FKJz11lXVenRQ0dgc_mHGlMS0CUEp9YJFZ09_EDXchXVY2wz2OEUXX6amf1EYuUI9W4eQy-sA-OgLCaBMJ_nb4izcdR_P1Y-8AAoZ9sptjHx5jSqLseY0vYo4jiceNJvVxTTD_LnY_7jeFCYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:48 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=3038c15f-0539-4122-af37-29c9f13d92de&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a7eced1a-b510-4584-9379-9dc40be28200', + '28812791-b9ec-449e-b425-0faaf6c51f01', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AsthYi3gJu1Ko7MnKbCGqvKuaJ_6AQAAAAL8itcOAAAA; expires=Mon, 08-Feb-2021 01:21:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:49 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT', + 'Wed, 30 Jun 2021 15:28:48 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b92ecb38b89be44d9cb95b743a779855-630801f917a4564f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-228e78b3405dd74eab0423452ae0b697-6cca923bb0f8b94f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7dc798adff04474d8ce0d985465fcd39-d440d5668af4f94e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:07.0140482+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:07.0140726+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:07.0140874+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:49.2322658+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:49.2322893+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:49.2323084+00:00"}], [ 'Content-Length', '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ec8e0fa5be2b9d4eb4243d960e979531-e508801306122144-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7df77b58bd80ee478eacb59bac81f64e-be7bd2247e2e774b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cee81b0f5728a546aa23fe8c7e097ad9-5169d7a2fcb25c4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f2ca1d3b22cb2f49b9772373c919ebf0-96e302239c359a4b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"5d9b00e8-da56-4a66-bdd0-97cd02f8b301\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:07.1514876Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"9b8733a2-fab1-4187-8d79-cf3683aa2261\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:49.4013994Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"5d9b00e8-da56-4a66-bdd0-97cd02f8b301"', + 'W/"9b8733a2-fab1-4187-8d79-cf3683aa2261"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3f8e5df94ebe1a4799f1b239fdd85188-e91aea6d5869744e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"2f261566-c9fa-4a03-91d4-1d7856a50155\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:07.1983395Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"66067df5-d288-4795-8ccc-18b5f27865d5\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:49.4519337Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2f261566-c9fa-4a03-91d4-1d7856a50155"', + 'W/"66067df5-d288-4795-8ccc-18b5f27865d5"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dc7f70e826305a4e89b57f56e352fecd-08ab70115d5b3a48-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"73c3dbea-b7f2-4b7f-9d86-30f26ce514b0\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:07.2439763Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:07.2439763Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"920a6dd1-712b-4d93-b705-b71e2bb22c83\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:49.4992207Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:49.4992207Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"73c3dbea-b7f2-4b7f-9d86-30f26ce514b0"', + 'W/"920a6dd1-712b-4d93-b705-b71e2bb22c83"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2d67f5da99e7c14ab719fc3b47939cae-78ae06047c938e40-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"5e0869e6-93f6-47bf-a75e-b2360dd46112\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"a9096f2e-1347-4dc2-a7fd-b1b3da07572e\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"5e0869e6-93f6-47bf-a75e-b2360dd46112"', + 'W/"a9096f2e-1347-4dc2-a7fd-b1b3da07572e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0edca7757241b741adba4216d59ac8af-078a9b0827e61743-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -206,11 +301,13 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"b84c5bc4-4c64-4e25-8f6f-8134d12181f4"', + 'W/"c8d7d0a7-9ec8-4c02-a829-f3b955dace3a"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-71b7929981172b4890a49f665f534503-5f7b77e5e8356d45-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -220,27 +317,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"3053caff-3e00-4496-a6b1-8688b2ef94cd"', + 'W/"f7899378-cce2-49ee-991d-97675dceb5b4"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fa46bfd15f38b845b581f0c72aa43306-72c56151ce7c6e4b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor') .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"3053caff-3e00-4496-a6b1-8688b2ef94cd\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"f7899378-cce2-49ee-991d-97675dceb5b4\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ 'Content-Length', '234', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"3053caff-3e00-4496-a6b1-8688b2ef94cd"', + 'W/"f7899378-cce2-49ee-991d-97675dceb5b4"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6976ea41d454b64cb9e68c85f073a9a0-1003835922dc5049-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -251,8 +352,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-153b7f7ddb7e0d41a6a96c45db16c069-b0ac82fccadd5d4a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -263,8 +366,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9a0660063ec34b4b92a282874c38b3cb-b06b43af5240ea41-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -275,8 +380,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-82862e7e9ad0004aa008843b2194d7e8-05ff94953097c641-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -287,8 +394,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-07e37a05202add41a675f4277105caa7-4b5576729809044f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -299,8 +408,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-61f8e5d59c53604d89634d639b017712-64d49d637176334f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -311,8 +422,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-79f79d132945d948b0a4192c6856df46-fcd7e2792d4c954f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -323,6 +436,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-42ab1af6aa03be4eb9cf21052fa9bfc5-99f6a50e2b979b4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:06 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.js index 4702a3274c73..653d8ccd3e81 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_conditionally.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "89c8510e50ad64390d5738d67fff8b9e"; +module.exports.hash = "5fc8122e3f40186b372de67bddbcec1a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'faafc642-de39-4b54-b1c9-fd89643c3201', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrCk3TbxocEZeqxguY90T6RriHw9nYTTgqpFPEk2UHQtDgI3wcv7YMaMopYdU0bSC2u8w0HVIZojzs9Xjfdc_AFlSZI_UBcADsf_zMKIlO9gSbFNUch4EgwsdjPoZ7bVqGB_UppIxiJgT37_fb_1Ie4XaZZ7vAn9AArfPIKcts3k0gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:51 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '52e735e3-3a5b-40d5-b0b0-e745600a2901', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevruuIKFgA70mj4Du3b1v3BUlsIm2OebnOiHEuFqKcyYuPou4AD1nYejFVxY2XZhUy7Qxg-pRtJkNn7Yfut6soWQCHrFvRQpkuPo3MdoWg79TND97PqEeaLk4fDENYQeNQ1pwBqCmSbUY9iBGE-ns0SzjJN07NOz9eGzJZ6WP4X47ggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:52 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=547f7aef-681a-4902-9f9e-2cbdfcbcfada&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a8c765c2-d57a-4fda-a02b-8379e8679600', + '5135eaa0-e541-4f41-804c-684b82196a01', 'x-ms-ests-server', - '2.1.11384.5 - SCUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AonTK3yt0hBLjX2uphMrx7-uaJ_6AQAAAAX8itcOAAAA; expires=Mon, 08-Feb-2021 01:21:10 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:53 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:52 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-301fff964d45ee4bb670982ca2157fa8-8208d80290dac640-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ca93fe2947520f4a83495d1c244819e3-32c13ee93c537242-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c6a8a6f33b3b1644b73edfb2b46812c8-92c4ef251d65a540-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:10.7120354+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:10.7120613+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:10.7120808+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:53.2278857+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:53.2279086+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:53.227925+00:00"}], [ 'Content-Length', - '509', + '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9903c967ffc9f74f83545c597a52052a-16f0c10dbaca8d40-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-a12741dbbe37c04e95563f1cf00f7a9d-e7ba8b9d80bb6740-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0ee240b7a305ae4c9bcb4c2da2cc7ccd-fd5a8af3a2831d47-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-1e780f456276384ab6eca525a576bb4f-7ad9935edcb9d345-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"f20f122b-f6a7-49fb-b9b7-196099cbfa68\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:10.8398899Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"e9a7f499-8a3a-40eb-bfd8-86da381f3589\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:53.3942323Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"f20f122b-f6a7-49fb-b9b7-196099cbfa68"', + 'W/"e9a7f499-8a3a-40eb-bfd8-86da381f3589"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5ef00beec77bd94e9e47aece173b010a-2581e88382fb024a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"1f1eed01-973c-4557-99ec-c35fe216a04b\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:10.8803600Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"2eecfe36-5536-4917-9499-03b368434975\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:53.4432266Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"1f1eed01-973c-4557-99ec-c35fe216a04b"', + 'W/"2eecfe36-5536-4917-9499-03b368434975"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b6afab23b2b2df4cbac20283b66f200a-072b7ab63ac5f041-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"e5d0d88d-1eef-41e5-b974-918a4b0afe96\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:10.9208598Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:10.9208598Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"0e4bcc63-312c-48f8-8cfa-7bd21ca3d198\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:53.4959519Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:53.4959519Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"e5d0d88d-1eef-41e5-b974-918a4b0afe96"', + 'W/"0e4bcc63-312c-48f8-8cfa-7bd21ca3d198"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-952e120e82f5cc4bb4b1fbd5bd6ff692-7f793207deabd749-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"d6e7715e-30da-4881-9aca-d2366df76831\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"e1f540f9-8d09-4d99-9a77-14eec13bea4e\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d6e7715e-30da-4881-9aca-d2366df76831"', + 'W/"e1f540f9-8d09-4d99-9a77-14eec13bea4e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-834095a1eea43c4186c421f0334782be-70d99b0dce5dfd4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -206,27 +301,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"d96439b5-b54e-42f2-8cb3-f659919e52c8"', + 'W/"62d6cef8-3bbb-49a1-acaf-09d905a68922"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ab2d7a3bcbfea848845cb687651e317b-ac6ba8a4a05a3e48-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor') .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"d96439b5-b54e-42f2-8cb3-f659919e52c8\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"62d6cef8-3bbb-49a1-acaf-09d905a68922\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ 'Content-Length', '234', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d96439b5-b54e-42f2-8cb3-f659919e52c8"', + 'W/"62d6cef8-3bbb-49a1-acaf-09d905a68922"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7f51fef9283fe54496c847123101631e-4b25ec0f8c78984a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -237,8 +336,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-24f6d9335aee784690694be0ecb518fc-3513c5445f826c43-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -249,8 +350,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d9e0c6abd6c39d4daa465b5f041ae893-3872ef38ad6f174c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -261,8 +364,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-07acc26103067c4497ea6c64494af027-ac65b9dfd19af140-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -273,8 +378,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-590256ce5d4e3348bbc2e74126a60f31-648de2225009ba41-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -285,8 +392,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-607a937e245ec748aadae3c367e1f424-273c92eed56bbd4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -297,8 +406,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6051cb302ec5d24790f36a4bcbba0f1d-780d7acc5835d44c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -309,6 +420,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d6520e6f10bc0e4da311b4303427c493-e18b1362104d2747-01', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.js index 59e2fcccd53c..e1239596ff8b 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_invalid_patch.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "602638a60ae15eba8de148fc58b4f412"; +module.exports.hash = "c37acee635b4f150831132a46b16feb8"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'be67e5fb-8378-41fa-b830-e0f1937cd000', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrMNoQRvr-mhXKGeHQtErPml6U9pnul_CyQ08xCP0Gbh4PTHQhW7mkSvzq5jVE8lAGk9B4DsP2A6aOxQzqHWn-ZtwFa9r_zpsR662wlDGSlZhA_msYxNqxCX6AQ30LAshR71Xx4TQowqUYUcAOFkx9IhKzTIo53UDZ3NvscLCmKcsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:50 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '5135eaa0-e541-4f41-804c-684bef186a01', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAToOn48vrPcgBDuMvpJ2rCV7eH0wAavJgRNRBGf-OlYRlbcUaqToB7of-x0qLc2IHT6yomE1BDoB433pQenWyNKufm6g8IzCQtsFobrUSEtqxJ0LtZpIDr8iugncUPnAeMOjwzvP-IVzC1KMtpIw0u1ibf0jGFv1WAevTr4WjhEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:50 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=5dd13e2e-94e6-40f7-92e8-7b5509d1a54a&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '5c1f8977-2980-4c20-952c-3bd0000a9000', + '7c9f8702-87aa-46a2-8483-efd0e9b93b01', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AsUz39yCYcNFvUazxMmHcZKuaJ_6AQAAAAT8itcOAAAA; expires=Mon, 08-Feb-2021 01:21:09 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:51 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT', + 'Wed, 30 Jun 2021 15:28:50 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8a40b94e4ae01340867e0867381b98ca-dfe23165d5df9140-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8aeaa0d5135ff349b573616c9ef9f732-16e83f8004a2654b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-01e64d47c51df1418db13664a79a66c0-44337d3e748eb649-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:09.4990218+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:09.4990469+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:09.4990618+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:51.76583+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:51.7658534+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:51.7658707+00:00"}], [ 'Content-Length', - '509', + '507', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b79e53007a8fbe4cb3c2f9741f1b7243-7a34b39dfb20bc4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-52d84fe0048133498b16247139b42c6a-604c8252a4948846-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8c3c7783f4a68a469148cc8a2b5536a0-5ba4b42afa7a744b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-95db01045203f94ab6962e92e453497a-b731f84aa7fd824b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"7ef6d548-9773-4a8d-9fb7-59b3a87718c8\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:09.6375477Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"97621e35-b0ec-4264-a585-722396586a0c\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:51.9456769Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7ef6d548-9773-4a8d-9fb7-59b3a87718c8"', + 'W/"97621e35-b0ec-4264-a585-722396586a0c"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7c679bb0dcf99148801e6cd3cfee8774-fe51c201931f5848-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"0d272ccf-9ff6-4c80-aba2-5ef39f900807\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:09.6840197Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"8cb49f5b-8746-4dc1-8eef-e7841328c16c\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:51.9966171Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"0d272ccf-9ff6-4c80-aba2-5ef39f900807"', + 'W/"8cb49f5b-8746-4dc1-8eef-e7841328c16c"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2b5ee7b43b5c854cb03ba51b563a7f28-8589deeff858644b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"748e8676-f990-4fba-bdbb-1ffaf27b5ba1\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:09.7282476Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:09.7282476Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"e96014c4-c18e-4ad2-bea1-999c329ba240\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:52.0468913Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:52.0468913Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"748e8676-f990-4fba-bdbb-1ffaf27b5ba1"', + 'W/"e96014c4-c18e-4ad2-bea1-999c329ba240"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7ad009c5427fee44b57d7da493c36eef-b7d59275fb1faa4b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"569d82a5-11f3-4835-88f8-27ad42471ac0\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"2f1321a7-0926-4371-ac9f-bcd963f6ae38\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"569d82a5-11f3-4835-88f8-27ad42471ac0"', + 'W/"2f1321a7-0926-4371-ac9f-bcd963f6ae38"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-75befa2c6f5c6e4789234fe3681b7348-4a7fada8d02b234e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -209,8 +304,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cc951bf85ce51c41b6ee268f5f5aa7ea-5d93e8073f733549-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -223,8 +320,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-903372a35d92b645a20ea8c78c42344a-bd5e4e9b239c3747-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -237,8 +336,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c766af36065cd34ca5c865725ee09528-9799bcb77d4d9a4b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -251,8 +352,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9d0ca317267084449eb81a0a8e8684cb-779f1f4723255e4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -263,8 +366,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4fe11ed40de002419bdd045e7e150f58-07d866c019a33d44-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -275,8 +380,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e2642203cc25334dadd04873d839ecc8-e84625fbf246ae43-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -287,8 +394,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5f6a98b6e37ad24a8c8ab030fd072cae-628046f067a9bd47-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -299,8 +408,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c67b0296ca1d284ea939f75ef5370948-cf66222bf2b54145-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -311,8 +422,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-42ed6b2dc4e5e54e8968a29f34d04867-deb53ab22e76a240-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -323,8 +436,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-92e5cf24ec6a794794c87f110a3aab4c-5b58bc91173f6b40-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -335,6 +450,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cea9f6c1204b4a4dadeeb4d1785e5b4a-c40babed273af744-01', 'Date', - 'Sat, 09 Jan 2021 01:21:09 GMT' + 'Wed, 30 Jun 2021 15:28:51 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.js index 4f97aab621e4..d59f3e0f192d 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_multiple.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "e0cf699f22058928257c8bc60c99fb03"; +module.exports.hash = "dd24724bafdcbbccf0a057b302a22323"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '67ceb7b2-b8e2-420d-bf7d-86a5fa484200', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevre23Gqy6zna5TcY8AC4d5ISKq0H9rNRJvIfPfNEtobpc3zDwcArjaELCfB8fikMq8oL8TSbX9P_wyzBEFXPgTKmWgzBIBkJtfhMCKWgrcFwRMRIq9VaXFVidUZzHtjEzyQVBxEFEHzj2O9rDFNDKwKJPSjRUwUJ87VD3KeOfC1mUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:49 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'f75e896d-b4c4-4e8a-8d17-6ea683142201', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrEC53574b9xe_Xf79fBxbazhSHzh4VwsSrC5uG5jHmq7sjCTBr7tzaSL5jjg5f0eRZHXuLTujxBUzXumkLq7gbS3h5vudV2PZOjdt51qtTdJckHQW5FKWgCfPHrlpcHsSqOQVxgHKx6foaQoEn5oHZlaRl_33HIvQq8JhUwUfen8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:49 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=b515b6a7-bd76-4314-ad92-5780a8c1e2bb&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c72a073a-ecc7-4329-9bd4-c090017a8e00', + 'ce8f2d6d-3a76-459b-83ad-e4041a906f01', 'x-ms-ests-server', - '2.1.11384.5 - NCUS ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AgjfV9uha31NnNZP4Q8xNTQ; expires=Mon, 08-Feb-2021 01:21:07 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:50 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:07 GMT', + 'Wed, 30 Jun 2021 15:28:49 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2cdbb03b54f5ae46938d9fbd19253216-97e45dfd3192284c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:49 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9a31b0f1bc49c043bd31e3dd621ed1be-a88d32211ec4a348-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-88ba4b2c20c18342abae28c2bdc12eed-be271b242dc5c849-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:08.2725036+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:08.272524+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:08.2725399+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:50.5057741+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:50.5057993+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:50.5058148+00:00"}], [ 'Content-Length', - '508', + '509', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e8904803654886408ef8869b7d38121f-f681304d53e8e447-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-125eff6876fbdd45bfd31b3c4af4a69f-7fad52e9da64ef4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d712adc4c2a9414d9f5bf92bb4c52861-fb8078e4a416e548-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5a68aec39c66e34cad0f29a3b2e403ba-67de04832617a548-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"32f37085-32c0-40a6-8b49-ae8d96011ec0\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:08.4448583Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"59f526b1-e972-4415-95f5-a28a432f6d4b\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:50.6763817Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"32f37085-32c0-40a6-8b49-ae8d96011ec0"', + 'W/"59f526b1-e972-4415-95f5-a28a432f6d4b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e9d4e88b4f38724fbac6154381558978-90f703bdf0ab0a40-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"c7e2d68a-ae50-4211-aa25-1fc89b1cf6b6\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:08.4979856Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"3588c048-81a7-4339-a2bb-1a45d8cd6b97\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:50.7269110Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"c7e2d68a-ae50-4211-aa25-1fc89b1cf6b6"', + 'W/"3588c048-81a7-4339-a2bb-1a45d8cd6b97"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-df4e776599d5874f8da6d009601435e6-757dda50e4925e45-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"cf1c9ea2-15ab-41b6-91fe-2246965e46fc\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:08.5461545Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:08.5461545Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"986992d2-67db-4dbb-9979-d6e48a522f36\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:50.7768284Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:50.7768284Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"cf1c9ea2-15ab-41b6-91fe-2246965e46fc"', + 'W/"986992d2-67db-4dbb-9979-d6e48a522f36"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fc13b1afc81e4c4690101868790cd74d-67e666959e251c4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"2f320db9-b663-49fd-9ea9-50f583d438bb\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"3221e2d2-9293-47ef-b1eb-108b4459bf3b\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2f320db9-b663-49fd-9ea9-50f583d438bb"', + 'W/"3221e2d2-9293-47ef-b1eb-108b4459bf3b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8bb2f6ec6494a947bc9df2a5fe290d8c-714268548a92eb41-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -206,27 +301,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"80a9ae63-ff90-428e-bf1e-c1f9721ebf19"', + 'W/"d739ec98-41df-473f-aba2-9e061daf039e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-50845447669b174c9e5ad37d94b04b42-4dec2ea470cb534a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor') .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"80a9ae63-ff90-428e-bf1e-c1f9721ebf19\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin"}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"d739ec98-41df-473f-aba2-9e061daf039e\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin"}, [ 'Content-Length', '208', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"80a9ae63-ff90-428e-bf1e-c1f9721ebf19"', + 'W/"d739ec98-41df-473f-aba2-9e061daf039e"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-d428ca663b3cf444a67593d94abc1711-a225366b5ef9034f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -237,8 +336,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f5aa085fb6d9a342b41c08f44712a53f-5dc43c3bc1e6d347-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -249,8 +350,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-06e52ba9aa28e941b4a37028e6808d96-87a5c8b344bedf4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -261,8 +364,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6aa5ee0095dfa34689855b7fa3d6c306-98c7467b850ae64e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -273,8 +378,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6f8d8500752d3842a4b53a74c5afd41f-1abf8d1e64cfd846-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -285,8 +392,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7fedbe3cdbf0e4468d8dd1bcfe2a6951-7492c08ebc1bb74d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -297,8 +406,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cd6ac6eff446f04396163e59e0dd2ad6-bcbe28b2601ce644-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -309,6 +420,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-069f46b51c7b3c4fabb5b16c4eeefd8b-89ffe9ae58491847-01', 'Date', - 'Sat, 09 Jan 2021 01:21:08 GMT' + 'Wed, 30 Jun 2021 15:28:50 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.js index bb17f3544d9e..126e3ef571cc 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_not_existing.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "b8763703bd72341942086fb09252ac72"; +module.exports.hash = "4a6168918c787c67918d1cb74a626f62"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '0e4840b9-4f39-47b4-82ff-288d80c22c00', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:54 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrBQcs2mTa8JohQpFwSw4JTv8FFkXnjyc4fu168CTSjKRJv-1R4Y4LZF4h6jroqTCMwpihWovItXMo_7AdwLKinBU_gQbx_vRBfeALvJuOxJ2oUXXjiWAivmCxHieiLPAnTekd7neT4jkMGgHFlPg_vZW2e-8J3Tl7Kz9PPeNPXMggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:53 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '4a52fb20-d7cf-4bb5-9204-2a61f4e58401', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:54 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrsuE9hi7FRhimDEFQmfDj5g5A1yrUwOgLW41E7xq5q8Xm8JSULQk_7d2186yeGUB2rRiD3f8kUfbuuzC1DQmrVAPqpcMhREgUVwwYDjsoQy_hmTQrqcgUSR68G7OXdBEsWDE8GLKLP-RU033NniuK750GtjgoJZM8YTg4KTLiUOsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:53 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=93a5fbd4-dd95-4138-a112-575f71f6499d&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '1c0811a5-de1d-4be4-9beb-2cf3163a9500', + 'aa2c3d00-0907-48b2-81d0-a35832014301', 'x-ms-ests-server', - '2.1.11384.5 - EUS ProdSlices', + '2.1.11829.9 - WUS2 ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlHr6ZSa4HdBmuU1s5EnYyI; expires=Mon, 08-Feb-2021 01:21:11 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:54 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:10 GMT' + 'Wed, 30 Jun 2021 15:28:53 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8079fd255a79e048925be195a0528352-25532d1d7502f347-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ecfc9278cdc3ff4bb1cf87beef44d519-85f639634a647442-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0c4621779c830544a7e15ec79d539374-7c588c8b70cd444e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:11.8668491+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:11.866874+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:11.8668879+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:54.435304+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:54.4353276+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:54.4353453+00:00"}], [ 'Content-Length', '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c4053cb34def1e42a14fc8c48db09296-755053f690ebf24a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c5be249f761eab40ac3fb32009fcac24-ebb878c6f4484c41-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c83e1e3ea9ab654e851dd2db1cc6ce60-ba9050f4251f914c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,56 +216,64 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-4cfff6fe79cb0f43a7b155f143497479-8a8e1eb61885d248-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"d97c1458-0d71-4ca6-ac02-4689ac7d9a8a\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:12.0060230Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"02370738-5248-4c60-b31f-c07139e1daa8\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:54.6103691Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d97c1458-0d71-4ca6-ac02-4689ac7d9a8a"', + 'W/"02370738-5248-4c60-b31f-c07139e1daa8"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-2ceb245670140443887ebdf6dddf25d3-813aa17971853242-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"8fee4b5b-cd3e-47b2-a276-8825d6506d7f\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:12.0624278Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"830d6cb4-a217-4eb5-acee-b1ece2aade08\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:54.6600309Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"8fee4b5b-cd3e-47b2-a276-8825d6506d7f"', + 'W/"830d6cb4-a217-4eb5-acee-b1ece2aade08"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ddba4c434c62fb42a844bf620cff04f8-a527ce5ae7178a45-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"0b9cd86e-2e40-47c3-9a26-2f447c84852a\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:12.1016752Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:12.1016752Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"f21252b7-e409-41dd-9f7f-84aa0fbdeb4a\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:54.7093489Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:54.7093489Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"0b9cd86e-2e40-47c3-9a26-2f447c84852a"', + 'W/"f21252b7-e409-41dd-9f7f-84aa0fbdeb4a"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8a748355cc924343b99afea6c46482a6-54abec6ff8c87f4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -193,8 +286,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5b598f8c416d7f4084f8026a649e39c2-d2bc8ab0930c4b4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -207,8 +302,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-8b4626d08182d44fa34230694a83d4a2-84a1a5d985cd1c43-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -219,8 +316,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-54812980c3f97545b1dea406a873c71e-71ec7ce0f9ad624d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -231,8 +330,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-feac90d627cdf84588cca2e3cc3efd0e-059c87d157e1f24c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -243,8 +344,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b9a8e7451a92a54dadc5f01326a3e437-41a7ca405f39c849-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -255,8 +358,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3a940921c58c314188c2467201eb493a-79239643edddf247-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -267,8 +372,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b2ba97b880a91d4491ac6e3dbbc44edc-a1c98e15905ffe49-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -279,6 +386,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-cf3c5228b2c1ed46b2d6f2902e34c9a4-5c5dd959ca194a42-01', 'Date', - 'Sat, 09 Jan 2021 01:21:11 GMT' + 'Wed, 30 Jun 2021 15:28:54 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.js index bc374dbc3419..75c7364a72a1 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_remove.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "7706332ded220c3d661e1b49550a6ab3"; +module.exports.hash = "e8977a3be383b61ed89a8722e18cf0a7"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '6bce208d-98d3-4ef4-a8e8-0c8ca2f0fe00', + 'x-ms-ests-server', + '2.1.11829.9 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:46 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAu3QJmE-duoC6H2g5uGwgZ0I1N5MDOnRWr4KCAqRts471kmQh2GPNZUwAKRdDMR2um3uJ-P8ah5R94T5Q2nE9-d8GfY5GVJv4gWZfOfZdyqJah-kunHJ9ZB1d_sN6Vh6S9giVlU01EDdfZseax3L5aeWhpZ6sn-zHfTIEMJak-4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:46 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + '30ded47f-c75a-4cb4-aa53-0ac936903701', + 'x-ms-ests-server', + '2.1.11829.9 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:47 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrjn-mYukqW7loPRdBR6o4EZIJF-vvEa-LAYc6bJaYKzGg4W1wD8OB5eXjtBm3RW0Mj1Takb4HvdD7hVmJhbaOAR0-tVUuQ8V6bZAuAR2l9i-ygGpHiCfs_dWwGCm8dfQ5gJ7P_TuXWkdvamh425mIAJ5IBwUIOtjA4RxzKf6d2SEgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:46 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=a66930bc-5432-4932-81db-8b4595db9197&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'c4dae692-1b9f-4d65-85be-4076eb258f00', + 'c6f9394a-e669-496a-b7cd-a75754e46601', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - SCUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Aqfau9knIIFAsxqWihri894; expires=Mon, 08-Feb-2021 01:21:05 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:47 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT', + 'Wed, 30 Jun 2021 15:28:46 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c5b8507b690d674885edc579287a4582-960ed8b372031749-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-31edab2ba9a5a6469c5342367911c4e2-e41caf6cc266c040-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c8e166c959ffe746bbbe6a8483d23746-160e1ac2da8a7340-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:05.7962065+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:05.7962299+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:05.7962463+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:47.6623291+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:47.6623522+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:47.662369+00:00"}], [ 'Content-Length', - '509', + '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-12e9d1c64ce8d8458e90985641f6f266-148a795d76411e4c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-82fb2a8776ddd0418eee3fa56cbd5985-08caaf601007d64a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6c9d41d4e5eb6047ad7c5574289a11ce-4120a3d095ae2945-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-35db6159c4e2a74087b1d462221a2ff1-8bb8ee3353949e42-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"2fdf31cc-4529-4c80-93e2-f927b7a65daa\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:05.9292452Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"fee15aa6-510d-4a49-8cb0-97f6c9e26a09\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:47.9725129Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"2fdf31cc-4529-4c80-93e2-f927b7a65daa"', + 'W/"fee15aa6-510d-4a49-8cb0-97f6c9e26a09"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-68a3412d8f9d2d49a47277b716c81a46-973c7b6df133bd42-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"db521500-a8c5-4d94-831d-665b854e6875\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:05.9714626Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"c4b98d9f-a4a6-4df4-9d0e-0835f17e1344\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:48.1144276Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"db521500-a8c5-4d94-831d-665b854e6875"', + 'W/"c4b98d9f-a4a6-4df4-9d0e-0835f17e1344"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-60c2ad93d1a4464c848e7061c64ea40e-218f2e3a7815534d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"fdbb4ffe-6611-4c20-aacd-4123e803cadb\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:06.0266147Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:06.0266147Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"706e3585-f2a8-41ef-9c4c-81ca916e5eed\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:48.2184080Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:48.2184080Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"fdbb4ffe-6611-4c20-aacd-4123e803cadb"', + 'W/"706e3585-f2a8-41ef-9c4c-81ca916e5eed"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f45b4940aeea7643805bfedfd02a126c-7b7639198880994b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"82648b9f-b10d-4914-bb87-0893473c00b8\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"bc589506-e0a3-483b-8fd1-bd69f3e34bba\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"82648b9f-b10d-4914-bb87-0893473c00b8"', + 'W/"bc589506-e0a3-483b-8fd1-bd69f3e34bba"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fc4c37ba83eefb44a68086fe1339eb00-e0ac63918b0ed846-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -206,27 +301,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"113401fe-5753-4cc1-9f61-51c6c4a0fbbf"', + 'W/"9aed7b7c-7e7c-4121-9cbb-63865689cc71"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f1c512b096282e449ef2f6fbcd08f06c-fea937133313c745-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:47 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor') .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"113401fe-5753-4cc1-9f61-51c6c4a0fbbf\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin"}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"9aed7b7c-7e7c-4121-9cbb-63865689cc71\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin"}, [ 'Content-Length', '208', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"113401fe-5753-4cc1-9f61-51c6c4a0fbbf"', + 'W/"9aed7b7c-7e7c-4121-9cbb-63865689cc71"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-153ef5058b9f33468d2e6f61e318e905-cf3d544bbce54249-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -237,8 +336,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-65f4429f9e187b4cbb38210676c31664-1c83120c765ef74f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -249,8 +350,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-83c8cdb9f003684fa7e1e94f7a48cb39-cf6fca34ce9b384c-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -261,8 +364,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-52f6d14636786e4d98b248e6cd5dba79-c4fdfa79f091c447-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -273,8 +378,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-c7dd8967c5ebe243bfe0ef8095480372-f6887b337cd3bf4a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -285,8 +392,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5c383944315d664d83254dcf1d07f789-3f4489cdf3200140-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -297,8 +406,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-26f320c047fbdb42b6f7dfedff8bfeec-fc721849df260743-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -309,6 +420,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f8b922c4ca5d564284bcc47428f980a8-6802294bad766f47-01', 'Date', - 'Sat, 09 Jan 2021 01:21:05 GMT' + 'Wed, 30 Jun 2021 15:28:48 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.js index 5234d3b088dd..079035819255 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_update_relationship_replace.js @@ -1,11 +1,82 @@ let nock = require('nock'); -module.exports.hash = "c8b28bc0231046eccf0cdec19b4094a5"; +module.exports.hash = "a2de4f66cd6bf2158d1379742c32da51"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'eae1b98c-4180-4b02-9845-e2802c626701', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrRUxmrQ05QU24zbvzU9ki4bwocl1tGcgXrQ-XPzu-0zdiAgjfsaY_6yxVvTYqf5fLOYvcSg4-j9jhokoakazG4rZMYKXy51uBbqyl4xKL9oz1HFXMgTtbmcJSKBnoxH6fNZUkRbYQ0i5zR-rpygMptbTKhZfHv-bE4Mn3rNzIb4ggAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:44 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'c6f9394a-e669-496a-b7cd-a757ede36601', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6dWRPQRJn0YV0CQ_4W_ndCCZDOOgek7Vb5TyaZ0y0Og5CDOYwP1hPiJjI4Zd4iVo_hZyffSef7y2ZGtJM71avyewqYeqmX_qQhpgdhBjwIhEwjzJafeVF7YmMcw0ONc0Y-9dlL22Y4rAvdpl8ReWO5xDaWHOEEQwyYRXkH_SQpYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:44 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=9d22daaa-c2e1-4113-9513-792b095edc6a&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -22,17 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '9dd4175b-b622-4a25-9260-abc74f868b00', + '898a641d-360a-4605-97f7-63c1f34e7401', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=Am0tKguCH9BGrTvMdAyD-MWuaJ_6AQAAAP_7itcOAAAA; expires=Mon, 08-Feb-2021 01:21:04 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:45 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT', + 'Wed, 30 Jun 2021 15:28:44 GMT', 'Content-Length', '1325' ]); @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-3fbec7ec8c6c724691b7ccec7fd57cce-1b7db1ac22355a44-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fe45cfea50ead44cbb18de98cfa163a1-43bd863fe8164e40-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-02f1fd9412860247a2ff59e48d68ab8d-03e3429f71c33743-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:04.7091673+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:04.7091977+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:21:04.7092158+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:46.0694646+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:46.0694894+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:46.069506+00:00"}], [ 'Content-Length', - '509', + '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-5cdd1a5efb603f4a9b3cd4ac90707430-d5c4cf58cadc7745-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-547815a206e51c468d3b57ff6b17679d-38c76333e3ed3c4f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b2098533f4935c478e2f6def81ae5b7d-cc0dea2690503f4d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,72 +216,82 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-bd1a58ca5d0eb140b8b69f41a8122daa-711bdacef4a9234b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"d75f23a3-7070-4472-b113-f3d283a3f7f8\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:04.8480491Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"14b2c32a-a0b1-4a8e-9da7-6be1ad866025\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:46.2378024Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"d75f23a3-7070-4472-b113-f3d283a3f7f8"', + 'W/"14b2c32a-a0b1-4a8e-9da7-6be1ad866025"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0292a3c0fda68848855bda482355ea7e-f1a0a22ea426d046-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"be5cbccd-69c1-4247-84fc-f8e9d706b710\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:21:04.8880142Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"409e19bc-bcc8-4fb5-96b0-b347b7dc9187\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:46.2883909Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"be5cbccd-69c1-4247-84fc-f8e9d706b710"', + 'W/"409e19bc-bcc8-4fb5-96b0-b347b7dc9187"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-16d25f1cffb8be4fb10ba208fd0623ab-d90be43503f7754f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"fa3d1a0b-014c-439f-af0a-93a66fbcb48b\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:21:04.9348754Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:21:04.9348754Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"a808e7cd-d6c4-4056-80d4-1c1a404ec6c4\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:46.3383865Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:46.3383865Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"fa3d1a0b-014c-439f-af0a-93a66fbcb48b"', + 'W/"a808e7cd-d6c4-4056-80d4-1c1a404ec6c4"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fcdf7f0709c5ba4bb816f785d255d604-c562223c2f667f4f-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"7d050fef-1555-4d21-9f92-8854920327c9\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"10ba4217-9f67-4f23-90e4-7f288dfabe72\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"7d050fef-1555-4d21-9f92-8854920327c9"', + 'W/"10ba4217-9f67-4f23-90e4-7f288dfabe72"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-69f6b4529c56b2479aa53edac1469150-acc82d782ee1c44b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -206,27 +301,31 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'Content-Length', '0', 'ETag', - 'W/"dcfc1bf0-8819-47f1-b57e-41b436e4fcff"', + 'W/"a9c0afee-4e8c-44b8-9e5a-827317ef796a"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-7f7f1ea4b3a6644d981e785a14ad0b94-327d1683e62c4545-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .get('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor') .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"dcfc1bf0-8819-47f1-b57e-41b436e4fcff\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"a9c0afee-4e8c-44b8-9e5a-827317ef796a\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ 'Content-Length', '234', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"dcfc1bf0-8819-47f1-b57e-41b436e4fcff"', + 'W/"a9c0afee-4e8c-44b8-9e5a-827317ef796a"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-316a7bed1457354887d44efbb681496e-2962cbbbb3e71a4b-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -237,8 +336,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-494beba55e728c4db3b4842dafeba635-7f5027010c52584e-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -249,8 +350,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-fc0ea80f87e3c843856b82d698d3966e-951b6e3b11b53549-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -261,8 +364,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-08a12ebb0f6f6c44b3f8499286866496-744e86769edd744d-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -273,8 +378,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6f5a172296c2a546857bf86d0cd7aab7-6170da2654441946-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -285,8 +392,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-0c945b2f770e694eb75653ec6362937c-a43b5e95fea35645-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -297,8 +406,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9ab4ee78b3b07142b8dc5dc9d4abdf1f-c4197d2ea90c944a-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -309,6 +420,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-88442bf44526d5418189a5deb4fc2671-80c644045b431d45-01', 'Date', - 'Sat, 09 Jan 2021 01:21:04 GMT' + 'Wed, 30 Jun 2021 15:28:45 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.js b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.js index 8f82697e5107..4e0691abd20b 100644 --- a/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.js +++ b/sdk/digitaltwins/digital-twins-core/recordings/node/digitaltwins_relationships__create_read_list_delete_operations/recording_upsert_relationship.js @@ -1,18 +1,87 @@ let nock = require('nock'); -module.exports.hash = "aab81537a40e288c2cc7f7089dbc9fc0"; +module.exports.hash = "4eb985df22e4549f843fa7cc3279f1b6"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Fdigitaltwins.azure.net%2F.default") + .get('/common/discovery/instance') + .query(true) + .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/v2.0/.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"]}]}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b3a48b88-78f7-4a78-aa7a-9b9724633700', + 'x-ms-ests-server', + '2.1.11829.9 - SCUS ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:39 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrKdDmSwLpjwyQPTQIpUjd_cJJ87aBPMwadcu_rvJqhtMGFTpNsdRuVud41tV9fqAWGc4lJBQJx4AB_EcLeDgJspl9zM7uNpkeS9eYRvfVIcSCM9MQP274-FFIOBjF91KaBSHfU89NOWU12zV6g_gAyVwA_DDxh0ByyDtE1u_3QlUgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:38 GMT', + 'Content-Length', + '980' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .get('/12345678-1234-1234-1234-123456789012/v2.0/.well-known/openid-configuration') + .reply(200, {"token_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/12345678-1234-1234-1234-123456789012/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/12345678-1234-1234-1234-123456789012/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"}, [ + 'Cache-Control', + 'max-age=86400, private', + 'Content-Type', + 'application/json; charset=utf-8', + 'Strict-Transport-Security', + 'max-age=31536000; includeSubDomains', + 'X-Content-Type-Options', + 'nosniff', + 'Access-Control-Allow-Origin', + '*', + 'Access-Control-Allow-Methods', + 'GET, OPTIONS', + 'P3P', + 'CP="DSP CUR OTPi IND OTRi ONL FIN"', + 'x-ms-request-id', + 'b1b01582-f8fa-460c-a911-28f47d6b3801', + 'x-ms-ests-server', + '2.1.11829.9 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:39 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrvaSUK98RcRkT3jBfrjRQXxJo8max3b9otkLmC8XhJywHPX_d5rIInihvtrtLRDvKvDZ8uBEq55XJ2O8tpSgB8PR_TT-07D-1e6pAN3Q3m8Imke7zF_GAPUTgHwEvSSBwae4SuknmG4joYbiMMfPK5ela-d0C9zlXhxKP5Hb2d0wgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Wed, 30 Jun 2021 15:28:38 GMT', + 'Content-Length', + '1753' +]); + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/12345678-1234-1234-1234-123456789012/oauth2/v2.0/token', "client_id=azure_client_id&scope=https%3A%2F%2Fsanitized%2F&grant_type=client_credentials&x-client-SKU=msal.js.node&x-client-VER=1.1.0&x-client-OS=win32&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=2|771,0|,&x-client-last-telemetry=2|0|||0,0&client-request-id=2f220472-de3f-4f56-98b3-6c86b1333fe3&client_secret=azure_client_secret") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1325', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,17 +93,21 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '6a16dcee-8595-4337-97d2-54e9a17c9a00', + '898a641d-360a-4605-97f7-63c1074d7401', 'x-ms-ests-server', - '2.1.11384.5 - WUS2 ProdSlices', + '2.1.11829.9 - EUS ProdSlices', + 'x-ms-clitelem', + '1,0,0,,', 'Set-Cookie', - 'fpc=AlAmovjFJJ9KpUBRgYKg2zQ; expires=Mon, 08-Feb-2021 01:20:58 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ag0kRxVsCxRKucMwVaNslXqpMdrgFAAAAHiEbtgOAAAA; expires=Fri, 30-Jul-2021 15:28:39 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:38 GMT', + 'Content-Length', + '1325' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -47,8 +120,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f9407a1551b83945912f12ede7bc18ff-3829ff87a5b0884e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -61,8 +136,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-ebc96298f94bc94b9a0b856e1cbf5d7e-614212302e4ec646-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -75,22 +152,26 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-30621f79ddd1f14e933e2670ef25b890-e081182f4dc28947-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .post('/models', [{"@id":"dtmi:samples:DTRelationshipsTestsBuilding;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Building","contents":[{"@type":"Relationship","name":"has","target":"dtmi:samples:DTRelationshipsTestsFloor;1","properties":[{"@type":"Property","name":"isAccessRestricted","schema":"boolean"}]},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsFloor;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Floor","contents":[{"@type":"Relationship","name":"contains","target":"dtmi:samples:DTRelationshipsTestsRoom;1"},{"@type":"Property","name":"AverageTemperature","schema":"double"}]},{"@id":"dtmi:samples:DTRelationshipsTestsRoom;1","@type":"Interface","@context":"dtmi:dtdl:context;2","displayName":"Room","contents":[{"@type":"Property","name":"Temperature","schema":"double"},{"@type":"Property","name":"IsOccupied","schema":"boolean"}]}]) .query(true) - .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:58.705503+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:58.7055238+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-01-09T01:20:58.7055397+00:00"}], [ + .reply(201, [{"id":"dtmi:samples:DTRelationshipsTestsBuilding;1","description":{},"displayName":{"en":"Building"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:40.010484+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsFloor;1","description":{},"displayName":{"en":"Floor"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:40.0105097+00:00"},{"id":"dtmi:samples:DTRelationshipsTestsRoom;1","description":{},"displayName":{"en":"Room"},"decommissioned":false,"uploadTime":"2021-06-30T15:28:40.0105253+00:00"}], [ 'Content-Length', '508', 'Content-Type', 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-dca23888ef49594fba6f446921a3c096-4a5ac4073c056a4a-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -103,8 +184,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-f9a85d4f7b08e64fa1fd76ec13b92597-7c36d28af5d9094d-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -117,8 +200,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-728a52592c31f447b8a0de7cadbb0e5a-b26c0d7bfa81cd43-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -131,88 +216,100 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc 'application/json; charset=utf-8', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-55ad22dd9f6092438566727aeae14726-af0902eb0b7f7c47-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1"},"AverageTemperature":68}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"5ef14b4c-4857-4351-aede-4d2d0322e085\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:58.8833363Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsBuildingTwin","$etag":"W/\"9d511cb5-8fb7-4d96-844a-5042287aad2b\"","AverageTemperature":68,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsBuilding;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:40.1818113Z"}}}, [ 'Content-Length', '261', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"5ef14b4c-4857-4351-aede-4d2d0322e085"', + 'W/"9d511cb5-8fb7-4d96-844a-5042287aad2b"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-063760707cc1ba4fbe4536d678107b4b-0b3ae9e566bad944-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsFloorTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1"},"AverageTemperature":75}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"74d2f8e4-1316-41ff-afb2-bdee2a5458b3\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-01-09T01:20:58.9336911Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsFloorTwin","$etag":"W/\"9bfe8de1-9054-4c5b-85cb-fe4653ea3950\"","AverageTemperature":75,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsFloor;1","AverageTemperature":{"lastUpdateTime":"2021-06-30T15:28:40.2335885Z"}}}, [ 'Content-Length', '255', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"74d2f8e4-1316-41ff-afb2-bdee2a5458b3"', + 'W/"9bfe8de1-9054-4c5b-85cb-fe4653ea3950"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-6127e0354ed4c24a983e9e01d6ad56ad-956fd4fb00ece249-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsRoomTwin', {"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1"},"Temperature":80,"IsOccupied":true}) .query(true) - .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"437b53b2-9059-4733-9591-c8f0f8553bea\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-01-09T01:20:58.9867056Z"},"IsOccupied":{"lastUpdateTime":"2021-01-09T01:20:58.9867056Z"}}}, [ + .reply(200, {"$dtId":"DTRelationshipsTestsRoomTwin","$etag":"W/\"67175dcd-0e49-412e-9120-ac6e7a929ed3\"","Temperature":80,"IsOccupied":true,"$metadata":{"$model":"dtmi:samples:DTRelationshipsTestsRoom;1","Temperature":{"lastUpdateTime":"2021-06-30T15:28:40.2838262Z"},"IsOccupied":{"lastUpdateTime":"2021-06-30T15:28:40.2838262Z"}}}, [ 'Content-Length', '320', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"437b53b2-9059-4733-9591-c8f0f8553bea"', + 'W/"67175dcd-0e49-412e-9120-ac6e7a929ed3"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e8dc60eb14a49842b97a67f4d5e8f6e8-5438684fdf60b24f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"3623e95f-d2f3-4417-ad36-f80925431a78\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"b48ffce1-bbe0-4ac7-8758-7b2162488a39\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":false}, [ 'Content-Length', '235', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"3623e95f-d2f3-4417-ad36-f80925431a78"', + 'W/"b48ffce1-bbe0-4ac7-8758-7b2162488a39"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-b96bb784985c1a4a8c123c6b4cae02e5-92627e6d44d7df41-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) .put('/digitaltwins/DTRelationshipsTestsBuildingTwin/relationships/BuildingHasFloor', {"$relationshipId":"BuildingHasFloor","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}) .query(true) - .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"e71ba8df-59ca-4d83-82f1-16973d62c530\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ + .reply(200, {"$relationshipId":"BuildingHasFloor","$etag":"W/\"19197a9f-8bb0-44c0-85d8-7a4d8ad3dffe\"","$sourceId":"DTRelationshipsTestsBuildingTwin","$relationshipName":"has","$targetId":"DTRelationshipsTestsFloorTwin","isAccessRestricted":true}, [ 'Content-Length', '234', 'Content-Type', 'application/json; charset=utf-8', 'ETag', - 'W/"e71ba8df-59ca-4d83-82f1-16973d62c530"', + 'W/"19197a9f-8bb0-44c0-85d8-7a4d8ad3dffe"', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-39986a7e990afe439a9dc1afc31fed07-61869a2c319a5546-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -223,8 +320,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-992ace5231c1ad49bc4535b0bda5e174-d496cf0cd1bdec40-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -235,8 +334,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-25bb302c3550b44ba896636ad9f7176f-30b8d5c98c912f4f-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -247,8 +348,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-e990172d33a01d49a107182315c69812-b88e2a22ffa02244-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -259,8 +362,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-9211d64bf4964f4696c0818f7535c94f-610c2767290cbf4e-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:39 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -271,8 +376,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-494480a6f51af24ab10126f937b32134-5084b6fbd9148e45-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -283,8 +390,10 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-82530a3d40ec9f49837db6515eaba43d-1803cb2052c02444-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true}) @@ -295,6 +404,8 @@ nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"enc '0', 'Strict-Transport-Security', 'max-age=2592000', + 'traceresponse', + '00-542edf459b647c4bb3d09751645b601d-f608724c9d4a8b48-01', 'Date', - 'Sat, 09 Jan 2021 01:20:58 GMT' + 'Wed, 30 Jun 2021 15:28:40 GMT' ]); diff --git a/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts b/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts index 5174ceb64204..7fb8e921f828 100644 --- a/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts +++ b/sdk/digitaltwins/digital-twins-core/test/utils/testAuthentication.ts @@ -13,7 +13,7 @@ export async function authenticate(that: Mocha.Context): Promise { replaceableVariables: { AZURE_CLIENT_ID: "azure_client_id", AZURE_CLIENT_SECRET: "azure_client_secret", - AZURE_TENANT_ID: "azure_tenant_id", + AZURE_TENANT_ID: "12345678-1234-1234-1234-123456789012", AZURE_DIGITALTWINS_URL: "https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net" }, customizationsOnRecordings: [