Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
832e60a
Whitespace and auto generated lines added.
conniey Mar 11, 2026
bf0eb70
Add SchemaRegistryServiceVersion
conniey Mar 11, 2026
a847ddd
Adding azure-data-schemaregistry_metadata.json based on TSP client.
conniey Mar 11, 2026
63d7ef0
Adding tsp-location.yaml
conniey Mar 11, 2026
9eb5ab7
Remove old SchemaRegistryVersion.java.
conniey Mar 11, 2026
a9b1f7d
Fix SchemaRegistryClientBuilder build errors by removing old build Ht…
conniey Mar 11, 2026
98d7b5d
Removing Headers no longer used.
conniey Mar 11, 2026
d3a8292
Removed unused header methods from SchemaRegistryHelper
conniey Mar 11, 2026
732dd0e
Update build in ClientBuilder.
conniey Mar 11, 2026
598dc98
Add generated test base.
conniey Mar 11, 2026
243ec79
Add generated SchemaRegistryClientImpl as-is
conniey Mar 11, 2026
b559f25
Remove AzureSchemaRegistryImpl.java
conniey Mar 13, 2026
ec59a49
Fix build breaks in regeneration.
conniey Mar 13, 2026
61c76bd
Update build breaks from ServiceVersion in TS regeneration.
conniey May 26, 2026
488ac46
Add helper to set correct content type.
conniey May 26, 2026
ac34d48
Deleting old AutoRest impl classes.
conniey May 26, 2026
8c5fe27
Remove @Generated from buildInnerClient.
conniey May 26, 2026
dab3369
Delete swagger/ folder.
conniey May 26, 2026
276521f
Remove disableLocalAuth for namespaces.
conniey May 26, 2026
5bfd96b
Adding new generated metadata.json
conniey May 26, 2026
2a037d3
Remove @Generated from HttpPipeline method.
conniey May 26, 2026
059c76a
Regenerate Impl from Typespec/java 0.31.
conniey May 26, 2026
c14f4a7
Remove unused constant, ACCEPTED_CONTENT_TYPE
conniey May 26, 2026
bfa28ab
Removing deprecated PrettyPrintBody in snippet.
conniey May 26, 2026
78a853a
Regenerating typespec/java with 0.31
conniey May 26, 2026
dea8822
Updating recordings.
conniey May 26, 2026
cfaca22
Update recordings for apacheavro
conniey May 26, 2026
e2c0a0c
Rename SchemaRegistryServiceVersion to SchemaRegistryVersion
conniey May 26, 2026
66f1c9f
Update logic in fullyQualifiedNamespace.
conniey May 26, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/schemaregistry/azure-data-schemaregistry-apacheavro",
"Tag": "java/schemaregistry/azure-data-schemaregistry-apacheavro_a9ab594dde"
"Tag": "java/schemaregistry/azure-data-schemaregistry-apacheavro_98b3aa649f"
}
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
import reactor.core.scheduler.Schedulers;
import reactor.test.StepVerifier;

import java.net.MalformedURLException;
import java.net.URI;
import java.net.URISyntaxException;
import java.net.URL;
import java.time.Duration;
import java.util.ArrayList;
import java.util.Collections;
Expand All @@ -47,8 +51,6 @@ public class SchemaRegistryApacheAvroSerializerIntegrationTest extends TestProxy
= "SCHEMA_REGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE";
static final String SCHEMA_REGISTRY_GROUP = "SCHEMA_REGISTRY_GROUP";
static final String SCHEMA_REGISTRY_AVRO_EVENT_HUB_NAME = "SCHEMA_REGISTRY_AVRO_EVENT_HUB_NAME";
static final String SCHEMA_REGISTRY_AVRO_EVENT_HUB_CONNECTION_STRING
= "SCHEMA_REGISTRY_AVRO_EVENT_HUB_CONNECTION_STRING";

// When we regenerate recordings, make sure that the schema group matches what we are persisting.
static final String PLAYBACK_TEST_GROUP = "azsdk_java_group";
Expand All @@ -57,33 +59,29 @@ public class SchemaRegistryApacheAvroSerializerIntegrationTest extends TestProxy
private String schemaGroup;
private SchemaRegistryClientBuilder builder;
private String eventHubName;
private String connectionString;
private TokenCredential tokenCredential;
private String fullyQualifiedNamespace;

@Override
protected void beforeTest() {
String endpoint;
TokenCredential tokenCredential;
if (interceptorManager.isPlaybackMode()) {
tokenCredential = new MockTokenCredential();
schemaGroup = PLAYBACK_TEST_GROUP;

endpoint = PLAYBACK_ENDPOINT;
fullyQualifiedNamespace = PLAYBACK_ENDPOINT;
eventHubName = "javaeventhub";
connectionString = "foo-bar";
} else {
tokenCredential = new DefaultAzureCredentialBuilder().build();
endpoint = System.getenv(SCHEMA_REGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE);
fullyQualifiedNamespace = System.getenv(SCHEMA_REGISTRY_AVRO_FULLY_QUALIFIED_NAMESPACE);
eventHubName = System.getenv(SCHEMA_REGISTRY_AVRO_EVENT_HUB_NAME);
schemaGroup = System.getenv(SCHEMA_REGISTRY_GROUP);
connectionString = System.getenv(SCHEMA_REGISTRY_AVRO_EVENT_HUB_CONNECTION_STRING);

assertNotNull(eventHubName, "'eventHubName' cannot be null in LIVE/RECORD mode.");
assertNotNull(endpoint, "'endpoint' cannot be null in LIVE/RECORD mode.");
assertNotNull(fullyQualifiedNamespace, "'endpoint' cannot be null in LIVE/RECORD mode.");
assertNotNull(schemaGroup, "'schemaGroup' cannot be null in LIVE/RECORD mode.");
assertNotNull(connectionString, "'connectionString' cannot be null in LIVE/RECORD mode.");
}

builder = new SchemaRegistryClientBuilder().credential(tokenCredential).fullyQualifiedNamespace(endpoint);
builder = new SchemaRegistryClientBuilder().credential(tokenCredential).fullyQualifiedNamespace(fullyQualifiedNamespace);

if (interceptorManager.isPlaybackMode()) {
builder.httpClient(interceptorManager.getPlaybackClient());
Expand Down Expand Up @@ -172,10 +170,19 @@ public void serializeAndDeserializeEventData() {

EventHubProducerClient producer = null;
EventHubConsumerAsyncClient consumer = null;

String fullyQualifedNamespaceToUse;
try {
final URL url = new URI(fullyQualifiedNamespace).toURL();
fullyQualifedNamespaceToUse = url.getHost();
} catch (MalformedURLException | URISyntaxException e) {
fullyQualifedNamespaceToUse = fullyQualifiedNamespace;
}

try {
producer
= new EventHubClientBuilder().connectionString(connectionString, eventHubName).buildProducerClient();
consumer = new EventHubClientBuilder().connectionString(connectionString, eventHubName)
= new EventHubClientBuilder().credential(fullyQualifedNamespaceToUse, eventHubName, tokenCredential).buildProducerClient();
consumer = new EventHubClientBuilder().credential(fullyQualifedNamespaceToUse, eventHubName, tokenCredential)
.consumerGroup(EventHubClientBuilder.DEFAULT_CONSUMER_GROUP_NAME)
.buildAsyncConsumerClient();

Expand Down
2 changes: 1 addition & 1 deletion sdk/schemaregistry/azure-data-schemaregistry/assets.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "java",
"TagPrefix": "java/schemaregistry/azure-data-schemaregistry",
"Tag": "java/schemaregistry/azure-data-schemaregistry_1eb85e2a8b"
"Tag": "java/schemaregistry/azure-data-schemaregistry_da282d3b55"
}
Loading
Loading