-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Azure Event Hubs Emulator container to Azure module #9665
base: main
Are you sure you want to change the base?
Add Azure Event Hubs Emulator container to Azure module #9665
Conversation
41ee74d
to
4c40dfd
Compare
148c7fc
to
8c821d8
Compare
- Add Azure Eventhubs Emulator container - Implement new test case - Update Azure documentation Signed-off-by: Esta Nagy <[email protected]>
8c821d8
to
fa3e337
Compare
modules/azure/src/main/java/org/testcontainers/azure/AzureEventhubsEmulatorContainer.java
Outdated
Show resolved
Hide resolved
* @param config The file containing the broker configuration | ||
* @return this | ||
*/ | ||
public AzureEventhubsEmulatorContainer withConfig(final MountableFile config) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
public AzureEventhubsEmulatorContainer withConfig(final MountableFile config) { | |
public AzureEventhubsEmulatorContainer withConfig(final Transferable config) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should I update the Azurite config too similarly? It feels wrong to use two different approaches...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Using transferable for the config file makes sense because the json file can be built programmatically. I do not expect the same for the certificates. WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To be honest I don't see the big difference but this might be just because I am not that familiar with these two types and the exact intent behind them (hopefully I will learn now).
We can generate (or download from a secure place) a Java KeyStore
without ever writing it to file, also if you want to generate a configuration json, it is a small step to write it to a temp file and then simply create a MountableFile
with it. Or is the difference more nuanced?
modules/azure/src/main/java/org/testcontainers/azure/AzureEventhubsEmulatorContainer.java
Outdated
Show resolved
Hide resolved
modules/azure/src/main/java/org/testcontainers/azure/AzureEventhubsEmulatorContainer.java
Outdated
Show resolved
Hide resolved
modules/azure/src/test/java/org/testcontainers/azure/AzureEventhubsEmulatorContainerTest.java
Outdated
Show resolved
Hide resolved
- Fix license acceptance - Use Transferable - Remove unnecessary code from tests Signed-off-by: Esta Nagy <[email protected]>
- Fix Typo in the container's name - Require AzuriteContainer as dependency - Add Kafka Event Hubs test - Add Kafka option to Azure documentation Signed-off-by: Esta Nagy <[email protected]>
- Fix typos Signed-off-by: Esta Nagy <[email protected]>
- Fix test method name Signed-off-by: Esta Nagy <[email protected]>
- Polish Signed-off-by: Esta Nagy <[email protected]>
Must be merged after: #9661
Relates to: #9607 (comment)