-
-
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
Deprecate CLI utility methods in RabbitMQ module #7588
Conversation
I see your point, but this change seriously broke the DX for us. In 1.19.0, we could initialize and configure the complete container in one command on a static field. B/c of the required exception handling (and also the different return type), we now would need to generate a dedicated ApplicationContextInitializer method to execute the raw commands via What about moving these convenience methods into a dedicated subclass, i.e. |
Interestingly enough that is the default image:
@eddumelendez does RabbitMQ have a history of often changing or breaking the CLI options? |
Hi, few notes:
|
@eddumelendez i understand you points and that this was the proper action to reduce scope creep of testcontainers. Do you think it would be OK to keep the current At the end of the day that's the biggest loss here and it would be superawesome to still have a way of configuring "onReady" commands while keeping object initialization down to a single command that doesn't require additional exception handling (as it's completely fine the way |
I think vault and consul are doing it like that. Indeed, this is something we have been discussing. But, aligning all the modules would be until version 2.0. |
May I kindly ask you to eat your own dog food and adapt your own tests, e.g. |
Those utility methods couple the implementation to the cli, which is only provided when using
management
image. Also, although very convinient methods, it will be hard to maintain for every command in the cli.