diff --git a/sdk/schemaregistry/schema-registry/CHANGELOG.md b/sdk/schemaregistry/schema-registry/CHANGELOG.md index 7172f5389e5d..3d535dcefcec 100644 --- a/sdk/schemaregistry/schema-registry/CHANGELOG.md +++ b/sdk/schemaregistry/schema-registry/CHANGELOG.md @@ -17,6 +17,8 @@ ### Other Changes +- remove caching from the client. The customer can rely on the one in the serializer package such as `@azure/schema-registry-avro` or write their own that makes most sense in their application. + ## 1.0.0-beta.2 (2021-08-17) ### Features Added diff --git a/sdk/schemaregistry/schema-registry/README.md b/sdk/schemaregistry/schema-registry/README.md index b63cc19de130..3eaa13cf8520 100644 --- a/sdk/schemaregistry/schema-registry/README.md +++ b/sdk/schemaregistry/schema-registry/README.md @@ -73,9 +73,6 @@ schema registry. ### Register a schema -`registerSchema` sends a request to the service to register a schema, and then keeps -a copy of the schema and its service ID in a local private cache. - ```javascript const { DefaultAzureCredential } = require("@azure/identity"); const { SchemaRegistryClient } = require("@azure/schema-registry"); @@ -95,8 +92,6 @@ console.log(registered.id); ### Get ID of existing schema -`getSchemaId` will send a request to the service only if the local cache did not have the schema. - ```javascript const { DefaultAzureCredential } = require("@azure/identity"); const { SchemaRegistryClient } = require("@azure/schema-registry"); @@ -118,8 +113,6 @@ if (found) { ### Get content of existing schema by ID -Similarly to `getSchemaId`, `getSchema` will send a request to the service only if the local cache did not have the schema ID. - ```javascript const { DefaultAzureCredential } = require("@azure/identity"); const { SchemaRegistryClient } = require("@azure/schema-registry"); diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_cache_schema_and_id.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_cache_schema_and_id.json deleted file mode 100644 index 0a9a303fe87d..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_cache_schema_and_id.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://login.microsoftonline.com/azuretenantid/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%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": "1321", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20: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+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "ee97650c-11dc-4927-adec-cc20011e1000" - } - }, - { - "method": "PUT", - "url": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test", - "query": { - "api-version": "2020-09-01-preview" - }, - "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", - "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", - "responseHeaders": { - "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:33 GMT", - "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", - "schema-version": "1", - "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", - "serialization-type": "Avro", - "server": "Microsoft-HTTPAPI/2.0", - "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "61c180e0f650625f9d9766029e5182e1" -} \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_cache_schema_and_id_if_not_registered_by_the_current_client_instance.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_cache_schema_and_id_if_not_registered_by_the_current_client_instance.json deleted file mode 100644 index 60a728a74f9e..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_cache_schema_and_id_if_not_registered_by_the_current_client_instance.json +++ /dev/null @@ -1,102 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://login.microsoftonline.com/azuretenantid/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%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": "1321", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20: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+san\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "9d06237c-bcba-42ab-a8ec-d1a7d5ac7a01" - } - }, - { - "method": "PUT", - "url": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test", - "query": { - "api-version": "2020-09-01-preview" - }, - "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", - "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", - "responseHeaders": { - "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:33 GMT", - "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", - "schema-version": "1", - "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", - "serialization-type": "Avro", - "server": "Microsoft-HTTPAPI/2.0", - "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked" - } - }, - { - "method": "GET", - "url": "https://endpoint/$schemagroups/getSchemaById/9f5e37429ed34806bc442f39fdfce97e", - "query": { - "api-version": "2020-09-01-preview" - }, - "requestBody": null, - "status": 200, - "response": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", - "responseHeaders": { - "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:34 GMT", - "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", - "schema-version": "1", - "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", - "serialization-type": "Avro", - "server": "Microsoft-HTTPAPI/2.0", - "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked" - } - }, - { - "method": "POST", - "url": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test", - "query": { - "api-version": "2020-09-01-preview" - }, - "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", - "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", - "responseHeaders": { - "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:34 GMT", - "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", - "schema-version": "1", - "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", - "serialization-type": "Avro", - "server": "Microsoft-HTTPAPI/2.0", - "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "c0f2222f3155d7b11d110df8768fad8c" -} \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.json index 848fe4befd5a..bc5b90c025fd 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.json @@ -4,5 +4,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "195a3606d22fa80c6303b08d11c00c9e" + "hash": "45d5bcaae1f3240ff37d2d3b3c724099" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.json index 1ff386486566..ea54bfa7ce2f 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:29 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - NCUS ProdSlices", - "x-ms-request-id": "433a0535-02b7-4707-ab36-b685e64cc200" + "x-ms-ests-server": "2.1.12071.13 - EUS ProdSlices", + "x-ms-request-id": "a44ac1f7-6222-417d-8207-92700aab3600" } }, { @@ -32,10 +32,10 @@ }, "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 400, - "response": "{\"Code\":400,\"Detail\":\"Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:499def3d-561b-47a6-97fc-9afd6acf003b_G5, SystemTracker:endpoint:$schemagroups\\/group-1\\/schemas\\/azsdk_js_test, Timestamp:2021-08-04T20:29:30\"}", + "response": "{\"Code\":400,\"Detail\":\"Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:164f4d50-2ab9-4d03-8667-dd51f394b634_G20, SystemTracker:endpoint:$schemagroups\\/group-1\\/schemas\\/azsdk_js_test, Timestamp:2021-09-24T16:46:34\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:30 GMT", + "date": "Fri, 24 Sep 2021 16:46:34 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -46,5 +46,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "d48430ed2babaab0f576a467b1f05e52" + "hash": "36009d8faaaf7d79236f8a74fecd05d9" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.json index bdf5f77e133f..d0537579cb59 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:29 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11935.12 - SCUS ProdSlices", - "x-ms-request-id": "ddb2faaa-02cc-462d-8805-c4744a710000" + "x-ms-ests-server": "2.1.12071.13 - EUS ProdSlices", + "x-ms-request-id": "2da9bb4e-65dd-4492-a351-b3db34123600" } }, { @@ -32,10 +32,10 @@ }, "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 404, - "response": "{\"Code\":404,\"Detail\":\"Schema group-1\\/never-registered does not exist. TrackingId:20190a60-ad1b-49a2-8fe0-bc1a0a4f81ba_G5, SystemTracker:endpoint:$schemagroups\\/group-1\\/schemas\\/never-registered, Timestamp:2021-08-04T20:29:30\"}", + "response": "{\"Code\":404,\"Detail\":\"Schema group-1\\/never-registered does not exist. TrackingId:674aafd7-5050-4caf-a5f1-5ae35319a2dc_G20, SystemTracker:endpoint:$schemagroups\\/group-1\\/schemas\\/never-registered, Timestamp:2021-09-24T16:46:35\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:30 GMT", + "date": "Fri, 24 Sep 2021 16:46:35 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -46,5 +46,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "c5d7c9080c6c3a9108d1647a622beddd" + "hash": "3a495a0f1d563cd8e589d6e800559bc0" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.json index 01b0e5774461..581c63512b11 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:30 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "9d06237c-bcba-42ab-a8ec-d1a777ac7a01" + "x-ms-ests-server": "2.1.12071.13 - SCUS ProdSlices", + "x-ms-request-id": "b596da07-b2fd-4fd5-8aa9-a28c1d993600" } }, { @@ -32,10 +32,10 @@ }, "requestBody": null, "status": 404, - "response": "{\"Code\":404,\"Detail\":\"Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:710c6f6b-05b0-4256-b6dd-903f3281a000_G5, SystemTracker:endpoint:$schemagroups\\/getSchemaById\\/ffffffffffffffffffffffffffffffff, Timestamp:2021-08-04T20:29:32\"}", + "response": "{\"Code\":404,\"Detail\":\"Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:c1aff705-221a-4d32-b916-bce0ee749898_G20, SystemTracker:endpoint:$schemagroups\\/getSchemaById\\/ffffffffffffffffffffffffffffffff, Timestamp:2021-09-24T16:46:36\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:31 GMT", + "date": "Fri, 24 Sep 2021 16:46:36 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -46,5 +46,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "5fa29eb8e01de35dfc09d7742cb0cdd9" + "hash": "9af3d75a3765ed81e4d792fadab21064" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id.json index 694adcbd3c94..7079a57bcb99 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:31 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "9d06237c-bcba-42ab-a8ec-d1a792ac7a01" + "x-ms-ests-server": "2.1.12071.13 - NCUS ProdSlices", + "x-ms-request-id": "5a334757-2c34-4548-8abe-f088bf872700" } }, { @@ -32,13 +32,36 @@ }, "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", + "response": "{\"id\":\"e086b25cd8344fad9fc9e1dc3d8363f9\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:32 GMT", + "date": "Fri, 24 Sep 2021 16:46:37 GMT", "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", + "schema-id": "e086b25cd8344fad9fc9e1dc3d8363f9", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview", + "schema-version": "1", + "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", + "server": "Microsoft-HTTPAPI/2.0", + "strict-transport-security": "max-age=31536000", + "transfer-encoding": "chunked" + } + }, + { + "method": "GET", + "url": "https://endpoint/$schemagroups/getSchemaById/e086b25cd8344fad9fc9e1dc3d8363f9", + "query": { + "api-version": "2020-09-01-preview" + }, + "requestBody": null, + "status": 200, + "response": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", + "responseHeaders": { + "content-type": "application/json", + "date": "Fri, 24 Sep 2021 16:46:37 GMT", + "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", + "schema-id": "e086b25cd8344fad9fc9e1dc3d8363f9", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview", "schema-version": "1", "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", "serialization-type": "Avro", @@ -52,5 +75,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "32845d57203f28248f74ca34ea8c7072" + "hash": "0e0c5aa207dfb211d60f8de4f6465010" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id_from_cache.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id_from_cache.json deleted file mode 100644 index 308949aa5e40..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_by_id_from_cache.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "recordings": [ - { - "method": "POST", - "url": "https://login.microsoftonline.com/azuretenantid/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%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": "1321", - "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 03:18:01 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+bno\"}]}", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - SCUS ProdSlices", - "x-ms-request-id": "901e4a39-66eb-4f63-b0f8-a229221a4501" - } - }, - { - "method": "PUT", - "url": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test", - "query": { - "api-version": "2020-09-01-preview" - }, - "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", - "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", - "responseHeaders": { - "content-type": "application/json", - "date": "Wed, 04 Aug 2021 03:18:01 GMT", - "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", - "schema-version": "1", - "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", - "serialization-type": "Avro", - "server": "Microsoft-HTTPAPI/2.0", - "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked" - } - } - ], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "3cca8d9a288106333c45b9e290187edb" -} \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_id.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_id.json index b6de592f2a26..3a9492b524d2 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_id.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_gets_schema_id.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:29 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "1db1aa08-cee3-4680-a515-efcc089f7501" + "x-ms-ests-server": "2.1.12071.13 - WUS2 ProdSlices", + "x-ms-request-id": "4f3214d6-6ecf-48e2-a233-a80bbb063000" } }, { @@ -32,13 +32,36 @@ }, "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", + "response": "{\"id\":\"e086b25cd8344fad9fc9e1dc3d8363f9\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:31 GMT", + "date": "Fri, 24 Sep 2021 16:46:35 GMT", "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", + "schema-id": "e086b25cd8344fad9fc9e1dc3d8363f9", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview", + "schema-version": "1", + "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", + "server": "Microsoft-HTTPAPI/2.0", + "strict-transport-security": "max-age=31536000", + "transfer-encoding": "chunked" + } + }, + { + "method": "POST", + "url": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test", + "query": { + "api-version": "2020-09-01-preview" + }, + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", + "status": 200, + "response": "{\"id\":\"e086b25cd8344fad9fc9e1dc3d8363f9\"}", + "responseHeaders": { + "content-type": "application/json", + "date": "Fri, 24 Sep 2021 16:46:36 GMT", + "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", + "schema-id": "e086b25cd8344fad9fc9e1dc3d8363f9", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview", "schema-version": "1", "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", "serialization-type": "Avro", @@ -52,5 +75,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "630f91ae32ef9cb9bd1035e71a0f25ea" + "hash": "e84be933dbd32779d117d4779075b26d" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_registers_schema.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_registers_schema.json index bf1cc0410e84..53081da69e98 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_registers_schema.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_registers_schema.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:28 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11898.12 - EUS ProdSlices", - "x-ms-request-id": "1db1aa08-cee3-4680-a515-efccc39e7501" + "x-ms-ests-server": "2.1.12071.13 - WUS2 ProdSlices", + "x-ms-request-id": "4f3214d6-6ecf-48e2-a233-a80b66063000" } }, { @@ -32,13 +32,13 @@ }, "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"9f5e37429ed34806bc442f39fdfce97e\"}", + "response": "{\"id\":\"e086b25cd8344fad9fc9e1dc3d8363f9\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:29 GMT", + "date": "Fri, 24 Sep 2021 16:46:33 GMT", "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview", - "schema-id": "9f5e37429ed34806bc442f39fdfce97e", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview", + "schema-id": "e086b25cd8344fad9fc9e1dc3d8363f9", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview", "schema-version": "1", "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview", "serialization-type": "Avro", @@ -52,5 +52,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "5239e2fdf7dfe488049182f167c3105c" + "hash": "dc18044076c1c60c64b0ca12300039a0" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.json index 4c7bd29f250a..7b115b906c0f 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 04 Aug 2021 20:29:27 GMT", + "date": "Fri, 24 Sep 2021 16:46: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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11935.12 - WUS2 ProdSlices", - "x-ms-request-id": "8b9a715f-a01a-434f-9193-aab69d470700" + "x-ms-ests-server": "2.1.12071.13 - WUS2 ProdSlices", + "x-ms-request-id": "5dce3e9c-f1db-4e33-9a8a-bb2d5ebb3000" } }, { @@ -32,10 +32,10 @@ }, "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 400, - "response": "{\"Code\":400,\"Detail\":\"Invalid schema type for PUT request. 'not-valid' is not supported. TrackingId:beba338e-4552-4fa1-be77-bc70caa62581_G5, SystemTracker:endpoint:$schemagroups\\/group-1\\/schemas\\/azsdk_js_test, Timestamp:2021-08-04T20:29:29\"}", + "response": "{\"Code\":400,\"Detail\":\"Invalid schema type for PUT request. 'not-valid' is not supported. TrackingId:5dec9f05-d68a-49cb-b087-aafbf9dbf0dd_G20, SystemTracker:endpoint:$schemagroups\\/group-1\\/schemas\\/azsdk_js_test, Timestamp:2021-09-24T16:46:33\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 04 Aug 2021 20:29:29 GMT", + "date": "Fri, 24 Sep 2021 16:46:33 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -46,5 +46,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "3f48c4112ff1649e3c27d9722776a684" + "hash": "6ca096cf02ab02def56c8f071401e891" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_schema_with_whitespace.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_schema_with_whitespace.json index 6de6c3944203..9a11e861a0f4 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_schema_with_whitespace.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_schema_with_whitespace.json @@ -11,17 +11,17 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 18 Aug 2021 17:08:14 GMT", + "date": "Fri, 24 Sep 2021 16:46:37 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+san\"}]}", + "report-to": "{\"group\":\"network-errors\",\"max_age\":86400,\"endpoints\":[{\"url\":\"https://identity.nel.measure.office.net/api/report?catId=GW+estsfd+bno\"}]}", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.11961.8 - SCUS ProdSlices", - "x-ms-request-id": "0f27d023-eabb-4fe1-b762-0126305e1701" + "x-ms-ests-server": "2.1.12071.13 - WUS2 ProdSlices", + "x-ms-request-id": "4f3214d6-6ecf-48e2-a233-a80b4a073000" } }, { @@ -32,13 +32,36 @@ }, "requestBody": "{\n \"type\": \"record\",\n \"name\": \"Test\",\n \"fields\": [{ \"name\": \"X\", \"type\": { \"type\": \"string\" } }]\n}\n", "status": 200, - "response": "{\"id\":\"207b5ecbbff7492d902647dfde854fff\"}", + "response": "{\"id\":\"24972ebfc1bf46a1a6e29f1845794f85\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 18 Aug 2021 17:08:15 GMT", + "date": "Fri, 24 Sep 2021 16:46:38 GMT", "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test2/versions/1?api-version=2020-09-01-preview", - "schema-id": "207b5ecbbff7492d902647dfde854fff", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/207b5ecbbff7492d902647dfde854fff?api-version=2020-09-01-preview", + "schema-id": "24972ebfc1bf46a1a6e29f1845794f85", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/24972ebfc1bf46a1a6e29f1845794f85?api-version=2020-09-01-preview", + "schema-version": "1", + "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test2/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", + "server": "Microsoft-HTTPAPI/2.0", + "strict-transport-security": "max-age=31536000", + "transfer-encoding": "chunked" + } + }, + { + "method": "GET", + "url": "https://endpoint/$schemagroups/getSchemaById/24972ebfc1bf46a1a6e29f1845794f85", + "query": { + "api-version": "2020-09-01-preview" + }, + "requestBody": null, + "status": 200, + "response": "{\"type\":\"record\",\"name\":\"Test\",\"fields\":[{\"name\":\"X\",\"type\":{\"type\":\"string\"}}]}", + "responseHeaders": { + "content-type": "application/json", + "date": "Fri, 24 Sep 2021 16:46:39 GMT", + "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test2/versions/1?api-version=2020-09-01-preview", + "schema-id": "24972ebfc1bf46a1a6e29f1845794f85", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/24972ebfc1bf46a1a6e29f1845794f85?api-version=2020-09-01-preview", "schema-version": "1", "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test2/versions?api-version=2020-09-01-preview", "serialization-type": "Avro", @@ -53,15 +76,15 @@ "query": { "api-version": "2020-09-01-preview" }, - "requestBody": "{\n \"type\": \"record\",\n \"name\": \"Test\",\n \"fields\": [{ \"name\": \"X\", \"type\": { \"type\": \"string\" } }]\n}\n", + "requestBody": "{\"type\":\"record\",\"name\":\"Test\",\"fields\":[{\"name\":\"X\",\"type\":{\"type\":\"string\"}}]}", "status": 200, - "response": "{\"id\":\"207b5ecbbff7492d902647dfde854fff\"}", + "response": "{\"id\":\"24972ebfc1bf46a1a6e29f1845794f85\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 18 Aug 2021 17:08:16 GMT", + "date": "Fri, 24 Sep 2021 16:46:39 GMT", "location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test2/versions/1?api-version=2020-09-01-preview", - "schema-id": "207b5ecbbff7492d902647dfde854fff", - "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/207b5ecbbff7492d902647dfde854fff?api-version=2020-09-01-preview", + "schema-id": "24972ebfc1bf46a1a6e29f1845794f85", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/24972ebfc1bf46a1a6e29f1845794f85?api-version=2020-09-01-preview", "schema-version": "1", "schema-versions-location": "https://endpoint/$schemagroups/group-1/schemas/azsdk_js_test2/versions?api-version=2020-09-01-preview", "serialization-type": "Avro", @@ -75,5 +98,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "bb1dc66818b9788bf272a0c69750dba3" + "hash": "7f7cb91b3fa3b7beabf10137f17d710f" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_and_adjusts_user_agent_prefix_in_constructor.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_and_adjusts_user_agent_prefix_in_constructor.json deleted file mode 100644 index 6e3b35ffc1fb..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_and_adjusts_user_agent_prefix_in_constructor.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "recordings": [], - "uniqueTestInfo": { - "uniqueName": {}, - "newDate": {} - }, - "hash": "ff4147dab754710e712d87cd8d1e9466" -} \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_in_constructor.json b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_in_constructor.json index 01c53a787c4b..fce1b8571f31 100644 --- a/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_in_constructor.json +++ b/sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_sets_endpoint_in_constructor.json @@ -4,5 +4,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "da2ab95af20355a7b13ea2bcf39462f3" + "hash": "83dc1ff00845f199c7eb4bc9c91c3cf9" } \ No newline at end of file diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_cache_schema_and_id.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_cache_schema_and_id.js deleted file mode 100644 index 50a6e1a5a7a3..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_cache_schema_and_id.js +++ /dev/null @@ -1,139 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "335f5dfadfb42b8527cd852cc328a828"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/azuretenantid/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', - 'bd7bfd38-ffaf-4e37-a9ef-5372c3478d01', - 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr2hwZXXztXFBXd4cYbg8FkIADh1BBTIMrY1tGj9d7geoNzO1URg94wB6PKtzs5lyPDbhWAZHZ9jzp5sw55k28C8JnaQs3g0276zDYDWlEooYerMCkEM5nO0Bp0nXa5frrpcKskbn_YvpsjPr6SGR0SmhtVTBXyQkoHw8YSKoUrK4gAA; 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, 04 Aug 2021 20:29:23 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/azuretenantid/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/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', - '8089a432-0de7-4720-afe5-621673620000', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOIq2EL8sig0PG1G_9HXoBLrmWp__1IJMdr2zpk5tBJENbbQDihEOTQAkjSWd3j8yMhqKx0nuV7BJEY7YK9-jBIVbAanRh2qneh-zsfhYCTHJmQhAFE1BlDeq9i6l5EX5cnglxPbFqYJbq0Gb7bvyikZV_ZaqmZ4vEy-eUJqz65wgAA; 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, 04 Aug 2021 20:29:23 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=272f3598-ab9f-41c2-a911-80e4ea758587&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', - '22efe2bb-9178-4929-99f2-f6730c756c01', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29: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', - 'Wed, 04 Aug 2021 20:29:23 GMT', - 'Content-Length', - '1321' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) - .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', - 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', - 'Serialization-Type', - 'Avro', - 'Schema-Version', - '1', - 'Schema-Versions-Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', - 'Strict-Transport-Security', - 'max-age=31536000', - 'Date', - 'Wed, 04 Aug 2021 20:29:24 GMT' -]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_cache_schema_and_id_if_not_registered_by_the_current_client_instance.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_cache_schema_and_id_if_not_registered_by_the_current_client_instance.js deleted file mode 100644 index 69edeeef3002..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_cache_schema_and_id_if_not_registered_by_the_current_client_instance.js +++ /dev/null @@ -1,195 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "9a1985d4c26cf22d531c2a50aa8b7dd7"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/azuretenantid/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', - '05870d1a-be74-451e-bb9c-681db5826901', - 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', - 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrS0qRaG7RpFHJkRDjYH4IXqPK5-ajbzLq-UZ3YKKArFpbUTRlkoN35PJ37UYQo8C3-OmQ7IbBPgSdA9-l7wyoaEiNqRs5tmnHAgWjaIVsNk2WSyLPHmtoN9XyIO9nbWcUenLlv7jeDZtmedwRTQpY-gu4jtxbvHQ52s6V2SJFQO8gAA; 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, 04 Aug 2021 20:29:24 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/azuretenantid/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/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', - '8089a432-0de7-4720-afe5-621695620000', - 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', - 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:24 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevroY0CDjrz0JwU_FxJkgLsN6fB_cFoJitel39DmDI7Etl49XLKKxfHL5kl4RQJVVdnQ7-TCOgAFl3YcmN410V28n1yVm86pbs21ExTgYETRiHWhkjX12rdmO6HQJoait4Qt4DOCxFnQcxGytmiYX9Y9erUfuBnd1DV251nk-hR4LggAA; 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, 04 Aug 2021 20:29:24 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=876f7b8d-75c8-477b-8b58-34da5b685330&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', - '1321', - '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', - '519d825c-a94e-415c-a782-14c3ef761a01', - 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29: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', - 'Wed, 04 Aug 2021 20:29:24 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) - .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', - 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', - 'Serialization-Type', - 'Avro', - 'Schema-Version', - '1', - 'Schema-Versions-Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', - 'Strict-Transport-Security', - 'max-age=31536000', - 'Date', - 'Wed, 04 Aug 2021 20:29:25 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .get('/$schemagroups/getSchemaById/9f5e37429ed34806bc442f39fdfce97e') - .query(true) - .reply(200, {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', - 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', - 'Serialization-Type', - 'Avro', - 'Schema-Version', - '1', - 'Schema-Versions-Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', - 'Strict-Transport-Security', - 'max-age=31536000', - 'Date', - 'Wed, 04 Aug 2021 20:29:25 GMT' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .post('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) - .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', - 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', - 'Serialization-Type', - 'Avro', - 'Schema-Version', - '1', - 'Schema-Versions-Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', - 'Strict-Transport-Security', - 'max-age=31536000', - 'Date', - 'Wed, 04 Aug 2021 20:29:26 GMT' -]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.js index 8af0da3dd0da..de9e9551ea3f 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.js @@ -1,5 +1,5 @@ let nock = require('nock'); -module.exports.hash = "a0665b16640588250ed54a3fdb6919d8"; +module.exports.hash = "22f453d592775a5caf02789777e485c2"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.js index 5ddddcea7a93..601fe5756699 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_given_invalid_args.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "bdb3cbd031302b79d6f5da3cf72a2fa3"; +module.exports.hash = "4c11316b987fc0f4a40a6d6d4389803b"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a0b5482c-62a8-425e-aefc-0264095adf01', + '74f5a6fd-4cd1-4174-a602-c22630469200', 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', + '2.1.12071.7 - EUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAgAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ai_w-u4H1rREuW02rfxyUqQ; expires=Sun, 24-Oct-2021 16:46:23 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrYvznB5lYogmy0WUUwpu8U7F__asI6ud_IVqdM12eqMM2FCyNRiMZK-Ll6iwojZt_bNOAz9CoJcI7UwqLFHIinFLgsGf42p2cEE0dVfMinEfEt3aB6UYAscBBVktSQL1IwXSAcvR0KVNGVkXwnCnVzE96_74dq8TE2gr1gT8oSP4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrWAuLM8zJD6bdZq2UB2p90AGTkShIn6Zt6cJj0jpBqqf4wjDcIfQrNJLnIbezqXXTCjRhyPThGbPIdu1jx2VtNaCKgYcBE4bTtQx9sjxrkihFOVZQg7alikruI7MAt7yXiYfGbeGp86wMVXpLkCZ_A6ktUkgNFop-zPPPJLcWM6IgAA; 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, 04 Aug 2021 20:29:19 GMT', + 'Fri, 24 Sep 2021 16:46:23 GMT', 'Content-Length', '980' ]); @@ -58,25 +58,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7e91ece5-8eed-4e0e-b8af-33dd555c1901', + '6762b71d-8ac7-498a-88e8-225805b73200', 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', + '2.1.12071.13 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAgAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AmywvhbeQEdBv-uVVME8JHo; expires=Sun, 24-Oct-2021 16:46:23 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr12TpZT8Sv8A3SIblibTs0D8tLzqSHFz-XLzUPUKq6SpBV38BvJzoiQAXd2yzFOHyrrjFS1lRcnUA15sNpl2tBUVePuztm1ypLSeEDG-WhBGZawZP_1YEfryMhQ3lG20BnghYxPnD81wKuZI8w4ZbB80CGZ6zMTQztzZCtns41SkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrQtETQgRsiRqviw2drQCu4ayiQ5BHjeOeL5S8s4eOYcpjaDrcn--0C3z90cXblJHVxVwUmvZjVUKwOxRSTMUcxtie1POOxPAJQNA9gWrlwdc75AI2d-z3F3ZBtnibNOL2st_7DLeZceq37EFNaFHrM6ekkYtjKZ03BjvJw_dTltcgAA; 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, 04 Aug 2021 20:29:19 GMT', + 'Fri, 24 Sep 2021 16:46:23 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=e91ef6bd-6ffb-4a42-a36c-14db41e27c2d&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=4a500779-366d-4674-83c8-2203a8d7f84b&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,19 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '098d2c5e-0ae2-41e4-bdad-6730aedf7201', + '9f1cdf8d-591b-4115-8f39-413bb93f2800', 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', + '2.1.12071.13 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAwAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:20 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArZXV3WL_ZROkgM0Ggg-bmvmLYaiAQAAAN_339gOAAAA; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 04 Aug 2021 20:29:20 GMT', + 'Fri, 24 Sep 2021 16:46:23 GMT', 'Content-Length', '1321' ]); @@ -113,7 +113,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .post('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(400, {"Code":400,"Detail":"Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:72b6c1e7-cbf0-45b3-99f4-61ba12741c62_G6, SystemTracker:endpoint:$schemagroups/group-1/schemas/azsdk_js_test, Timestamp:2021-08-04T20:29:21"}, [ + .reply(400, {"Code":400,"Detail":"Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:01e9c6eb-eb45-4188-8d7b-c128066f26eb_G28, SystemTracker:endpoint:$schemagroups/group-1/schemas/azsdk_js_test, Timestamp:2021-09-24T16:46:24"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,5 +123,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:20 GMT' + 'Fri, 24 Sep 2021 16:46:24 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.js index fc3f7dcb3fbb..740a3aa952de 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_id_when_no_matching_schema_exists.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "cbdfe221ea475043fb6f9368ba28a730"; +module.exports.hash = "269fc34397d7f3d879c67d9a3a4f837a"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '93fc3b2f-68cc-4c9e-9c83-1752eda7d701', + 'e343d8d5-36aa-4a56-9ec6-3b67a9c72000', 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', + '2.1.12071.13 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAwAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ApDR4LGoVSZHiVzwfsVRCTU; expires=Sun, 24-Oct-2021 16:46:24 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrbY4LwKUCLYwS17CcSOkAdi2QAM_OsuDfnP_oErRU7oKrFaBtVYJNAJdk2MGF58LG9m2O9PemEIbvobFHBlCCj6NfmqfPjYEttC9PbdnXbuz14-ycWKL9skB4RL906n0_MxA5_zMBR0TBlAb3MT_w3lf-DvH6h1OXxVwrZbzrvrsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr3wtSnne4yG9qsDcm7CLlXCD8dhu8nKr6KEzpO4mL3orBlgZJLnwcwS_IHrD1sz84cjFesoRZrx9d9iYzbqeE0Ia1yWE0JMiAycTnq3cf_vX2yV1gRN0jEuulyHBijyMMey7lZ-oICpn4OT1Md4z1xkvQecUdx3OzH6BeLtmx7oYgAA; 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, 04 Aug 2021 20:29:20 GMT', + 'Fri, 24 Sep 2021 16:46:24 GMT', 'Content-Length', '980' ]); @@ -58,25 +58,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'd49c3da3-122f-47d6-99e1-37519dcf0600', + '8c5f4536-b587-4192-af93-d1f7373b3a00', 'x-ms-ests-server', - '2.1.11935.12 - WUS2 ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAwAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AiQjbvDLFR5FiPCbJutjxyA; expires=Sun, 24-Oct-2021 16:46:24 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrnQkyJSh4ZnzeCuQg8DiWR1kRtB0YweD1FSKyMLI-rE9LE-JFCbn5kcqzvi8gb7lwNas8Joozt7__EgBGnqGDomxBvStQWl6au6L3Zgg0QNFKtCjp0rQyJh1AfcsZ8LdOPvo5Fg2qbA03qBps9Vivd-x0yfLt-Xq5G-eQQXGnpuYgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrAYM3xH6F4HVDyOibd78VdoAXf9FMkAbHqsz7lRUH8wgawVVZGsIin2mrQkwGQdVaKmi-Oyto2LvnYX3vZJgylU_81I2l3epu-HJlFUl8xAomNIFToKXkgfGlWosg8kFi9IiVym0hp9v2G6Uz1an36bgf_U5jy9TYK3G-ZNaRWjAgAA; 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, 04 Aug 2021 20:29:20 GMT', + 'Fri, 24 Sep 2021 16:46:24 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=38dc57e9-90f2-4696-8dab-575d5e9b867f&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=b2cf1ae9-3d0e-4534-8d9a-cb24af5aa56f&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,19 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '11b7b6b0-1a61-40b1-bbed-b518e1350700', + '84b61667-cf68-4ed9-837f-ea9e23233400', 'x-ms-ests-server', - '2.1.11935.12 - WUS2 ProdSlices', + '2.1.12071.13 - WUS2 ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBAAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AgRTlwI41DFNqDkrVgDbl2XmLYaiAQAAAOD339gOAAAA; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 04 Aug 2021 20:29:20 GMT', + 'Fri, 24 Sep 2021 16:46:24 GMT', 'Content-Length', '1321' ]); @@ -113,7 +113,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .post('/$schemagroups/group-1/schemas/never-registered', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(404, {"Code":404,"Detail":"Schema group-1/never-registered does not exist. TrackingId:42203ade-ec98-4ad2-8639-bf0af80c98be_G6, SystemTracker:endpoint:$schemagroups/group-1/schemas/never-registered, Timestamp:2021-08-04T20:29:21"}, [ + .reply(404, {"Code":404,"Detail":"Schema group-1/never-registered does not exist. TrackingId:66d3043d-e992-4c06-afeb-bb9a76406d90_G28, SystemTracker:endpoint:$schemagroups/group-1/schemas/never-registered, Timestamp:2021-09-24T16:46:25"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,5 +123,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:20 GMT' + 'Fri, 24 Sep 2021 16:46:25 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.js index 597e0666fc32..f6c8720c64d5 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_fails_to_get_schema_when_no_schema_exists_with_given_id.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "b7a82bbd07caa00fea0b29b3433b4989"; +module.exports.hash = "1f7169c66a5250c976077f6dab258aba"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'ba0f6f6a-85d2-417c-9cfc-ca35d7e21902', + 'd84b334b-4023-45c8-b975-9089b1f12c00', 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', + '2.1.12071.13 - WUS2 ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aplsh3G6UR1Mhr3aQKh8CkY; expires=Sun, 24-Oct-2021 16:46:26 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr05y6VPdjeHE7NZ5XHigi_D7ojclx6GjjPZGX9BiB5dfkUIvE2qSXbOkFzI9ie718tSGPJya-mlYilmBFhwzSJ1DvoNCfGSHKqFSLsEHTQBIcGpQxNoIoHTGtXIL6a0UeeW5M4iwWKw3tDsLzO5yJZ4sXwWgeebi8xY9ySNPUO-IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrxYRjcqUgzdOBR0DhEkEeIkgrk9MGkbshOhSRmKWt1XIRBtkKspg_0K1Dt673Emu104-eqzwNqBh-CH_V_YJZRsPrjl6rFbkbUxOA6arMvJKpEAmPKWv2VYRJxokANjq2a2t4WcLfdAt4eYrQU354a0PVPzXTx-0BvLRAzj5jbW0gAA; 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, 04 Aug 2021 20:29:22 GMT', + 'Fri, 24 Sep 2021 16:46:26 GMT', 'Content-Length', '980' ]); @@ -58,30 +58,32 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '7381c2b0-4d45-40ed-805c-7f093b116e01', + '9f1cdf8d-591b-4115-8f39-413b22402800', 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', + '2.1.12071.13 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AgjCfZECL6VEvwvZyaXhKTI; expires=Sun, 24-Oct-2021 16:46:26 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrjCcBOLliKAoSFd5_MIBLiRCUVARyNApkZbzQJ6tVnDCuFhh-nxJWDWj3IIeRrPtJ3FMQMDPdwdhNaYMFUprEQhIrydrfVfyWKvrV4pP0mnw3_qnV2371ZPIB5pQPI-z40ryZNexHgCBmJADpQj1dfMqU_iOuwRxNEOyZJyrci_sgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrijvZdM3O_biP-gJW2kVpfDjjNpsNdRp_9woVRe1iWMY-Km2APrR5uJDRoEkGb73Bm_6UKLpkVImay3EZ0bjXuj5QC_wVNbw5gI7rVWPMSBS--WCFY88PKYW8zwi5JyTo_28LfM6n7LTLKIe0HYXK8zk_6pk3ipjcFR-G-vut12MgAA; 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, 04 Aug 2021 20:29:22 GMT', + 'Fri, 24 Sep 2021 16:46:26 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=3a4c24ab-fbe3-44c3-a85d-6ec2617fdb6f&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=d5ebf806-16f1-4fd0-807a-289f4c365840&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .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', + '1321', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -93,27 +95,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8089a432-0de7-4720-afe5-621614620000', + '97d64610-2df6-46df-a9af-b5151bc43000', 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', + '2.1.12071.13 - EUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Aht3qoSw12NHgilYBZr6xFvmLYaiAQAAAOL339gOAAAA; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 04 Aug 2021 20:29:22 GMT', - 'Content-Length', - '1321' + 'Fri, 24 Sep 2021 16:46:26 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .get('/$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff') .query(true) - .reply(404, {"Code":404,"Detail":"Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:41ab1792-7f28-4054-8b64-04216b0f0ab6_G6, SystemTracker:endpoint:$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff, Timestamp:2021-08-04T20:29:23"}, [ + .reply(404, {"Code":404,"Detail":"Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:453cad0b-8082-4964-879f-6ac226abccc4_G28, SystemTracker:endpoint:$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff, Timestamp:2021-09-24T16:46:27"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,5 +123,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:23 GMT' + 'Fri, 24 Sep 2021 16:46:27 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id.js index d1aaf1073145..227468f305b2 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "f64c33949f2d8bd05c3a4c3791182b52"; +module.exports.hash = "5696d4cdf4975ec4e73b2eb9e18c8323"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a60c122c-3095-4034-9c72-a6826ca71f01', + '875c914e-a91c-428f-a867-e1f3947e3f00', 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', + '2.1.12071.13 - EUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AoO6pKzPD0tOr10BDpDht7E; expires=Sun, 24-Oct-2021 16:46:27 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrM0suUrPRbf4dMu3KkqktErRaBD0CLnFE8L1-BACFCt54F-BSMGN-Zw-qDLMLx7YtQ1hQDQkCnxkdUw_19xGW4p_cB4bxMFgMmcf6zsZ_HOeGoWxv-WFPNmmwWzml1-akE0hooqU5dX_Pag6qKGtaPxD-MFgT4mWDO1ouoj97b0IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr30E98GsJtS9vWvsY589S2qViQ3bWMpglOjfWsUZDvAr_cHayjC7vc7Jzvu0P42aAUx7G6YehqvUsns3X2VKu15eqx5UpZsj4Vq0zH41HZ1HQYACMZ72Pl0G87U0-PyLI4cGNrwXGyJ5lzB5I5Yn5AQEEF4aRyxfHdZKzhZU0NuMgAA; 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, 04 Aug 2021 20:29:22 GMT', + 'Fri, 24 Sep 2021 16:46:27 GMT', 'Content-Length', '980' ]); @@ -58,25 +58,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '519d825c-a94e-415c-a782-14c3b5761a01', + '2200c9bd-6656-4be8-9c16-a373081d3c00', 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AuhL2euuOyhDq34u05lhUpY; expires=Sun, 24-Oct-2021 16:46:27 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrq1Utuh02NlYcD2_3queNCU7HiD42Se_sIwix8F0WIGnzCViugkzTGPIWBDw6zbpfvAxPkORmpmpQ6wAN14lS1IMBtJKnoDO2xPhyUX9XO24v1bIqPTGGMNafwSWXB-Mq5CsXBapHeFZHSWB8l4ff04MI2x-UOIZOv3MNNGKxjhkgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-HshASEIZmFTitqo-tCgL3wUzQZEzODolxQ4FVgJ6RZ4xKgwTahSilZmRIq3XauQCZaE5hlPqeCOJ2JuDSeEHonhCzHltLLvMPM8EHmfdpOFfyGGrZoMPTNADXvkZSL42j1TBx1zTTbIq_LPIs5qBvC4Mnjpq_J0sCUvCZqV-KogAA; 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, 04 Aug 2021 20:29:23 GMT', + 'Fri, 24 Sep 2021 16:46:27 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=5ac1d377-c057-43ca-bbde-4a04716b2896&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=67074e45-63e2-4f7d-8401-0ad906bf6ff2&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,19 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '22efe2bb-9178-4929-99f2-f673e7746c01', + '9f1cdf8d-591b-4115-8f39-413b4a402800', 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', + '2.1.12071.13 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:23 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AqdrN-LQ3SlGjvv0IntI-5Y; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 04 Aug 2021 20:29:23 GMT', + 'Fri, 24 Sep 2021 16:46:27 GMT', 'Content-Length', '1321' ]); @@ -113,7 +113,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ + .reply(200, {"id":"e086b25cd8344fad9fc9e1dc3d8363f9"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,9 +123,9 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Server', 'Microsoft-HTTPAPI/2.0', 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', + 'e086b25cd8344fad9fc9e1dc3d8363f9', 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', + 'https://endpoint:443/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview', 'Serialization-Type', 'Avro', 'Schema-Version', @@ -135,5 +135,33 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:24 GMT' + 'Fri, 24 Sep 2021 16:46:27 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .get('/$schemagroups/getSchemaById/e086b25cd8344fad9fc9e1dc3d8363f9') + .query(true) + .reply(200, {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + 'e086b25cd8344fad9fc9e1dc3d8363f9', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '1', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Fri, 24 Sep 2021 16:46:28 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id_from_cache.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id_from_cache.js deleted file mode 100644 index c34d6fc36721..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_by_id_from_cache.js +++ /dev/null @@ -1,139 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "6624a23fb9fd238faafa2d25f90c79c3"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/common/discovery/instance') - .query(true) - .reply(200, {"tenant_discovery_endpoint":"https://login.microsoftonline.com/azuretenantid/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', - '0c26885b-4af6-4403-ab27-850eee9ea501', - 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AtFhDgFJ_N5Fr7EE7sMhkqs; expires=Fri, 03-Sep-2021 03:17:58 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr6tbWt-JJzJ_Crr9Qu7ScTQcj6CE-XnjdZ6V3QkoV_IT6HjBoljlyvKsNzS2YhTYEJxa1V2cPYZduLrQwVL-EN7k3HPRO3Xi1BdSRZtujI59N7jis6UM82VDUZZ1_3jGiYDt9x5CKH2NJLI_vrQnZRF58X16v13xWxHKripIV5KYgAA; 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, 04 Aug 2021 03:17:57 GMT', - 'Content-Length', - '980' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .get('/azuretenantid/v2.0/.well-known/openid-configuration') - .reply(200, {"token_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/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', - '06e400e8-5081-41dc-a4da-913b606c0601', - 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', - 'Set-Cookie', - 'fpc=AtFhDgFJ_N5Fr7EE7sMhkqs; expires=Fri, 03-Sep-2021 03:17:58 GMT; path=/; secure; HttpOnly; SameSite=None', - 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrcN5TTtmVQ3AokKJlzhkLceU0PgnAO-Q3ZRtGonL6teK8pU6i02uHwp7fm9ZsHx_pGxq_gSjnZ40RiRXln7DsoHCYK995-PMJQVqn_tKOlH0ekDd0OTLb8hZ--W0U7HUnRLRMqz4Ei8ZpPkDANr7qq1CXSOCNEhpZHHbBWWsrOf8gAA; 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, 04 Aug 2021 03:17:57 GMT', - 'Content-Length', - '1753' -]); - -nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=15b148cb-3a3b-47ab-8137-5d02021a3c4e&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', - '18b0dc39-b4c5-46a0-aea4-dae28ffe5001', - 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', - 'x-ms-clitelem', - '1,0,0,,', - 'Set-Cookie', - 'fpc=AtFhDgFJ_N5Fr7EE7sMhkqvmLYaiAQAAAOb9m9gOAAAA; expires=Fri, 03-Sep-2021 03:17: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', - 'Wed, 04 Aug 2021 03:17:57 GMT', - 'Content-Length', - '1321' -]); - -nock('https://endpoint', {"encodedQueryParams":true}) - .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) - .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ - 'Transfer-Encoding', - 'chunked', - 'Content-Type', - 'application/json', - 'Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', - 'Server', - 'Microsoft-HTTPAPI/2.0', - 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', - 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', - 'Serialization-Type', - 'Avro', - 'Schema-Version', - '1', - 'Schema-Versions-Location', - 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', - 'Strict-Transport-Security', - 'max-age=31536000', - 'Date', - 'Wed, 04 Aug 2021 03:17:58 GMT' -]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_id.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_id.js index 0f27573f2e6d..251dfc4b6301 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_id.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_gets_schema_id.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "759769ad974a64953823c1b169b72321"; +module.exports.hash = "d032bdaf5ab931c9c7ff0eecb704e92e"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8de4b2ee-37a6-4343-89c3-5bed9553cb01', + '1e8e6d6e-f447-4ee4-8911-a53a0f632800', 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBAAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=At0l29uV6FJPs_5NLa8fXBs; expires=Sun, 24-Oct-2021 16:46:25 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrJW9AIz1TVAzX4Hs3hTLSrc6zI7q-jIIs9aZyOI_i8niUZZL4QRXanYqnIRldqfWKU3zoNK4AYDNJ06xM_reKbOYPquenyuEKBFM3rRNEh2Gw5ZVzy-96SGPzp3YDNG-nxvJj61rEH_A0fgutcZXEIszrZdq7MzWKZan53FZguRIgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr4Zil1VIEXZscOGjVaI_YSjBLzlGfNwwK3AsguK4MM7X-AcI5tf_HChYzdFHzeO-G_o05hzPb4rweQ8rvRuSfuq2o-AQJwcQ7ZY-bxkaIoAkIdRFBobmsnXhbggjq5nRvAmOmPrbtGY1DevAWJaK3bPARXdolvYvB7_TiT2C91VIgAA; 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, 04 Aug 2021 20:29:21 GMT', + 'Fri, 24 Sep 2021 16:46:25 GMT', 'Content-Length', '980' ]); @@ -45,6 +45,8 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) .reply(200, {"token_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/token","token_endpoint_auth_methods_supported":["client_secret_post","private_key_jwt","client_secret_basic"],"jwks_uri":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/v2.0","request_uri_parameter_supported":false,"userinfo_endpoint":"https://graph.microsoft.com/oidc/userinfo","authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/authorize","device_authorization_endpoint":"https://login.microsoftonline.com/azuretenantid/oauth2/v2.0/devicecode","http_logout_supported":true,"frontchannel_logout_supported":true,"end_session_endpoint":"https://login.microsoftonline.com/azuretenantid/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/azuretenantid/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', @@ -58,30 +60,30 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b81cff80-991c-40a1-aac9-29bafc280000', + '47770bdf-a07a-4687-a4e1-9f9abfd23400', 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', + '2.1.12071.13 - EUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBAAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:21 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AkPa2JDJt6lFi7Ju1xcBAJY; expires=Sun, 24-Oct-2021 16:46:25 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrGPy6rQ3iC1ixv07JXjhts7gIL8T-gI4o2WlyAWDzitDYQVE3Mj3pNNQnBFjXDQ-3jdBP7aZqnsaRQ7BfIIXYJFfiNCL5HojvKe4tZFSuhDha8g2rlZPoRSC0qhTzogY01oP4azCZhQccKcHCcKq9yq_-afv92KcoYRlu1uHfG40gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrlXQOoYuLQW348QgbCjp6vvNAje_XVYrsi_x4kneLk4_h6ZLl94kSgxHl99OWMKr0Eko8zyeuJi2CkUAqDYsfxgZ019jMDXyab_QFSFZzxczCp6M-2_n2A7czWjvKReg2hGfAQnnSvV48Mjy3TDIU0C5_3CfYIlnZwv1eGSvadWggAA; 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, 04 Aug 2021 20:29:21 GMT', - 'Content-Length', - '1753' + 'Fri, 24 Sep 2021 16:46:25 GMT' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=e356311d-227d-4804-b5fa-f40f87562bff&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=0250ecbc-c547-4f8f-81ef-3e968427eeb2&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .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', + '1321', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -93,27 +95,53 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '22efe2bb-9178-4929-99f2-f67377746c01', + '9f1cdf8d-591b-4115-8f39-413bf93f2800', 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', + '2.1.12071.13 - NCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiBQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:22 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AtLepzPPw55KtG_RJtlUbqQ; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 04 Aug 2021 20:29:21 GMT', - 'Content-Length', - '1321' + 'Fri, 24 Sep 2021 16:46:25 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ + .reply(200, {"id":"e086b25cd8344fad9fc9e1dc3d8363f9"}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions/1?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + 'e086b25cd8344fad9fc9e1dc3d8363f9', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '1', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Fri, 24 Sep 2021 16:46:25 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .post('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) + .query(true) + .reply(200, {"id":"e086b25cd8344fad9fc9e1dc3d8363f9"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,9 +151,9 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Server', 'Microsoft-HTTPAPI/2.0', 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', + 'e086b25cd8344fad9fc9e1dc3d8363f9', 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', + 'https://endpoint:443/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview', 'Serialization-Type', 'Avro', 'Schema-Version', @@ -135,5 +163,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:21 GMT' + 'Fri, 24 Sep 2021 16:46:26 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_registers_schema.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_registers_schema.js index 3705fd8aaf69..6f98ea5c39e8 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_registers_schema.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_registers_schema.js @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'a1d06cd1-3d97-4733-aff6-fc944fea8002', + 'a2cd14a9-03e0-4218-8d11-465bdf1a8c00', 'x-ms-ests-server', - '2.1.11898.12 - EUS ProdSlices', + '2.1.12071.7 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ApLrL6Zvve1JhaKSMuQTKIo; expires=Sun, 24-Oct-2021 16:46:22 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpdIquiIfcGjhxlxTOBYmBg8RfAfC61dTxLR79hRhIlKSYbf_LB1ATCJteYUeOJD5Gmk80VsptdJ_s1zL66MoYjmEFSyV9Wbp8eNGbbLNrPvtjNdqhvmodY3kxNWMCxFa_URCcVP_8OsDjLmRebuQyl6x6t6WKhEPV4ArovlbP_EgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrTrHDYxOl23Zqn86owB2sZdswHQ0UKf-lTi9vKXdAeOTkzc0SznpDG-fYArcuxFnLvUEHqkCZZeRb1tpWN9FAiIqeZW2ninF1gu1rlA1w6_QFQgk8f_XtMB5J97VSilyBqebYBJ4D4eObNCMquRs6yGyLcphflzf0DhHNcpUDiqkgAA; 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, 04 Aug 2021 20:29:19 GMT', + 'Fri, 24 Sep 2021 16:46:22 GMT', 'Content-Length', '980' ]); @@ -58,25 +58,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'b81cff80-991c-40a1-aac9-29ba7f280000', + '2200c9bd-6656-4be8-9c16-a373e31b3c00', 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArsESxTdcv1GvS0CcWeyOfU; expires=Sun, 24-Oct-2021 16:46:22 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrzOpV8Kk6CJmJIdiy8KmvXVc7qsBSEc2ZlyweMHT0O0yvFH-CkTWIwVUB6UUs_6cMx4Hj9y5bjKdIJQQidmtfvC3cIa6eeTEcrHQM9w21hb0m377LGyYkmndVvjo-99hUiyvfekQAm8H0bPigTg_fLkgMdbASVkN9Q5DjTDL0y8IgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrqB5uW8JB26y09SsVvwgnoLCjtSyA28PFqSYEK0ZC2dO7wix4R2PrOgnQL541368-1QQzE-wn-Xf8pVzKMmdxrlhhrNt0-uVsQYyM79DkCo7DJZQPiz4D8bUpd2qJqmDhcqc4xjXPrFpGH2QW3KERjwJbz1ikaPFH3Jsc7bZe870gAA; 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, 04 Aug 2021 20:29:19 GMT', + 'Fri, 24 Sep 2021 16:46:22 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=c9b728f9-9a95-455e-95c0-ed3dbc9d0567&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=bc919883-e261-4a92-8f57-4d8b5615f2fd&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,19 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '519d825c-a94e-415c-a782-14c30d761a01', + '0de0f8ab-29a5-4dca-a872-0a0bb1a83c00', 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAgAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:19 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AoHWjIJTk5JIlSDqVJUh9LnmLYaiAQAAAN7339gOAAAA; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 04 Aug 2021 20:29:19 GMT', + 'Fri, 24 Sep 2021 16:46:22 GMT', 'Content-Length', '1321' ]); @@ -113,7 +113,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(200, {"id":"9f5e37429ed34806bc442f39fdfce97e"}, [ + .reply(200, {"id":"e086b25cd8344fad9fc9e1dc3d8363f9"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,9 +123,9 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Server', 'Microsoft-HTTPAPI/2.0', 'Schema-Id', - '9f5e37429ed34806bc442f39fdfce97e', + 'e086b25cd8344fad9fc9e1dc3d8363f9', 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/9f5e37429ed34806bc442f39fdfce97e?api-version=2020-09-01-preview', + 'https://endpoint:443/$schemagroups/getschemabyid/e086b25cd8344fad9fc9e1dc3d8363f9?api-version=2020-09-01-preview', 'Serialization-Type', 'Avro', 'Schema-Version', @@ -135,5 +135,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:19 GMT' + 'Fri, 24 Sep 2021 16:46:23 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.js index 1c222b24f17b..502286277a2d 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_rejects_schema_registration_with_invalid_args.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "590d8b8e9e17f48ff08c6808bb01e9b9"; +module.exports.hash = "e6c726bef917a02ff50524896e0464f2"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'f2dbdde5-db5a-4996-bc26-6619bda96302', + 'fcc056d4-8fbe-4bac-aa2a-7cb5800a2600', 'x-ms-ests-server', - '2.1.11898.12 - SCUS ProdSlices', + '2.1.12071.13 - EUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4k; expires=Fri, 03-Sep-2021 20:29:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Ajc8F7qBb6xFgZ4OjjUppok; expires=Sun, 24-Oct-2021 16:46:21 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrB39Hpn2A5cIQkGUHfSepYJHOBhvl3p6KmbflGZD6u0pjSPxQdV4kZGo6nFah8iHd-4k-84MigLo3GJinog6Xra9FhWceFc74WVKzAth_txfufIAzb9jY7vrwsEp5yt3MUYClJIxFR0IeNBFKEDK8ujhuBWwNjXePAV3U4LYVZl4gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrOdhqbbSAe5sToY8FG1hWoJbVz4fRMV76Yb6HuaaHQSz6mi2n64GqHkgblGlblC7Kb132ot0QYWEs8sRkehQ1Nz-oqz5doUy_RbwxC4aNRPwg_SxfNKcr10_ZZznpWdoYaGo54lxeNhMBjT_dbBiDIU3PDUEd6TR7mRqhcd6KOQMgAA; 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, 04 Aug 2021 20:29:18 GMT', + 'Fri, 24 Sep 2021 16:46:21 GMT', 'Content-Length', '980' ]); @@ -58,25 +58,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '288acde2-7e5e-495a-b5d8-0a1eb3414301', + '9f1cdf8d-591b-4115-8f39-413b3e3f2800', 'x-ms-ests-server', - '2.1.11898.12 - NCUS ProdSlices', + '2.1.12071.13 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4k; expires=Fri, 03-Sep-2021 20:29:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AhX_3H1yLtBPv32sOAswBww; expires=Sun, 24-Oct-2021 16:46:21 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevriBywxOST0AVd0hJaHrDK7wzFeSP88z5rferb3501SkvY9kA2tjUIsJ_IEzEq6qdbIo5dxdwMBW9TeGJ8pk-6bmFgGXz1s-d3vTHiW4LxQ9c6MXgSdsbXSgGcv7s5ttd_9IGyJhL4C1K3UqWab_TqwdRymEoOVjIKJWrIPY3B-IsgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrU_RO5a_fJ8xIMd9bP1pz5bUkH-Zu8AlOjZ7frXCDBp-6oCpi75urw7agfNEpTJLYpRgNWpsHPWMdKKSCePoxV4NKx2ghdgna4PgOIbQyW8JOVNoOk0eWhzsSWWoMPjFjiBNiHxXgfgTkN4lJjXeUSr9DpycB4tJcAki4Drm-REQgAA; 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, 04 Aug 2021 20:29:18 GMT', + 'Fri, 24 Sep 2021 16:46:21 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.2.0&x-client-OS=linux&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=6ab86dfd-93c2-4d0e-8120-1badd766e446&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=f9c04f0b-c3e4-4d1f-b5c6-d33ae4ae5ad9&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,19 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '8089a432-0de7-4720-afe5-62162b610000', + '2200c9bd-6656-4be8-9c16-a373a11b3c00', 'x-ms-ests-server', - '2.1.11935.12 - SCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=ArqRweA9seFErsvWrKI3q4nmLYaiAQAAAJ7vnNgOAAAA; expires=Fri, 03-Sep-2021 20:29:18 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AoO4Y7wEgcVDmjL2AUyvzX7mLYaiAQAAAN3339gOAAAA; expires=Sun, 24-Oct-2021 16:46:21 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, 04 Aug 2021 20:29:18 GMT', + 'Fri, 24 Sep 2021 16:46:21 GMT', 'Content-Length', '1321' ]); @@ -113,7 +113,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .put('/$schemagroups/group-1/schemas/azsdk_js_test', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(400, {"Code":400,"Detail":"Invalid schema type for PUT request. 'not-valid' is not supported. TrackingId:126dc8df-b692-4f1f-957b-0f85b28c19ed_G6, SystemTracker:endpoint:$schemagroups/group-1/schemas/azsdk_js_test, Timestamp:2021-08-04T20:29:19"}, [ + .reply(400, {"Code":400,"Detail":"Invalid schema type for PUT request. 'not-valid' is not supported. TrackingId:d077b0d2-33f7-4a20-a4c1-b8da6276814c_G28, SystemTracker:endpoint:$schemagroups/group-1/schemas/azsdk_js_test, Timestamp:2021-09-24T16:46:22"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,5 +123,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 04 Aug 2021 20:29:19 GMT' + 'Fri, 24 Sep 2021 16:46:22 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_schema_with_whitespace.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_schema_with_whitespace.js index 17d742860b35..6d2717f7312b 100644 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_schema_with_whitespace.js +++ b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_schema_with_whitespace.js @@ -1,6 +1,6 @@ let nock = require('nock'); -module.exports.hash = "ae7a39310630d1ec278806b3d857e0be"; +module.exports.hash = "f8d5ff57b71aa1d7133b2ba61eee2014"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -23,19 +23,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'edbb4f5f-5792-497e-9af4-db0062c61201', + '19a32ad3-5cd3-4357-9526-ac2ab6382c00', 'x-ms-ests-server', - '2.1.11961.8 - SCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=AkBunk3alhtPuVo6fRLqh4Q; expires=Fri, 17-Sep-2021 17:08:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AgaZR9VhFz9Al2yQ3Wfvf0c; expires=Sun, 24-Oct-2021 16:46:28 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrc92aPHQOAOj5IYDsTQs8_UZ1tMhzxlNNFaZzey94wd0JVKgaVlVhr1wzJeQMrErK59sGqUwdiZ_FaVWjFmbf1PNLB97T8aZqAMV9tGW8NCrOoz4AVnfjp6oTMM6xJw-w7hWDssPWl8PE-NsY0-1hQOrD5kZbQ1ko1uL9PeBqQGwgAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevr-diM8tne7YMxvH6Qu4qD3RnjJfgyolxQlocNWbn0UYBZ2h086SuMbIBlglpuWVNKzf9UY0OilP0ivhCPaBOU8sUng8nvPE8DD6lkcD6CMGuqApTeNGuZZ8aPq8ZLIp6fK1OSZ0HioYCEzVZ2Mx3EXC8TMbdLU5fBDvm0rU4Q8PkgAA; 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, 18 Aug 2021 17:08:05 GMT', + 'Fri, 24 Sep 2021 16:46:28 GMT', 'Content-Length', '980' ]); @@ -58,25 +58,25 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'acdc8473-d303-4bb8-ae99-fa8372b60001', + '97d64610-2df6-46df-a9af-b51597c43000', 'x-ms-ests-server', - '2.1.11961.8 - EUS ProdSlices', + '2.1.12071.13 - EUS ProdSlices', 'Set-Cookie', - 'fpc=AkBunk3alhtPuVo6fRLqh4Q; expires=Fri, 17-Sep-2021 17:08:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AmlMmA63Lm5DngTi7uHzu8I; expires=Sun, 24-Oct-2021 16:46:28 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', - 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7WevrpTPwHTYTstQjKh3kGay6Dv41QWFkLDLlAWW_Bi3DQpIzcfG9aF_Uk5rgAd-M-6RRey6w-8PXUgle2ZX4oykgkIxIdoWfgg6Itp6-vDwEY36fjRvSgBseauUn8LA-bA-1Lul8zOQzQ-keq8K7oAGvlzvcdOiHUzjpC8KFTTO89d8gAA; domain=.login.microsoftonline.com; path=/; secure; HttpOnly; SameSite=None', + 'esctx=AQABAAAAAAD--DLA3VO7QrddgJg7Wevrn5x7eLARdvor_V_W7MHGIXW1SGWg0euPF1mWDAJt5eaDwE--BreFkgLeB4XgWoMj6x-XOc3AWr64EC4kFhy7hq2djF4QHvW1kJYD5kBouyLIZLOndmn75itbjC6kOjeuTeI7mdXgWmH_2ujUlJGitL93OxuFGKTgYwspE-hv7Z4gAA; 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, 18 Aug 2021 17:08:05 GMT', + 'Fri, 24 Sep 2021 16:46:28 GMT', 'Content-Length', '1753' ]); nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) - .post('/azuretenantid/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.3.0&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=8a968471-34fe-471d-b0e8-ac0f4e7bac1f&client_secret=azure_client_secret") + .post('/azuretenantid/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.3.1&x-client-OS=linux&x-client-CPU=x64&x-ms-lib-capability=retry-after, h429&x-client-current-telemetry=5|771,2,,,|,&x-client-last-telemetry=5|0|||0,0&client-request-id=d90dc15e-8eb1-488f-b17b-0ce341199195&client_secret=azure_client_secret&claims=%7B%22access_token%22%3A%7B%22xms_cc%22%3A%7B%22values%22%3A%5B%22CP1%22%5D%7D%7D%7D") .reply(200, {"token_type":"Bearer","expires_in":86399,"ext_expires_in":86399,"access_token":"access_token"}, [ 'Cache-Control', 'no-store, no-cache', @@ -93,19 +93,19 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'edbb4f5f-5792-497e-9af4-db006ec61201', + '0de0f8ab-29a5-4dca-a872-0a0b53aa3c00', 'x-ms-ests-server', - '2.1.11961.8 - SCUS ProdSlices', + '2.1.12071.13 - SCUS ProdSlices', 'x-ms-clitelem', '1,0,0,,', 'Set-Cookie', - 'fpc=AkBunk3alhtPuVo6fRLqh4TmLYaiAQAAAHU1r9gOAAAA; expires=Fri, 17-Sep-2021 17:08:06 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ApE0TKCE9C1DuMN07tMET6c; expires=Sun, 24-Oct-2021 16:46: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', - 'Wed, 18 Aug 2021 17:08:05 GMT', + 'Fri, 24 Sep 2021 16:46:29 GMT', 'Content-Length', '1321' ]); @@ -113,7 +113,7 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) nock('https://endpoint', {"encodedQueryParams":true}) .put('/$schemagroups/group-1/schemas/azsdk_js_test2', {"type":"record","name":"Test","fields":[{"name":"X","type":{"type":"string"}}]}) .query(true) - .reply(200, {"id":"207b5ecbbff7492d902647dfde854fff"}, [ + .reply(200, {"id":"24972ebfc1bf46a1a6e29f1845794f85"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -123,9 +123,9 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Server', 'Microsoft-HTTPAPI/2.0', 'Schema-Id', - '207b5ecbbff7492d902647dfde854fff', + '24972ebfc1bf46a1a6e29f1845794f85', 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/207b5ecbbff7492d902647dfde854fff?api-version=2020-09-01-preview', + 'https://endpoint:443/$schemagroups/getschemabyid/24972ebfc1bf46a1a6e29f1845794f85?api-version=2020-09-01-preview', 'Serialization-Type', 'Avro', 'Schema-Version', @@ -135,13 +135,41 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 18 Aug 2021 17:08:07 GMT' + 'Fri, 24 Sep 2021 16:46:29 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .get('/$schemagroups/getSchemaById/24972ebfc1bf46a1a6e29f1845794f85') + .query(true) + .reply(200, {"type":"record","name":"Test","fields":[{"name":"X","type":{"type":"string"}}]}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test2/versions/1?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + '24972ebfc1bf46a1a6e29f1845794f85', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/24972ebfc1bf46a1a6e29f1845794f85?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '1', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/group-1/schemas/azsdk_js_test2/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Fri, 24 Sep 2021 16:46:29 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) .post('/$schemagroups/group-1/schemas/azsdk_js_test2', {"type":"record","name":"Test","fields":[{"name":"X","type":{"type":"string"}}]}) .query(true) - .reply(200, {"id":"207b5ecbbff7492d902647dfde854fff"}, [ + .reply(200, {"id":"24972ebfc1bf46a1a6e29f1845794f85"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', @@ -151,9 +179,9 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Server', 'Microsoft-HTTPAPI/2.0', 'Schema-Id', - '207b5ecbbff7492d902647dfde854fff', + '24972ebfc1bf46a1a6e29f1845794f85', 'Schema-Id-Location', - 'https://endpoint:443/$schemagroups/getschemabyid/207b5ecbbff7492d902647dfde854fff?api-version=2020-09-01-preview', + 'https://endpoint:443/$schemagroups/getschemabyid/24972ebfc1bf46a1a6e29f1845794f85?api-version=2020-09-01-preview', 'Serialization-Type', 'Avro', 'Schema-Version', @@ -163,5 +191,5 @@ nock('https://endpoint', {"encodedQueryParams":true}) 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 18 Aug 2021 17:08:07 GMT' + 'Fri, 24 Sep 2021 16:46:29 GMT' ]); diff --git a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_sets_endpoint_and_adjusts_user_agent_prefix_in_constructor.js b/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_sets_endpoint_and_adjusts_user_agent_prefix_in_constructor.js deleted file mode 100644 index 15f749b9f383..000000000000 --- a/sdk/schemaregistry/schema-registry/recordings/node/schemaregistryclient/recording_sets_endpoint_and_adjusts_user_agent_prefix_in_constructor.js +++ /dev/null @@ -1,5 +0,0 @@ -let nock = require('nock'); - -module.exports.hash = "58054c151879a9285dfbd1eccfcfbc2b"; - -module.exports.testInfo = {"uniqueName":{},"newDate":{}} diff --git a/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts b/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts index dbccaf0f0e99..1cdf59548ca5 100644 --- a/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts +++ b/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts @@ -33,9 +33,6 @@ export class SchemaRegistryClient implements SchemaRegistry { /** Underlying autorest generated client. */ private readonly client: GeneratedSchemaRegistryClient; - private readonly schemaToIdMap: Map; - private readonly idToSchemaMap: Map; - /** * Creates a new client for Azure Schema Registry service. * @@ -67,13 +64,6 @@ export class SchemaRegistryClient implements SchemaRegistry { const authPolicy = bearerTokenAuthenticationPolicy({ credential, scopes: DEFAULT_SCOPE }); this.client.pipeline.addPolicy(authPolicy); - this.schemaToIdMap = new Map(); - this.idToSchemaMap = new Map(); - } - - private addToCache(schema: SchemaDescription, id: SchemaProperties): void { - this.schemaToIdMap.set(schema, id); - this.idToSchemaMap.set(id.id, { ...id, definition: schema.definition }); } /** @@ -90,11 +80,9 @@ export class SchemaRegistryClient implements SchemaRegistry { schema: SchemaDescription, options?: RegisterSchemaOptions ): Promise { - const id = await this.client.schema + return this.client.schema .register(schema.groupName, schema.name, schema.format, schema.definition, options) .then(convertSchemaIdResponse); - this.addToCache(schema, id); - return id; } /** @@ -108,15 +96,9 @@ export class SchemaRegistryClient implements SchemaRegistry { schema: SchemaDescription, options?: GetSchemaPropertiesOptions ): Promise { - const cached = this.schemaToIdMap.get(schema); - if (cached !== undefined) { - return cached; - } - const id = await this.client.schema + return this.client.schema .queryIdByContent(schema.groupName, schema.name, schema.format, schema.definition, options) .then(convertSchemaIdResponse); - this.addToCache(schema, id); - return id; } /** @@ -126,19 +108,10 @@ export class SchemaRegistryClient implements SchemaRegistry { * @returns Schema with given ID or undefined if no schema was found with the given ID. */ async getSchema(id: string, options?: GetSchemaOptions): Promise { - const cached = this.idToSchemaMap.get(id); - if (cached !== undefined) { - return cached; - } const { flatResponse, rawResponse } = await getRawResponse( (paramOptions) => this.client.schema.getById(id, paramOptions), options || {} ); - const schema = convertSchemaResponse(flatResponse, rawResponse); - // the service should send schema's name and group in separate headers so - // we can implement the other direction of the bidirectional caching. - // see https://github.com/Azure/azure-sdk-for-js/issues/16763 - this.idToSchemaMap.set(id, schema); - return schema; + return convertSchemaResponse(flatResponse, rawResponse); } } diff --git a/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts b/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts index 989d31dd3d85..8534cb12f220 100644 --- a/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts +++ b/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts @@ -11,7 +11,6 @@ import { ClientSecretCredential } from "@azure/identity"; import { SchemaRegistryClient, SchemaDescription, SchemaProperties } from "../src/index"; import { FullOperationResponse, OperationOptions } from "@azure/core-client"; -import { convertSchemaIdResponse } from "../src/conversions"; const options: OperationOptions = { onResponse: (rawResponse: FullOperationResponse) => { @@ -104,7 +103,7 @@ describe("SchemaRegistryClient", function() { }); it("fails to get schema ID when no matching schema exists", async () => { - assert.isRejected(client.getSchemaProperties({ ...schema, name: "never-registered" })); + await assert.isRejected(client.getSchemaProperties({ ...schema, name: "never-registered" })); }); it("gets schema ID", async () => { @@ -122,7 +121,7 @@ describe("SchemaRegistryClient", function() { }); it("fails to get schema when no schema exists with given ID", async () => { - assert.isRejected(client.getSchema("ffffffffffffffffffffffffffffffff")); + await assert.isRejected(client.getSchema("ffffffffffffffffffffffffffffffff")); }); it("gets schema by ID", async () => { @@ -134,76 +133,6 @@ describe("SchemaRegistryClient", function() { assert.equal(found.definition, schema.definition); }); - it("cache schema and ID", async () => { - const registered = await client.registerSchema(schema, options); - assertIsValidSchemaId(registered); - - const foundSchema = await client.getSchema(registered.id, { - onResponse: () => { - assert.fail("Unexpected call to the service"); - } - }); - assertIsValidSchemaId(foundSchema); - assert.equal(foundSchema.definition, schema.definition); - - const foundId = await client.getSchemaProperties(schema, { - onResponse: () => { - assert.fail("Unexpected call to the service"); - } - }); - assertIsValidSchemaId(foundId); - assert.equal(foundId?.id, registered.id); - }); - - it("cache schema and ID if not registered by the current client instance", async () => { - // register a schema without caching. - const registered = await client["client"]["schema"] - .register(schema.groupName, schema.name, schema.format, schema.definition, options) - .then(convertSchemaIdResponse); - assertIsValidSchemaId(registered); - - let firstCall = false; - // first call sends a request to the service and then cache the response - const foundSchemaFirstCall = await client.getSchema(registered.id, { - onResponse: () => { - firstCall = true; - } - }); - assert.isTrue(firstCall, "Expected call to the service did not happen"); - assertIsValidSchemaId(foundSchemaFirstCall); - assert.equal(foundSchemaFirstCall.definition, schema.definition); - // second call returns the result from the cache - const foundSchemaSecondCall = await client.getSchema(registered.id, { - onResponse: () => { - assert.fail("Unexpected call to the service"); - } - }); - assert.isTrue(firstCall, "Expected call to the service did not happen"); - assertIsValidSchemaId(foundSchemaSecondCall); - assert.equal(foundSchemaSecondCall.definition, schema.definition); - - firstCall = false; - // first call sends a request to the service and then cache the response - const foundIdFirstCall = await client.getSchemaProperties(schema, { - onResponse: () => { - firstCall = true; - } - }); - assert.isTrue(firstCall, "Expected call to the service did not happen"); - assertIsValidSchemaId(foundIdFirstCall); - assert.equal(foundIdFirstCall?.id, registered.id); - - // second call returns the result from the cache - const foundIdSecondCall = await client.getSchemaProperties(schema, { - onResponse: () => { - assert.fail("Unexpected call to the service"); - } - }); - assert.isTrue(firstCall, "Expected call to the service did not happen"); - assertIsValidSchemaId(foundIdSecondCall); - assert.equal(foundIdSecondCall?.id, registered.id); - }); - it("schema with whitespace", async () => { const schema2: SchemaDescription = { name: "azsdk_js_test2", @@ -220,35 +149,18 @@ describe("SchemaRegistryClient", function() { const registered = await client.registerSchema(schema2, options); assertIsValidSchemaId(registered); - const foundSchema = await client.getSchema(registered.id, { - onResponse: () => { - assert.fail("Unexpected call to the service"); - } - }); + const foundSchema = await client.getSchema(registered.id); assertIsValidSchemaId(foundSchema); - assert.equal(foundSchema.definition, schema2.definition); - - let ran = false; - const foundId = await client.getSchemaProperties( - { - // definition that comes from the service does not have whitespaces - definition: foundSchema.definition, - groupName: schema2.groupName, - name: schema2.name, - format: foundSchema.format - }, - { - onResponse: () => { - ran = true; - } - } - ); - // the schema comes from the service normalized so that its definition has no whitespace - // which is different from the original schema that was registered first and lives - // in the cache. There is a trade-off between the perf hit for doing client-side - // normalization and the perf hit for doing an extra call to the service for the - // normalized one. - assert.isTrue(ran, "Expected call to the service did not happen"); + // the schema comes from the service normalized + assert.equal(foundSchema.definition, schema2.definition.replace(/\s/g, "")); + + const foundId = await client.getSchemaProperties({ + // content that comes from the service does not have whitespaces + definition: foundSchema.definition, + groupName: schema2.groupName, + name: schema2.name, + format: foundSchema.format + }); assertIsValidSchemaId(foundId); }); });