@ignatius wrote:
How can I have multiple implementations of the same extension, for example for testing purposes?
Say, for example, I have an extension for a database connection. Normally, that extension would use service discovery to find database servers. But now in an automatized test, I want the extension to connect to a local docker container.
I haven’t found a way to either pass arguments to an extension upon creation, nor “inject” a different implementation of the same Extension.
The only way I can imagine to do it is through configuration variables, but I’d like to avoid that if possible, because in my case it would mean some coupling of test and production code.
Posts: 3
Participants: 2