Skip to content
Closed
Changes from all commits
Commits
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 @@ -43,18 +43,14 @@
emulator.start();
// createProducerAndConsumer {
EventHubProducerClient producer = new EventHubClientBuilder()
.connectionString(emulator.getConnectionString())
.fullyQualifiedNamespace("emulatorNs1")
.eventHubName("eh1")
.connectionString(emulator.getConnectionString(), "eh1")
.buildProducerClient();
EventHubConsumerClient consumer = new EventHubClientBuilder()
.connectionString(emulator.getConnectionString())
.fullyQualifiedNamespace("emulatorNs1")
.eventHubName("eh1")
.connectionString(emulator.getConnectionString(), "eh1")
.consumerGroup("cg1")
.buildConsumerClient();
// }
producer.send(Collections.singletonList(new EventData("test")));

Check failure on line 53 in modules/azure/src/test/java/org/testcontainers/azure/EventHubsEmulatorContainerTest.java

View workflow job for this annotation

GitHub Actions / check (:testcontainers-azure:check)

EventHubsEmulatorContainerTest.testWithEventHubsClient()

com.azure.core.amqp.exception.AmqpException: The messaging entity 'sb://emulatorns1.eventhubs.emulator.net/eh1' could not be found. To know more visit https://aka.ms/sbResourceMgrExceptions. TrackingId:6657436643204ec8bf461f3e48e78051_G0, SystemTracker:gateway1, Timestamp:2026-06-08T08:47:18, errorContext[NAMESPACE: localhost. ERROR CONTEXT: N/A, PATH: eh1, REFERENCE_ID: eh1, LINK_CREDIT: 0]

waitAtMost(Duration.ofSeconds(30))
.pollDelay(Duration.ofSeconds(5))
Expand Down
Loading