Skip to content

Commit 72b8056

Browse files
authored
[Schema Registry] Regenerate with 2022-10 swagger (#23575)
[swagger](Azure/azure-rest-api-specs#21170) Live tests succeeded: [link](https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1971778&view=results)
1 parent 2215465 commit 72b8056

69 files changed

Lines changed: 1457 additions & 832 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

common/config/rush/pnpm-lock.yaml

Lines changed: 19 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

sdk/schemaregistry/schema-registry-avro/karma.conf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ module.exports = function (config) {
5757

5858
envPreprocessor: [
5959
"TEST_MODE",
60-
"SCHEMA_REGISTRY_ENDPOINT",
61-
"EVENTHUB_CONNECTION_STRING",
60+
"SCHEMAREGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE",
61+
"EVENTHUB_AVRO_CONNECTION_STRING",
6262
"EVENTHUB_NAME",
6363
"AZURE_CLIENT_ID",
6464
"AZURE_CLIENT_SECRET",

sdk/schemaregistry/schema-registry-avro/sample.env

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
SCHEMA_REGISTRY_ENDPOINT=<Endpoint URL>
1+
SCHEMAREGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE=<Endpoint URL>
22
SCHEMA_REGISTRY_GROUP=<Group name for schemas in registry>
33

44
# Used to authenticate using Azure AD as a service principal for role-based authentication
@@ -11,7 +11,7 @@ AZURE_CLIENT_ID=<ID of the user/service principal to authenticate as>
1111
AZURE_CLIENT_SECRET=<client secret used to authenticate to Azure AD>
1212

1313
# Used in samples that use Event Hubs. Retrieve these values from an Event Hub in the Azure portal.
14-
EVENTHUB_CONNECTION_STRING=<Event Hub connection string>
14+
EVENTHUB_AVRO_CONNECTION_STRING=<Event Hub connection string>
1515
EVENTHUB_NAME=<Event Hub name>
1616
CONSUMER_GROUP_NAME=<Event Hub Group name>
1717

sdk/schemaregistry/schema-registry-avro/test/public/utils/mockedRegistryClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ function createLiveTestRegistry(settings: {
3737
// implemented below, but if we're running live, then use the real
3838
// service for end-to-end integration testing.
3939
const client = new SchemaRegistryClient(
40-
getEnvVar("SCHEMA_REGISTRY_ENDPOINT"),
40+
getEnvVar("SCHEMAREGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE"),
4141
new ClientSecretCredential(
4242
getEnvVar("AZURE_TENANT_ID"),
4343
getEnvVar("AZURE_CLIENT_ID"),

sdk/schemaregistry/schema-registry-avro/test/public/withMessagingClients.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ interface ScenariosTestInfo<T> {
4242
}
4343

4444
describe("With messaging clients", function () {
45-
const eventHubsConnectionString = env.EVENTHUB_CONNECTION_STRING || "";
45+
const eventHubsConnectionString = env.EVENTHUB_AVRO_CONNECTION_STRING || "";
4646
const eventHubName = env.EVENTHUB_NAME || "";
4747
const alreadyEnqueued = env.CROSS_LANGUAGE !== undefined;
4848

sdk/schemaregistry/schema-registry-avro/tests.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ stages:
55
parameters:
66
PackageName: "@azure/schema-registry-avro"
77
ServiceDirectory: schemaregistry
8-
EnvVars:
9-
AZURE_CLIENT_ID: $(aad-azure-sdk-test-client-id)
10-
AZURE_CLIENT_SECRET: $(aad-azure-sdk-test-client-secret)
11-
AZURE_TENANT_ID: $(aad-azure-sdk-test-tenant-id)

sdk/schemaregistry/schema-registry/CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# Release History
22

3-
## 1.2.1 (Unreleased)
3+
## 1.3.0-beta.1 (Unreleased)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Adds support for JSON and custom schema formats. A schema of the custom format can be in a format that is not currently supported.
8+
- Adds `KnownSchemaFormats` enum that has `Avro`, `Json`, and `Custom` values.
129

1310
## 1.2.0 (2022-10-11)
1411

sdk/schemaregistry/schema-registry/karma.conf.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,9 @@ module.exports = function (config) {
4949

5050
envPreprocessor: [
5151
"TEST_MODE",
52-
"SCHEMA_REGISTRY_ENDPOINT",
52+
"SCHEMAREGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE",
53+
"SCHEMAREGISTRY_JSON_FULLY_QUALIFIED_NAMESPACE",
54+
"SCHEMAREGISTRY_CUSTOM_FULLY_QUALIFIED_NAMESPACE",
5355
"SCHEMA_REGISTRY_GROUP",
5456
"AZURE_CLIENT_ID",
5557
"AZURE_CLIENT_SECRET",

sdk/schemaregistry/schema-registry/package.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@azure/schema-registry",
3-
"version": "1.2.1",
3+
"version": "1.3.0-beta.1",
44
"description": "Schema Registry Library with typescript type definitions for node.js and browser.",
55
"sdk-type": "client",
66
"main": "dist/index.js",
@@ -96,14 +96,11 @@
9696
"@azure/eslint-plugin-azure-sdk": "^3.0.0",
9797
"@azure-tools/test-credential": "^1.0.0",
9898
"@azure-tools/test-recorder": "^2.0.0",
99+
"@azure/test-utils": "^1.0.0",
99100
"@azure/identity": "^2.0.1",
100101
"@microsoft/api-extractor": "^7.31.1",
101-
"@types/chai": "^4.1.6",
102-
"@types/chai-as-promised": "^7.1.0",
103102
"@types/mocha": "^7.0.2",
104103
"@types/node": "^14.0.0",
105-
"chai": "^4.2.0",
106-
"chai-as-promised": "^7.1.1",
107104
"cross-env": "^7.0.2",
108105
"dotenv": "^8.2.0",
109106
"eslint": "^8.0.0",

sdk/schemaregistry/schema-registry/recordings/browsers/schemaregistryclient/recording_fails_to_get_schema_by_id_when_given_invalid_id.json

Lines changed: 0 additions & 4 deletions
This file was deleted.

0 commit comments

Comments
 (0)