Open Sgitario opened 3 years ago
/cc @stuartwdouglas
Unfortunately fixing this would be very complex, its an ordering issue.
QuarkusTestResource needs to be loaded in the Runtime ClassLoader, so it has access to the application classes, but DevServices are started in the deployment phase, so DevServices are already started by the time QuarkusTestResource is ready to be run.
In theory we could split up DevServices to run potentially run after QuarkusTestResource, but it is a fairly big and complex change.
For now you will need to manually disable DevServices.
Describe the bug
Having a test with:
Where SslStrimziKafkaTestResource is:
When running the test, I would have expected the Kafka Dev Services to not being started as I'm adding the property
kafka.bootstrap.servers
, but the dev services is created:I don't think this is a Kafka Dev Services related thing, but a general issue for other dev services.
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
999-SNAPSHOT
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response