File tree Expand file tree Collapse file tree 1 file changed +1
-7
lines changed
modules/azure/src/main/java/org/testcontainers/azure Expand file tree Collapse file tree 1 file changed +1
-7
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments