From 2285943924fd3843114d9ebb058862a46f5e71fe Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Mon, 5 Oct 2020 12:14:30 -0700 Subject: [PATCH 1/2] Update to latest schema registry swagger --- .../src/schemaRegistryAvroSerializer.ts | 2 +- .../schema-registry/src/conversions.ts | 13 +++-- .../generatedSchemaRegistryClient.ts | 20 ++------ .../generatedSchemaRegistryClientContext.ts | 2 +- .../schema-registry/src/generated/index.ts | 11 +++++ .../src/generated/models/index.ts | 26 +++++----- .../src/generated/models/mappers.ts | 48 +++++++++---------- .../src/generated/models/parameters.ts | 40 ++++++++++++---- .../src/generated/operations/schema.ts | 33 ++++++++----- .../src/schemaRegistryClient.ts | 11 +---- .../schema-registry/swagger/README.md | 13 ++++- .../test/schemaRegistry.spec.ts | 16 +------ 12 files changed, 128 insertions(+), 107 deletions(-) create mode 100644 sdk/schemaregistry/schema-registry/src/generated/index.ts diff --git a/sdk/schemaregistry/schema-registry-avro/src/schemaRegistryAvroSerializer.ts b/sdk/schemaregistry/schema-registry-avro/src/schemaRegistryAvroSerializer.ts index 6c9c42b13bce..11dfec44b4cc 100644 --- a/sdk/schemaregistry/schema-registry-avro/src/schemaRegistryAvroSerializer.ts +++ b/sdk/schemaregistry/schema-registry-avro/src/schemaRegistryAvroSerializer.ts @@ -171,7 +171,7 @@ export class SchemaRegistryAvroSerializer { const schemaResponse = await this.registry.getSchemaById(schemaId); if (!schemaResponse.serializationType.match(/^avro$/i)) { throw new Error( - `Schema with ID '${schemaResponse.id}' has has serialization type '${schemaResponse.serializationType}', not 'avro'.` + `Schema with ID '${schemaResponse.id}' has serialization type '${schemaResponse.serializationType}', not 'avro'.` ); } diff --git a/sdk/schemaregistry/schema-registry/src/conversions.ts b/sdk/schemaregistry/schema-registry/src/conversions.ts index 60fbb2162c77..35c60a46741b 100644 --- a/sdk/schemaregistry/schema-registry/src/conversions.ts +++ b/sdk/schemaregistry/schema-registry/src/conversions.ts @@ -30,7 +30,10 @@ type GeneratedResponse = GeneratedSchemaResponse | GeneratedSchemaIdResponse; * @internal */ export function convertSchemaResponse(response: GeneratedSchemaResponse): Schema { - return convertResponse(response, { content: response.body }); + // https://github.com/Azure/azure-sdk-for-js/issues/11649 + // Although response.body is typed as string, it is a parsed JSON object, + // so we use _response.bodyAsText instead as a workaround. + return convertResponse(response, { content: response._response.bodyAsText }); } /** @@ -49,10 +52,10 @@ function convertResponse(response: GeneratedResponse, additionalProperties: T // `!`s here because server is required to return these on success, but that // is not modeled by the generated client. location: response.location!, - locationById: response.xSchemaIdLocation!, - id: response.xSchemaId!, - version: response.xSchemaVersion!, - serializationType: response.xSchemaType!, + locationById: response.schemaIdLocation!, + id: response.schemaId!, + version: response.schemaVersion!, + serializationType: response.serializationType!, ...additionalProperties }; diff --git a/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClient.ts b/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClient.ts index 6d644bbed693..40b24b350fd4 100644 --- a/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClient.ts +++ b/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClient.ts @@ -6,13 +6,11 @@ * Changes may cause incorrect behavior and will be lost if the code is regenerated. */ -import * as operations from "./operations"; -import * as Models from "./models"; -import * as Mappers from "./models/mappers"; +import { Schema } from "./operations"; import { GeneratedSchemaRegistryClientContext } from "./generatedSchemaRegistryClientContext"; import { GeneratedSchemaRegistryClientOptionalParams } from "./models"; -class GeneratedSchemaRegistryClient extends GeneratedSchemaRegistryClientContext { +export class GeneratedSchemaRegistryClient extends GeneratedSchemaRegistryClientContext { /** * Initializes a new instance of the GeneratedSchemaRegistryClient class. * @param endpoint The Schema Registry service endpoint, for example @@ -24,18 +22,8 @@ class GeneratedSchemaRegistryClient extends GeneratedSchemaRegistryClientContext options?: GeneratedSchemaRegistryClientOptionalParams ) { super(endpoint, options); - this.schema = new operations.Schema(this); + this.schema = new Schema(this); } - schema: operations.Schema; + schema: Schema; } - -// Operation Specifications - -export { - GeneratedSchemaRegistryClient, - GeneratedSchemaRegistryClientContext, - Models as GeneratedSchemaRegistryModels, - Mappers as GeneratedSchemaRegistryMappers -}; -export * from "./operations"; diff --git a/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClientContext.ts b/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClientContext.ts index 847088ada49f..2bce0ee75d58 100644 --- a/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClientContext.ts +++ b/sdk/schemaregistry/schema-registry/src/generated/generatedSchemaRegistryClientContext.ts @@ -50,6 +50,6 @@ export class GeneratedSchemaRegistryClientContext extends coreHttp.ServiceClient this.endpoint = endpoint; // Assigning values to Constant parameters - this.apiVersion = options.apiVersion || "2018-01-01-preview"; + this.apiVersion = options.apiVersion || "2020-09-01-preview"; } } diff --git a/sdk/schemaregistry/schema-registry/src/generated/index.ts b/sdk/schemaregistry/schema-registry/src/generated/index.ts new file mode 100644 index 000000000000..f2753af619ad --- /dev/null +++ b/sdk/schemaregistry/schema-registry/src/generated/index.ts @@ -0,0 +1,11 @@ +/* + * Copyright (c) Microsoft Corporation. + * Licensed under the MIT License. + * + * Code generated by Microsoft (R) AutoRest Code Generator. + * Changes may cause incorrect behavior and will be lost if the code is regenerated. + */ + +export * from "./models"; +export { GeneratedSchemaRegistryClient } from "./generatedSchemaRegistryClient"; +export { GeneratedSchemaRegistryClientContext } from "./generatedSchemaRegistryClientContext"; diff --git a/sdk/schemaregistry/schema-registry/src/generated/models/index.ts b/sdk/schemaregistry/schema-registry/src/generated/models/index.ts index 9131de63911a..76c9ef7ad524 100644 --- a/sdk/schemaregistry/schema-registry/src/generated/models/index.ts +++ b/sdk/schemaregistry/schema-registry/src/generated/models/index.ts @@ -29,19 +29,19 @@ export interface SchemaGetByIdHeaders { /** * Serialization type for the schema being stored. */ - xSchemaType?: string; + serializationType?: string; /** * References specific schema in registry namespace. */ - xSchemaId?: string; + schemaId?: string; /** * URL location of schema, identified by schema ID. */ - xSchemaIdLocation?: string; + schemaIdLocation?: string; /** * Version of the returned schema. */ - xSchemaVersion?: number; + schemaVersion?: number; } /** @@ -55,19 +55,19 @@ export interface SchemaQueryIdByContentHeaders { /** * Serialization type for the schema being stored. */ - xSchemaType?: string; + serializationType?: string; /** * References specific schema in registry namespace. */ - xSchemaId?: string; + schemaId?: string; /** * URL location of schema, identified by schema ID. */ - xSchemaIdLocation?: string; + schemaIdLocation?: string; /** * Version of the returned schema. */ - xSchemaVersion?: number; + schemaVersion?: number; } /** @@ -81,25 +81,25 @@ export interface SchemaRegisterHeaders { /** * Serialization type for the schema being registered. */ - xSchemaType?: string; + serializationType?: string; /** * References specific schema in registry namespace. */ - xSchemaId?: string; + schemaId?: string; /** * URL location of schema, identified by schema ID. */ - xSchemaIdLocation?: string; + schemaIdLocation?: string; /** * Version of the returned schema. */ - xSchemaVersion?: number; + schemaVersion?: number; } /** * Defines values for SerializationType. */ -export type SerializationType = "avro"; +export type SerializationType = "avro" | string; /** * Contains response data for the getById operation. diff --git a/sdk/schemaregistry/schema-registry/src/generated/models/mappers.ts b/sdk/schemaregistry/schema-registry/src/generated/models/mappers.ts index b04f86c49da0..a5f9d87c09b1 100644 --- a/sdk/schemaregistry/schema-registry/src/generated/models/mappers.ts +++ b/sdk/schemaregistry/schema-registry/src/generated/models/mappers.ts @@ -34,26 +34,26 @@ export const SchemaGetByIdHeaders: coreHttp.CompositeMapper = { name: "String" } }, - xSchemaType: { - serializedName: "x-schema-type", + serializationType: { + serializedName: "serialization-type", type: { name: "String" } }, - xSchemaId: { - serializedName: "x-schema-id", + schemaId: { + serializedName: "schema-id", type: { name: "String" } }, - xSchemaIdLocation: { - serializedName: "x-schema-id-location", + schemaIdLocation: { + serializedName: "schema-id-location", type: { name: "String" } }, - xSchemaVersion: { - serializedName: "x-schema-version", + schemaVersion: { + serializedName: "schema-version", type: { name: "Number" } @@ -73,26 +73,26 @@ export const SchemaQueryIdByContentHeaders: coreHttp.CompositeMapper = { name: "String" } }, - xSchemaType: { - serializedName: "x-schema-type", + serializationType: { + serializedName: "serialization-type", type: { name: "String" } }, - xSchemaId: { - serializedName: "x-schema-id", + schemaId: { + serializedName: "schema-id", type: { name: "String" } }, - xSchemaIdLocation: { - serializedName: "x-schema-id-location", + schemaIdLocation: { + serializedName: "schema-id-location", type: { name: "String" } }, - xSchemaVersion: { - serializedName: "x-schema-version", + schemaVersion: { + serializedName: "schema-version", type: { name: "Number" } @@ -112,26 +112,26 @@ export const SchemaRegisterHeaders: coreHttp.CompositeMapper = { name: "String" } }, - xSchemaType: { - serializedName: "x-schema-type", + serializationType: { + serializedName: "serialization-type", type: { name: "String" } }, - xSchemaId: { - serializedName: "x-schema-id", + schemaId: { + serializedName: "schema-id", type: { name: "String" } }, - xSchemaIdLocation: { - serializedName: "x-schema-id-location", + schemaIdLocation: { + serializedName: "schema-id-location", type: { name: "String" } }, - xSchemaVersion: { - serializedName: "x-schema-version", + schemaVersion: { + serializedName: "schema-version", type: { name: "Number" } diff --git a/sdk/schemaregistry/schema-registry/src/generated/models/parameters.ts b/sdk/schemaregistry/schema-registry/src/generated/models/parameters.ts index 9a4d4274022a..93345b330c64 100644 --- a/sdk/schemaregistry/schema-registry/src/generated/models/parameters.ts +++ b/sdk/schemaregistry/schema-registry/src/generated/models/parameters.ts @@ -7,11 +7,23 @@ */ import { + OperationParameter, OperationURLParameter, - OperationQueryParameter, - OperationParameter + OperationQueryParameter } from "@azure/core-http"; +export const accept: OperationParameter = { + parameterPath: "accept", + mapper: { + defaultValue: "text/plain; charset=utf-8", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } +}; + export const endpoint: OperationURLParameter = { parameterPath: "endpoint", mapper: { @@ -38,9 +50,7 @@ export const schemaId: OperationURLParameter = { export const apiVersion: OperationQueryParameter = { parameterPath: "apiVersion", mapper: { - // TODO: Manually patched for now due to https://github.com/Azure/azure-rest-api-specs/pull/10220#discussion_r469588293 - // defaultValue: "2018-01-01-preview", - defaultValue: "2017-04", + defaultValue: "2020-09-01-preview", isConstant: true, serializedName: "api-version", type: { @@ -52,7 +62,7 @@ export const apiVersion: OperationQueryParameter = { export const contentType: OperationParameter = { parameterPath: ["options", "contentType"], mapper: { - defaultValue: "application/json", + defaultValue: "text/plain; charset=utf-8", isConstant: true, serializedName: "Content-Type", type: { @@ -72,6 +82,18 @@ export const schemaContent: OperationParameter = { } }; +export const accept1: OperationParameter = { + parameterPath: "accept", + mapper: { + defaultValue: "application/json", + isConstant: true, + serializedName: "Accept", + type: { + name: "String" + } + } +}; + export const groupName: OperationURLParameter = { parameterPath: "groupName", mapper: { @@ -94,10 +116,10 @@ export const schemaName: OperationURLParameter = { } }; -export const xSchemaType: OperationParameter = { - parameterPath: "xSchemaType", +export const serializationType: OperationParameter = { + parameterPath: "serializationType", mapper: { - serializedName: "X-Schema-Type", + serializedName: "Serialization-Type", required: true, type: { name: "String" diff --git a/sdk/schemaregistry/schema-registry/src/generated/operations/schema.ts b/sdk/schemaregistry/schema-registry/src/generated/operations/schema.ts index db0d51fe4aa7..9df38c2488d0 100644 --- a/sdk/schemaregistry/schema-registry/src/generated/operations/schema.ts +++ b/sdk/schemaregistry/schema-registry/src/generated/operations/schema.ts @@ -56,14 +56,14 @@ export class Schema { * @param groupName Schema group under which schema is registered. Group's serialization type should * match the serialization type specified in the request. * @param schemaName Name of the registered schema. - * @param xSchemaType Serialization type for the schema being registered. - * @param schemaContent String representation of the registered schema. + * @param serializationType Serialization type for the schema being registered. + * @param schemaContent String representation (UTF-8) of the registered schema. * @param options The options parameters. */ queryIdByContent( groupName: string, schemaName: string, - xSchemaType: SerializationType, + serializationType: SerializationType, schemaContent: string, options?: coreHttp.OperationOptions ): Promise { @@ -74,7 +74,7 @@ export class Schema { { groupName, schemaName, - xSchemaType, + serializationType, schemaContent, options: operationOptions }, @@ -90,14 +90,14 @@ export class Schema { * @param groupName Schema group under which schema should be registered. Group's serialization type * should match the serialization type specified in the request. * @param schemaName Name of schema being registered. - * @param xSchemaType Serialization type for the schema being registered. - * @param schemaContent String representation of the schema being registered. + * @param serializationType Serialization type for the schema being registered. + * @param schemaContent String representation (UTF-8) of the schema being registered. * @param options The options parameters. */ register( groupName: string, schemaName: string, - xSchemaType: SerializationType, + serializationType: SerializationType, schemaContent: string, options?: coreHttp.OperationOptions ): Promise { @@ -108,7 +108,7 @@ export class Schema { { groupName, schemaName, - xSchemaType, + serializationType, schemaContent, options: operationOptions }, @@ -134,6 +134,7 @@ const getByIdOperationSpec: coreHttp.OperationSpec = { }, queryParameters: [Parameters.apiVersion], urlParameters: [Parameters.endpoint, Parameters.schemaId], + headerParameters: [Parameters.accept], serializer }; const queryIdByContentOperationSpec: coreHttp.OperationSpec = { @@ -155,8 +156,12 @@ const queryIdByContentOperationSpec: coreHttp.OperationSpec = { Parameters.groupName, Parameters.schemaName ], - headerParameters: [Parameters.contentType, Parameters.xSchemaType], - mediaType: "json", + headerParameters: [ + Parameters.contentType, + Parameters.accept1, + Parameters.serializationType + ], + mediaType: "text", serializer }; const registerOperationSpec: coreHttp.OperationSpec = { @@ -178,7 +183,11 @@ const registerOperationSpec: coreHttp.OperationSpec = { Parameters.groupName, Parameters.schemaName ], - headerParameters: [Parameters.contentType, Parameters.xSchemaType], - mediaType: "json", + headerParameters: [ + Parameters.contentType, + Parameters.accept1, + Parameters.serializationType + ], + mediaType: "text", serializer }; diff --git a/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts b/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts index 22c2ffa83aad..cb4733cb93b9 100644 --- a/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts +++ b/sdk/schemaregistry/schema-registry/src/schemaRegistryClient.ts @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. // Licensed under the MIT license. -import { SerializationType } from "./generated/models"; import { GeneratedSchemaRegistryClient } from "./generated/generatedSchemaRegistryClient"; import { TokenCredential } from "@azure/core-http"; import { createPipeline } from "./pipeline"; @@ -63,10 +62,7 @@ export class SchemaRegistryClient implements SchemaRegistry { const response = await this.client.schema.register( schema.group, schema.name, - // cast due to https://github.com/Azure/autorest.typescript/issues/715 - // serialization type is an extensible enum, and therefore any string - // should be allowed. - schema.serializationType as SerializationType, + schema.serializationType, schema.content, options ); @@ -84,10 +80,7 @@ export class SchemaRegistryClient implements SchemaRegistry { const response = await this.client.schema.queryIdByContent( schema.group, schema.name, - // cast due to https://github.com/Azure/autorest.typescript/issues/715 - // serialization type is an extensible enum, and therefore any string - // should be allowed. - schema.serializationType as SerializationType, + schema.serializationType, schema.content, options ); diff --git a/sdk/schemaregistry/schema-registry/swagger/README.md b/sdk/schemaregistry/schema-registry/swagger/README.md index 347996eb5a61..807012da573a 100644 --- a/sdk/schemaregistry/schema-registry/swagger/README.md +++ b/sdk/schemaregistry/schema-registry/swagger/README.md @@ -18,7 +18,16 @@ add-credentials: false license-header: MICROSOFT_MIT_NO_VERSION output-folder: ../ source-code-folder-path: ./src/generated -input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/a90b9146e543d3eec11381bd52d3b6ff271b1b78/specification/schemaregistry/data-plane/Microsoft.EventHub/preview/2018-01-01-preview/schemaregistry.json +input-file: https://raw.githubusercontent.com/Azure/azure-rest-api-specs/1e23d91e875e4464e57667639e06408cef99868d/specification/schemaregistry/data-plane/Microsoft.EventHub/preview/2020-09-01-preview/schemaregistry.json use-extension: - "@autorest/typescript": "6.0.0-dev.20200715.2" + "@autorest/typescript": "6.0.0-dev.20200918.1" + "@autorest/modelerfour": "4.15.421" +``` + +```yaml +directive: + from: swagger-document + where: $.paths..["Serialization-Type"] + transform: $.enum = undefined; $["x-ms-enum"] = undefined; return $; + reason: https://github.com/Azure/autorest.typescript/issues/736 ``` diff --git a/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts b/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts index 19ed8e5ede58..dc6dc1b52cdb 100644 --- a/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts +++ b/sdk/schemaregistry/schema-registry/test/schemaRegistry.spec.ts @@ -91,8 +91,6 @@ describe("SchemaRegistryClient", function() { }); it("rejects schema registration with invalid args", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); - await assert.isRejected(client.registerSchema({ ...schema, name: null! }), /null/); await assert.isRejected(client.registerSchema({ ...schema, group: null! }), /null/); await assert.isRejected(client.registerSchema({ ...schema, content: null! }), /null/); @@ -104,8 +102,6 @@ describe("SchemaRegistryClient", function() { }); it("registers schema", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); - const registered = await client.registerSchema(schema); assertStatus(registered, 200); assertIsValidSchemaId(registered); @@ -113,15 +109,13 @@ describe("SchemaRegistryClient", function() { // changing schema content bumps version, generates new id/locations const changed = await client.registerSchema({ ...schema, - content: schema.content.replace("name", "fullName") + content: schema.content.replace("favoriteNumber", "secondFavoriteNumber") }); assertStatus(changed, 200); assertIsValidSchemaId(changed); }); it("fails to get schema ID when given invalid args", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); - await assert.isRejected(client.getSchemaId({ ...schema, name: null! }), /null/); await assert.isRejected(client.getSchemaId({ ...schema, group: null! }), /null/); await assert.isRejected(client.getSchemaId({ ...schema, content: null! }), /null/); @@ -133,7 +127,6 @@ describe("SchemaRegistryClient", function() { }); it("fails to get schema ID when no matching schema exists", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); await assert.isRejected( client.getSchemaId({ ...schema, name: "never-registered" }), /never-registered/ @@ -141,8 +134,6 @@ describe("SchemaRegistryClient", function() { }); it("gets schema ID", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); - const registered = await client.registerSchema(schema); assertStatus(registered, 200); assertIsValidSchemaId(registered); @@ -159,8 +150,6 @@ describe("SchemaRegistryClient", function() { }); it("fails to get schema when no schema exists with given ID", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); - await assert.isRejected( client.getSchemaById("ffffffffffffffffffffffffffffffff"), /ffffffffffffffffffffffffffffffff/ @@ -168,8 +157,6 @@ describe("SchemaRegistryClient", function() { }); it("gets schema by ID", async () => { - recorder.skip("node", "https://github.com/Azure/azure-sdk-for-js/issues/10659"); - const registered = await client.registerSchema(schema); assertStatus(registered, 200); assertIsValidSchemaId(registered); @@ -177,7 +164,6 @@ describe("SchemaRegistryClient", function() { const found = await client.getSchemaById(registered.id); assertStatus(found, 200); assertIsValidSchemaId(found); - assert.equal(found.content, schema.content); }); }); From bd03237d78853324e08c634cee4172f87632e3d8 Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Mon, 5 Oct 2020 14:32:41 -0700 Subject: [PATCH 2/2] Update recordings --- ...et_schema_by_id_when_given_invalid_id.json | 2 +- ...get_schema_id_when_given_invalid_args.json | 18 ++-- ...ema_id_when_no_matching_schema_exists.json | 18 ++-- ...a_when_no_schema_exists_with_given_id.json | 16 ++-- .../recording_gets_schema_by_id.json | 74 ++++++--------- .../recording_gets_schema_id.json | 72 +++++---------- .../recording_registers_schema.json | 74 ++++++--------- ...schema_registration_with_invalid_args.json | 18 ++-- ..._get_schema_by_id_when_given_invalid_id.js | 2 +- ...o_get_schema_id_when_given_invalid_args.js | 18 ++-- ...chema_id_when_no_matching_schema_exists.js | 22 ++--- ...ema_when_no_schema_exists_with_given_id.js | 20 ++-- .../recording_gets_schema_by_id.js | 91 ++++++++++++++++++- .../recording_gets_schema_id.js | 91 ++++++++++++++++++- .../recording_registers_schema.js | 91 ++++++++++++++++++- ...s_schema_registration_with_invalid_args.js | 22 ++--- 16 files changed, 425 insertions(+), 224 deletions(-) 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 62182470fe4e..cf9ee3f0eebb 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": "7220741891b091659a7e96987c33a460" + "hash": "6f572a97d843ab607d39229f05cc94be" } \ 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 3ec4aa57a074..6ef54403529f 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,29 +11,29 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:57:59 GMT", + "date": "Mon, 05 Oct 2020 21:31:53 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - SCUS ProdSlices", - "x-ms-request-id": "a44e3961-5fcd-4a2b-af72-721fb1011c00" + "x-ms-ests-server": "2.1.11086.7 - WUS2 ProdSlices", + "x-ms-request-id": "9d5e0c6e-eefb-4836-8253-bcf009e2b601" } }, { "method": "POST", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 400, - "response": "400Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:a8ca8631-cca1-4c2a-8c45-7966b97608a5_G2, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022, Timestamp:2020-08-19T14:58:00", + "response": "{\"Code\":400,\"Detail\":\"Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:d440bcd1-0d67-43df-aefd-fe0197182949_G2, SystemTracker:endpoint:$schemagroups\\/azsdk_js_test_group\\/schemas\\/azsdk_js_test_000022, Timestamp:2020-10-05T21:31:54\"}", "responseHeaders": { - "content-type": "application/xml; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:57:59 GMT", + "content-type": "application/json", + "date": "Mon, 05 Oct 2020 21:31:54 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -44,5 +44,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "6d47aa1dccb69e0e485abcb3b7517281" + "hash": "65ea37c6e1f5b6bb10cdc1fe4668aa6e" } \ 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 fc4397edd3e8..e4b88278ab06 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,29 +11,29 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:57:59 GMT", + "date": "Mon, 05 Oct 2020 21:31:54 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - EUS ProdSlices", - "x-ms-request-id": "89a7d5b7-0b94-442b-965f-0dc2f4260900" + "x-ms-ests-server": "2.1.11086.7 - WUS2 ProdSlices", + "x-ms-request-id": "9d5e0c6e-eefb-4836-8253-bcf01be2b601" } }, { "method": "POST", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/never-registered", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 404, - "response": "404Schema azsdk_js_test_group/never-registered does not exist. TrackingId:6e255746-7a23-4d52-a4d7-1d2d320e0eb7_G2, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/never-registered, Timestamp:2020-08-19T14:58:01", + "response": "{\"Code\":404,\"Detail\":\"Schema azsdk_js_test_group\\/never-registered does not exist. TrackingId:e3a4ba29-1f00-4736-906f-840a8518c881_G2, SystemTracker:endpoint:$schemagroups\\/azsdk_js_test_group\\/schemas\\/never-registered, Timestamp:2020-10-05T21:31:55\"}", "responseHeaders": { - "content-type": "application/xml; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:58:01 GMT", + "content-type": "application/json", + "date": "Mon, 05 Oct 2020 21:31:55 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -44,5 +44,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "9e983945505540675be9e6f7dd1639e7" + "hash": "7d401e42535b3b61eb2f6f62dc9471c8" } \ 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 3a3b5b9a2306..1c594a87dd16 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,29 +11,29 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:58:01 GMT", + "date": "Mon, 05 Oct 2020 21:31:56 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - EUS ProdSlices", - "x-ms-request-id": "25ad362c-72fc-47ac-9534-7060b7f51e00" + "x-ms-ests-server": "2.1.11086.7 - SCUS ProdSlices", + "x-ms-request-id": "38c27b57-286c-4b33-a980-8dd442b62101" } }, { "method": "GET", "url": "https://endpoint/$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff", "query": { - "api-version": "2017-04" + "api-version": "2020-09-01-preview" }, "requestBody": null, "status": 404, - "response": "404Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:6acb9259-ea04-4ff8-b53a-0eeec936abdc_G2, SystemTracker:endpoint:$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff, Timestamp:2020-08-19T14:58:02", + "response": "{\"Code\":404,\"Detail\":\"Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:daa08d0b-0c49-4d6b-8fa1-9d4e57f535f7_G2, SystemTracker:endpoint:$schemagroups\\/getSchemaById\\/ffffffffffffffffffffffffffffffff, Timestamp:2020-10-05T21:31:57\"}", "responseHeaders": { - "content-type": "application/xml; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:58:02 GMT", + "content-type": "application/json", + "date": "Mon, 05 Oct 2020 21:31:56 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -44,5 +44,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "e3d393a14244a1dcd98b75f330116952" + "hash": "48553553ebd0830c8508d763e677a96c" } \ 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 9e0d385943e9..aac4035fc995 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,83 +11,61 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:58:02 GMT", + "date": "Mon, 05 Oct 2020 21:31:56 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - EUS ProdSlices", - "x-ms-request-id": "25ad362c-72fc-47ac-9534-7060d2f51e00" + "x-ms-ests-server": "2.1.11086.7 - WUS2 ProdSlices", + "x-ms-request-id": "ac9a0126-3939-44e9-95e3-d69e6e5fbd01" } }, { "method": "PUT", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"e2e5788061834d6f977442df0fcbcfb8\"}", + "response": "{\"id\":\"61d32a86b70e4fe0b026c1291c0aee7a\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 19 Aug 2020 14:58:03 GMT", - "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/5?api-version=2017-04", + "date": "Mon, 05 Oct 2020 21:31:57 GMT", + "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/45?api-version=2020-09-01-preview", + "schema-id": "61d32a86b70e4fe0b026c1291c0aee7a", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/61d32a86b70e4fe0b026c1291c0aee7a?api-version=2020-09-01-preview", + "schema-version": "45", + "schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked", - "x-schema-id": "e2e5788061834d6f977442df0fcbcfb8", - "x-schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e2e5788061834d6f977442df0fcbcfb8?api-version=2017-04", - "x-schema-type": "Avro", - "x-schema-version": "5", - "x-schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2017-04" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/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%2Feventhubs.azure.net%2F.default", - "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, 19 Aug 2020 14:58:02 GMT", - "expires": "-1", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - EUS ProdSlices", - "x-ms-request-id": "38eb9bff-4d7a-4139-b4e9-2f1ab9cc1d00" + "transfer-encoding": "chunked" } }, { "method": "GET", - "url": "https://endpoint/$schemagroups/getSchemaById/e2e5788061834d6f977442df0fcbcfb8", + "url": "https://endpoint/$schemagroups/getSchemaById/61d32a86b70e4fe0b026c1291c0aee7a", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "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, 19 Aug 2020 14:58:03 GMT", - "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/5?api-version=2017-04", + "date": "Mon, 05 Oct 2020 21:31:57 GMT", + "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/45?api-version=2020-09-01-preview", + "schema-id": "61d32a86b70e4fe0b026c1291c0aee7a", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/61d32a86b70e4fe0b026c1291c0aee7a?api-version=2020-09-01-preview", + "schema-version": "45", + "schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked", - "x-schema-id": "e2e5788061834d6f977442df0fcbcfb8", - "x-schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e2e5788061834d6f977442df0fcbcfb8?api-version=2017-04", - "x-schema-type": "Avro", - "x-schema-version": "5", - "x-schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2017-04" + "transfer-encoding": "chunked" } } ], @@ -95,5 +73,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "08a40f030c832fb81f5f6dc66f61b2f1" + "hash": "fe1a1747c1a9d7c362ec5d3f46bbb92f" } \ 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 e4ddc4a58f85..94e8d5895654 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,83 +11,61 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:58:00 GMT", + "date": "Mon, 05 Oct 2020 21:31:54 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - SCUS ProdSlices", - "x-ms-request-id": "a44e3961-5fcd-4a2b-af72-721fe4011c00" + "x-ms-ests-server": "2.1.11086.7 - EUS ProdSlices", + "x-ms-request-id": "d36c8a8c-e537-4665-8d4a-5624b17f1f01" } }, { "method": "PUT", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"e2e5788061834d6f977442df0fcbcfb8\"}", + "response": "{\"id\":\"61d32a86b70e4fe0b026c1291c0aee7a\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 19 Aug 2020 14:58:01 GMT", - "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/5?api-version=2017-04", + "date": "Mon, 05 Oct 2020 21:31:55 GMT", + "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/45?api-version=2020-09-01-preview", + "schema-id": "61d32a86b70e4fe0b026c1291c0aee7a", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/61d32a86b70e4fe0b026c1291c0aee7a?api-version=2020-09-01-preview", + "schema-version": "45", + "schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked", - "x-schema-id": "e2e5788061834d6f977442df0fcbcfb8", - "x-schema-id-location": "https://endpoint/$schemagroups/getschemabyid/e2e5788061834d6f977442df0fcbcfb8?api-version=2017-04", - "x-schema-type": "Avro", - "x-schema-version": "5", - "x-schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2017-04" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/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%2Feventhubs.azure.net%2F.default", - "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, 19 Aug 2020 14:58:00 GMT", - "expires": "-1", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - WUS2 ProdSlices", - "x-ms-request-id": "c0655f2e-bcde-41e6-8dfd-28d90ef72400" + "transfer-encoding": "chunked" } }, { "method": "POST", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, "response": "{\"id\":\"35c8c3d0438c48c09602b6b765c6d8dd\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 19 Aug 2020 14:58:02 GMT", - "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/3?api-version=2017-04", + "date": "Mon, 05 Oct 2020 21:31:56 GMT", + "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/3?api-version=2020-09-01-preview", + "schema-id": "35c8c3d0438c48c09602b6b765c6d8dd", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/35c8c3d0438c48c09602b6b765c6d8dd?api-version=2020-09-01-preview", + "schema-version": "3", + "schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked", - "x-schema-id": "35c8c3d0438c48c09602b6b765c6d8dd", - "x-schema-id-location": "https://endpoint/$schemagroups/getschemabyid/35c8c3d0438c48c09602b6b765c6d8dd?api-version=2017-04", - "x-schema-type": "Avro", - "x-schema-version": "3", - "x-schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2017-04" + "transfer-encoding": "chunked" } } ], @@ -95,5 +73,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "d6f9624eef29abc8a89b9717aa653796" + "hash": "46bb417d9fa5f687470ebddf45e933ac" } \ 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 13492002b3ca..fb9fc2328a98 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,83 +11,61 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:57:58 GMT", + "date": "Mon, 05 Oct 2020 21:31:52 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - WUS2 ProdSlices", - "x-ms-request-id": "c0655f2e-bcde-41e6-8dfd-28d9a9f62400" + "x-ms-ests-server": "2.1.11086.7 - SCUS ProdSlices", + "x-ms-request-id": "150c77df-d7b2-402f-bb17-73fa02212101" } }, { "method": "PUT", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"35c8c3d0438c48c09602b6b765c6d8dd\"}", + "response": "{\"id\":\"228b2b0ea7f74b55a80f6651d6641b59\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 19 Aug 2020 14:57:59 GMT", - "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/3?api-version=2017-04", + "date": "Mon, 05 Oct 2020 21:31:53 GMT", + "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/43?api-version=2020-09-01-preview", + "schema-id": "228b2b0ea7f74b55a80f6651d6641b59", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/228b2b0ea7f74b55a80f6651d6641b59?api-version=2020-09-01-preview", + "schema-version": "43", + "schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked", - "x-schema-id": "35c8c3d0438c48c09602b6b765c6d8dd", - "x-schema-id-location": "https://endpoint/$schemagroups/getschemabyid/35c8c3d0438c48c09602b6b765c6d8dd?api-version=2017-04", - "x-schema-type": "Avro", - "x-schema-version": "3", - "x-schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2017-04" - } - }, - { - "method": "POST", - "url": "https://login.microsoftonline.com/azure_tenant_id/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%2Feventhubs.azure.net%2F.default", - "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, 19 Aug 2020 14:57:58 GMT", - "expires": "-1", - "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", - "pragma": "no-cache", - "referrer-policy": "strict-origin-when-cross-origin", - "strict-transport-security": "max-age=31536000; includeSubDomains", - "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - NCUS ProdSlices", - "x-ms-request-id": "c71e49e2-e297-4e03-a148-9ab730ed1c00" + "transfer-encoding": "chunked" } }, { "method": "PUT", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "api-version": "2020-09-01-preview" }, - "requestBody": "\"{\\\"type\\\":\\\"record\\\",\\\"fullName\\\":\\\"User\\\",\\\"namespace\\\":\\\"com.azure.schemaregistry.samples\\\",\\\"fields\\\":[{\\\"name\\\":\\\"name\\\",\\\"type\\\":\\\"string\\\"},{\\\"name\\\":\\\"favoriteNumber\\\",\\\"type\\\":\\\"int\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"secondFavoriteNumber\",\"type\":\"int\"}]}", "status": 200, - "response": "{\"id\":\"92a2b39babd44463bcbeed50d4e8b6b1\"}", + "response": "{\"id\":\"b19dc4f576434e94be7607c4a74bf358\"}", "responseHeaders": { "content-type": "application/json", - "date": "Wed, 19 Aug 2020 14:57:59 GMT", - "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/4?api-version=2017-04", + "date": "Mon, 05 Oct 2020 21:31:54 GMT", + "location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/44?api-version=2020-09-01-preview", + "schema-id": "b19dc4f576434e94be7607c4a74bf358", + "schema-id-location": "https://endpoint/$schemagroups/getschemabyid/b19dc4f576434e94be7607c4a74bf358?api-version=2020-09-01-preview", + "schema-version": "44", + "schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview", + "serialization-type": "Avro", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", - "transfer-encoding": "chunked", - "x-schema-id": "92a2b39babd44463bcbeed50d4e8b6b1", - "x-schema-id-location": "https://endpoint/$schemagroups/getschemabyid/92a2b39babd44463bcbeed50d4e8b6b1?api-version=2017-04", - "x-schema-type": "Avro", - "x-schema-version": "4", - "x-schema-versions-location": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2017-04" + "transfer-encoding": "chunked" } } ], @@ -95,5 +73,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "d70a4e54d26ef37c305961658b4abf4f" + "hash": "ed82d361a9cc87c17fc3152f41086443" } \ 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 137b8a395b25..a8c722fdd942 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,29 +11,29 @@ "cache-control": "no-store, no-cache", "content-length": "1321", "content-type": "application/json; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:57:57 GMT", + "date": "Mon, 05 Oct 2020 21:31:51 GMT", "expires": "-1", "p3p": "CP=\"DSP CUR OTPi IND OTRi ONL FIN\"", "pragma": "no-cache", "referrer-policy": "strict-origin-when-cross-origin", "strict-transport-security": "max-age=31536000; includeSubDomains", "x-content-type-options": "nosniff", - "x-ms-ests-server": "2.1.10963.12 - WUS2 ProdSlices", - "x-ms-request-id": "c8c8543c-80fb-470e-be7e-e02376172200" + "x-ms-ests-server": "2.1.11086.7 - SCUS ProdSlices", + "x-ms-request-id": "4a456eb9-4840-4f7d-8873-79b602524b00" } }, { "method": "PUT", "url": "https://endpoint/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022", "query": { - "api-version": "2017-04" + "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\\\"}]}\"", + "requestBody": "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}", "status": 400, - "response": "400Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:558774c7-8118-4c6f-b1aa-6166c61d8d52_G2, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022, Timestamp:2020-08-19T14:57:59", + "response": "{\"Code\":400,\"Detail\":\"Invalid schema type for PUT request. 'not-valid' is not supported. TrackingId:7b88bffd-4d27-4186-9358-868f6ae54dfe_G2, SystemTracker:endpoint:$schemagroups\\/azsdk_js_test_group\\/schemas\\/azsdk_js_test_000022, Timestamp:2020-10-05T21:31:53\"}", "responseHeaders": { - "content-type": "application/xml; charset=utf-8", - "date": "Wed, 19 Aug 2020 14:57:58 GMT", + "content-type": "application/json", + "date": "Mon, 05 Oct 2020 21:31:53 GMT", "server": "Microsoft-HTTPAPI/2.0", "strict-transport-security": "max-age=31536000", "transfer-encoding": "chunked" @@ -44,5 +44,5 @@ "uniqueName": {}, "newDate": {} }, - "hash": "6d98f6e4cf5c2d79ff486c979c6f04a6" + "hash": "2552cbc68a24ac555f653e6ca175af96" } \ No newline at end of file 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 2eb57874d461..a75df8fa63a4 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 = "eb54ecf2058c7d4917b656b697b37131"; +module.exports.hash = "7e5d35a42c93ab32fc6ec0332173c2f6"; 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 bb74f3b3609f..1af811ccc3a0 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 = "01692f8260b5641cb639d46ce3104b9c"; +module.exports.hash = "a825068b76f7666e5480b179a9fb4768"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -22,33 +22,33 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '54063e45-5c15-4af5-ab3e-25833b042100', + 'cf9620ff-02bf-42fe-b555-43bc2b7c8d00', 'x-ms-ests-server', - '2.1.10963.12 - SCUS ProdSlices', + '2.1.11086.7 - EUS ProdSlices', 'Set-Cookie', - 'fpc=As4byXOGWFhFjvunwhCwK0ZJ4DFtAQAAAO40z9YOAAAA; expires=Fri, 18-Sep-2020 14:57:51 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ApALMtN-Ww1Kg8GH9ZQXLb9J4DFtAQAAALuHDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:40 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, 19 Aug 2020 14:57:51 GMT', + 'Mon, 05 Oct 2020 21:31:40 GMT', 'Content-Length', '1321' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .post('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}") + .post('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(400, "400Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:d46025d8-79f5-460c-a4c5-93b967b4fdd5_G0, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022, Timestamp:2020-08-19T14:57:52", [ + .reply(400, {"Code":400,"Detail":"Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:056052ff-ee36-4ace-a5e4-fb1e96302b11_G2, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022, Timestamp:2020-10-05T21:31:41"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', - 'application/xml; charset=utf-8', + 'application/json', 'Server', 'Microsoft-HTTPAPI/2.0', 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 19 Aug 2020 14:57:52 GMT' + 'Mon, 05 Oct 2020 21:31:41 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 fadb6aaa6065..0f09d5a35d0e 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 = "97bb3ef7d11ff026e400c3bb44bc641b"; +module.exports.hash = "622a3fd7cdca169239801a8ae7843dfd"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -11,8 +11,6 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1321', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,31 +22,33 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - 'baddaa24-a171-4d4f-a9cf-f756d0692000', + '5181cea2-c7b2-49b4-b673-19acf5497100', 'x-ms-ests-server', - '2.1.10963.12 - EUS ProdSlices', + '2.1.11086.7 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=AlIg_Q3r3IxLr1ycfAlPxVBJ4DFtAQAAAPA0z9YOAAAA; expires=Fri, 18-Sep-2020 14:57:52 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=AszGFwoG8hZNm38rm6OF0klJ4DFtAQAAALyHDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:41 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 19 Aug 2020 14:57:51 GMT' + 'Mon, 05 Oct 2020 21:31:41 GMT', + 'Content-Length', + '1321' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .post('/$schemagroups/azsdk_js_test_group/schemas/never-registered', "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}") + .post('/$schemagroups/azsdk_js_test_group/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, "404Schema azsdk_js_test_group/never-registered does not exist. TrackingId:082342de-dc68-4907-9835-dbaccbbbb232_G2, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/never-registered, Timestamp:2020-08-19T14:57:53", [ + .reply(404, {"Code":404,"Detail":"Schema azsdk_js_test_group/never-registered does not exist. TrackingId:a14afd8a-8c44-47e5-b546-a1f4cb5c26ac_G4, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/never-registered, Timestamp:2020-10-05T21:31:42"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', - 'application/xml; charset=utf-8', + 'application/json', 'Server', 'Microsoft-HTTPAPI/2.0', 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 19 Aug 2020 14:57:53 GMT' + 'Mon, 05 Oct 2020 21:31:42 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 f290fe270b0b..cb31677d0be2 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 = "c48d48c73653528508e5def8772d97fd"; +module.exports.hash = "8a7a25f38a53c528d64492b8a40d024c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -11,8 +11,6 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'no-store, no-cache', 'Pragma', 'no-cache', - 'Content-Length', - '1321', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -24,31 +22,33 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '12dcda7c-4ec0-448a-ae62-10860f191f00', + 'af534171-5c3c-4bcb-9a85-ee5dca8a4701', 'x-ms-ests-server', - '2.1.10963.12 - NCUS ProdSlices', + '2.1.11086.7 - SCUS ProdSlices', 'Set-Cookie', - 'fpc=AljzUBQibbZDpdvcYAtfgRpJ4DFtAQAAAPE0z9YOAAAA; expires=Fri, 18-Sep-2020 14:57:53 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=ArAKYg2zrPpLjrqM5pf-AGlJ4DFtAQAAAL-HDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:44 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 19 Aug 2020 14:57:53 GMT' + 'Mon, 05 Oct 2020 21:31:43 GMT', + 'Content-Length', + '1321' ]); nock('https://endpoint', {"encodedQueryParams":true}) .get('/$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff') .query(true) - .reply(404, "404Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:bf402ba9-f61e-4782-8413-bedb1ae87af8_G4, SystemTracker:endpoint:$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff, Timestamp:2020-08-19T14:57:54", [ + .reply(404, {"Code":404,"Detail":"Schema id ffffffffffffffffffffffffffffffff does not exist. TrackingId:4c61053c-d700-4fa8-ad15-90ab640077f3_G2, SystemTracker:endpoint:$schemagroups/getSchemaById/ffffffffffffffffffffffffffffffff, Timestamp:2020-10-05T21:31:45"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', - 'application/xml; charset=utf-8', + 'application/json', 'Server', 'Microsoft-HTTPAPI/2.0', 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 19 Aug 2020 14:57:54 GMT' + 'Mon, 05 Oct 2020 21:31:45 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 f78a9c9579ba..4de3b7a51923 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,5 +1,94 @@ let nock = require('nock'); -module.exports.hash = "0b238db6249c70c8bd21fadb680ac235"; +module.exports.hash = "791f4e42cb62fa1923842fe52c20c725"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Feventhubs.azure.net%2F.default") + .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', + '95c9acd1-9bd6-4477-8b3c-ff15e14b7600', + 'x-ms-ests-server', + '2.1.11086.7 - EUS ProdSlices', + 'Set-Cookie', + 'fpc=AivV5P9RxTFKuL-mUNh-Bf9J4DFtAQAAAMCHDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:45 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 05 Oct 2020 21:31:45 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .put('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) + .query(true) + .reply(200, {"id":"228b2b0ea7f74b55a80f6651d6641b59"}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/43?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + '228b2b0ea7f74b55a80f6651d6641b59', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/228b2b0ea7f74b55a80f6651d6641b59?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '43', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Mon, 05 Oct 2020 21:31:45 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .get('/$schemagroups/getSchemaById/228b2b0ea7f74b55a80f6651d6641b59') + .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/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/43?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + '228b2b0ea7f74b55a80f6651d6641b59', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/228b2b0ea7f74b55a80f6651d6641b59?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '43', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Mon, 05 Oct 2020 21:31:45 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 9dfebb5d463d..7f15a9824f6c 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,5 +1,94 @@ let nock = require('nock'); -module.exports.hash = "737b53ffa4e9d8162139fa46698faea8"; +module.exports.hash = "9dab19fa6a49e9a7ea507f0dce75f893"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Feventhubs.azure.net%2F.default") + .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', + '95f98f4d-8e98-44fd-ace6-6e4f58f7df01', + 'x-ms-ests-server', + '2.1.11086.7 - WUS2 ProdSlices', + 'Set-Cookie', + 'fpc=AjH-GjA6hktBlu0c09W2vYtJ4DFtAQAAAL6HDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:42 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 05 Oct 2020 21:31:42 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .put('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) + .query(true) + .reply(200, {"id":"228b2b0ea7f74b55a80f6651d6641b59"}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/43?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + '228b2b0ea7f74b55a80f6651d6641b59', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/228b2b0ea7f74b55a80f6651d6641b59?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '43', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Mon, 05 Oct 2020 21:31:43 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .post('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) + .query(true) + .reply(200, {"id":"35c8c3d0438c48c09602b6b765c6d8dd"}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/3?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + '35c8c3d0438c48c09602b6b765c6d8dd', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/35c8c3d0438c48c09602b6b765c6d8dd?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '3', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Mon, 05 Oct 2020 21:31:43 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 ee3141241a5b..e168745ee289 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 @@ -1,5 +1,94 @@ let nock = require('nock'); -module.exports.hash = "07a39ece43bc33a97ba6ec7b0e4ced84"; +module.exports.hash = "7a3ba87cdf7a98b968983064f67f0184"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} + +nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) + .post('/azure_tenant_id/oauth2/v2.0/token', "response_type=token&grant_type=client_credentials&client_id=azure_client_id&client_secret=azure_client_secret&scope=https%3A%2F%2Feventhubs.azure.net%2F.default") + .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', + 'f49473b9-aa98-4eff-b5d2-9c1afe0c2401', + 'x-ms-ests-server', + '2.1.11086.7 - NCUS ProdSlices', + 'Set-Cookie', + 'fpc=AjXVec4rndNBop5Yt58N_2pJ4DFtAQAAALqHDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:39 GMT; path=/; secure; HttpOnly; SameSite=None', + 'Set-Cookie', + 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', + 'Set-Cookie', + 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', + 'Date', + 'Mon, 05 Oct 2020 21:31:38 GMT', + 'Content-Length', + '1321' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .put('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) + .query(true) + .reply(200, {"id":"ac88cdfed763412f805999ae0e04ca72"}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/41?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + 'ac88cdfed763412f805999ae0e04ca72', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/ac88cdfed763412f805999ae0e04ca72?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '41', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Mon, 05 Oct 2020 21:31:40 GMT' +]); + +nock('https://endpoint', {"encodedQueryParams":true}) + .put('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"secondFavoriteNumber","type":"int"}]}) + .query(true) + .reply(200, {"id":"c117273dd2e3403aa5176317936fe205"}, [ + 'Transfer-Encoding', + 'chunked', + 'Content-Type', + 'application/json', + 'Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions/42?api-version=2020-09-01-preview', + 'Server', + 'Microsoft-HTTPAPI/2.0', + 'Schema-Id', + 'c117273dd2e3403aa5176317936fe205', + 'Schema-Id-Location', + 'https://endpoint:443/$schemagroups/getschemabyid/c117273dd2e3403aa5176317936fe205?api-version=2020-09-01-preview', + 'Serialization-Type', + 'Avro', + 'Schema-Version', + '42', + 'Schema-Versions-Location', + 'https://endpoint:443/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022/versions?api-version=2020-09-01-preview', + 'Strict-Transport-Security', + 'max-age=31536000', + 'Date', + 'Mon, 05 Oct 2020 21:31:40 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 2e9ff5151904..181f9d9f0a73 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 = "febe9d20712277d8563fe7b198a96fb2"; +module.exports.hash = "ac40b383b445f28c364f65a46fa4079c"; module.exports.testInfo = {"uniqueName":{},"newDate":{}} @@ -11,6 +11,8 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'no-store, no-cache', 'Pragma', 'no-cache', + 'Content-Length', + '1321', 'Content-Type', 'application/json; charset=utf-8', 'Expires', @@ -22,33 +24,31 @@ nock('https://login.microsoftonline.com:443', {"encodedQueryParams":true}) 'P3P', 'CP="DSP CUR OTPi IND OTRi ONL FIN"', 'x-ms-request-id', - '369da187-f3b0-486b-84b9-d03c02882500', + 'b391363f-9941-40ef-8cc4-558e83811f01', 'x-ms-ests-server', - '2.1.10963.12 - WUS2 ProdSlices', + '2.1.11086.7 - NCUS ProdSlices', 'Set-Cookie', - 'fpc=ArOyg5x-Fu5Ls6uDcnLMq0tJ4DFtAQAAAO40z9YOAAAA; expires=Fri, 18-Sep-2020 14:57:50 GMT; path=/; secure; HttpOnly; SameSite=None', + 'fpc=Asnx_FjEpm5ClYIyr1GdvTFJ4DFtAQAAALiHDdcOAAAA; expires=Wed, 04-Nov-2020 21:31:37 GMT; path=/; secure; HttpOnly; SameSite=None', 'Set-Cookie', 'x-ms-gateway-slice=estsfd; path=/; secure; samesite=none; httponly', 'Set-Cookie', 'stsservicecookie=estsfd; path=/; secure; samesite=none; httponly', 'Date', - 'Wed, 19 Aug 2020 14:57:50 GMT', - 'Content-Length', - '1321' + 'Mon, 05 Oct 2020 21:31:37 GMT' ]); nock('https://endpoint', {"encodedQueryParams":true}) - .put('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', "{\"type\":\"record\",\"name\":\"User\",\"namespace\":\"com.azure.schemaregistry.samples\",\"fields\":[{\"name\":\"name\",\"type\":\"string\"},{\"name\":\"favoriteNumber\",\"type\":\"int\"}]}") + .put('/$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022', {"type":"record","name":"User","namespace":"com.azure.schemaregistry.samples","fields":[{"name":"name","type":"string"},{"name":"favoriteNumber","type":"int"}]}) .query(true) - .reply(400, "400Invalid schema type for POST request. 'not-valid' is not supported. TrackingId:01992703-c047-43ec-ba3f-1374d1ba197f_G4, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022, Timestamp:2020-08-19T14:57:51", [ + .reply(400, {"Code":400,"Detail":"Invalid schema type for PUT request. 'not-valid' is not supported. TrackingId:0b46c6c6-1703-496b-a401-d04fe16404d5_G4, SystemTracker:endpoint:$schemagroups/azsdk_js_test_group/schemas/azsdk_js_test_000022, Timestamp:2020-10-05T21:31:39"}, [ 'Transfer-Encoding', 'chunked', 'Content-Type', - 'application/xml; charset=utf-8', + 'application/json', 'Server', 'Microsoft-HTTPAPI/2.0', 'Strict-Transport-Security', 'max-age=31536000', 'Date', - 'Wed, 19 Aug 2020 14:57:51 GMT' + 'Mon, 05 Oct 2020 21:31:39 GMT' ]);