Closed antaka1 closed 7 months ago
Hi, this is not a Testcontainers issue but how you are setting up your project infrastructure. Your test is actually talking with the container itself by this code but your production code doesn't know about it, it only know about the topic name
Module
GCloud
Testcontainers version
1.19.3
Using the latest Testcontainers version?
Yes
Host OS
Windows
Host Arch
x64
Docker version
What happened?
When running a spring test with gcloud pub sub, the resource is not found even if topic is created before so the message cannot be published.
Expected result is that the message is published into topic and can be read from subscription.
Relevant log output
Additional Information
Run the test from the test package here - https://github.com/antaka1/bug-pub-sub-testcontainers/tree/main