Skip to content

Commit 7071595

Browse files
committed
Add Azure Event Hubs Emulator container to Azure module
- Simplify config Signed-off-by: Esta Nagy <[email protected]>
1 parent 8ab5af2 commit 7071595

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

modules/azure/src/main/java/org/testcontainers/azure/AzureEventHubsEmulatorContainer.java

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,6 @@ public class AzureEventHubsEmulatorContainer extends GenericContainer<AzureEvent
3434

3535
private final AzuriteContainer azuriteContainer;
3636

37-
private Transferable config;
38-
3937
private boolean useKafka;
4038

4139
/**
@@ -60,7 +58,7 @@ public AzureEventHubsEmulatorContainer(
6058
* @return this
6159
*/
6260
public AzureEventHubsEmulatorContainer withConfig(final Transferable config) {
63-
this.config = config;
61+
withCopyToContainer(config, "/Eventhubs_Emulator/ConfigFiles/Config.json");
6462
return this;
6563
}
6664

@@ -93,10 +91,6 @@ protected void configure() {
9391
LicenseAcceptance.assertLicenseAccepted(this.getDockerImageName());
9492
acceptLicense();
9593
}
96-
if (this.config != null) {
97-
logger().info("Using path for configuration file: '{}'", this.config);
98-
withCopyToContainer(this.config, "/Eventhubs_Emulator/ConfigFiles/Config.json");
99-
}
10094
if (this.useKafka) {
10195
//Kafka must expose with the fixed default port or the broker's advertised port won't match
10296
this.addFixedExposedPort(DEFAULT_KAFKA_PORT, DEFAULT_KAFKA_PORT);

0 commit comments

Comments
 (0)