S3Client losing reference localstack on tests with wiremock #51678
Unanswered
kauanmocelin
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
On quarkus v3.27, when running two tests annotated with @QuarkusTest, the LocalStack container is started and then shut down. As a result, the first S3Client loses its reference to the LocalStack container’s IP and port, resulting in a “connection refused” error.
I was able to simulate this error with a simple example: https://github.com/kauanmocelin/quarkus-context-s3client
In the class AnotherQuarkusTest, if I change
restrictToAnnotatedClass = truetofalse, everything works fine.There is some conflict with Dev Services between WireMock/LocalStack and the injected S3Client, or I don’t fully understand how Quarkus manages Dev Services in this case.
Beta Was this translation helpful? Give feedback.
All reactions