text: let nock = require('nock');
  
  module.exports.hash = "d9be3e61371a1b3d9b5a2db01a83dce2";
  
  module.exports.testInfo = {"uniqueName":{"update-digitaltwin-replace":"digitalTwin162506689256302867"},"newDate":{}}
  
  nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true})
    .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',
    'Pragma',
    'no-cache',
    'Content-Type',
    'application/json; charset=utf-8',
    'Expires',
    '-1',
    'Strict-Transport-Security',
    'max-age=31536000; includeSubDomains',
    'X-Content-Type-Options',
    'nosniff',
    'P3P',
    'CP="DSP CUR OTPi IND OTRi ONL FIN"',
    'x-ms-request-id',
    '28812791-b9ec-449e-b425-0faaadba1f01',
    'x-ms-ests-server',
    '2.1.11829.9 - WUS2 ProdSlices',
    'x-ms-clitelem',
    '1,0,0,,',
    'Set-Cookie',
    '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',
    'Wed, 30 Jun 2021 15:28:10 GMT',
    'Content-Length',
    '1325'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/models/dtmi%3Asamples%3ADTTestBuilding%3B1')
    .query(true)
    .reply(404, {"error":{"code":"ModelNotFound","message":"There is no Model(s) available that matches the provided id(s) dtmi:samples:DTTestBuilding;1. Check that the Model ID provided is valid by doing a Model_List API call."}}, [
    'Content-Length',
    '214',
    'Content-Type',
    'application/json; charset=utf-8',
    'Strict-Transport-Security',
    'max-age=2592000',
    'traceresponse',
    '00-80390c088e7425418c2113f2799925dd-433b13b610452148-01',
    'Date',
    '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-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',
    'Wed, 30 Jun 2021 15:28:10 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/digitaltwins/digitalTwin162506689256302867')
    .query(true)
    .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',
    'Wed, 30 Jun 2021 15:28:10 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .put('/digitaltwins/digitalTwin162506689256302867', {"$metadata":{"$model":"dtmi:samples:DTTestBuilding;1"},"AverageTemperature":68,"TemperatureUnit":"Celsius"})
    .query(true)
    .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/"c9f883b6-e47b-4d20-8c5e-effb2e904628"',
    'Strict-Transport-Security',
    'max-age=2592000',
    'traceresponse',
    '00-b99fa7b3edbc5948aab1d492e9eb9106-c8a01680b17c6048-01',
    'Date',
    'Wed, 30 Jun 2021 15:28:10 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .patch('/digitaltwins/digitalTwin162506689256302867', [{"op":"replace","path":"/AverageTemperature","value":42}])
    .query(true)
    .reply(204, "", [
    'Content-Length',
    '0',
    'ETag',
    'W/"675aceee-dac8-4552-9898-982603f5cfe0"',
    'Strict-Transport-Security',
    'max-age=2592000',
    'traceresponse',
    '00-1b0719b7add87c43927affb9508aac9a-c57b377b41d25046-01',
    'Date',
    'Wed, 30 Jun 2021 15:28:10 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .get('/digitaltwins/digitalTwin162506689256302867')
    .query(true)
    .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/"675aceee-dac8-4552-9898-982603f5cfe0"',
    'Strict-Transport-Security',
    'max-age=2592000',
    'traceresponse',
    '00-39af3999d3c6744193d30db39ab4aa6b-e569ab8b1455f94e-01',
    'Date',
    'Wed, 30 Jun 2021 15:28:10 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/digitaltwins/digitalTwin162506689256302867')
    .query(true)
    .reply(204, "", [
    'Content-Length',
    '0',
    'Strict-Transport-Security',
    'max-age=2592000',
    'traceresponse',
    '00-a3dd0a516ede4c48a2296ea476854c34-3c05d0c75a9f4043-01',
    'Date',
    'Wed, 30 Jun 2021 15:28:11 GMT'
  ]);
  
  nock('https://AZURE_DIGITALTWINS_URL.api.wus2.digitaltwins.azure.net:443', {"encodedQueryParams":true})
    .delete('/models/dtmi%3Asamples%3ADTTestBuilding%3B1')
    .query(true)
    .reply(204, "", [
    'Content-Length',
    '0',
    'Strict-Transport-Security',
    'max-age=2592000',
    'traceresponse',
    '00-34e7139a9a7ebc41a7b4465d7cf0f632-f35be4091e369a4b-01',
    'Date',
    'Wed, 30 Jun 2021 15:28:11 GMT'
  ]);
  