You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First, I want to congratulate you guys for the hard work on this.
Having said that, I was using testcontainers-scala-rabbitmq for spinning up a container for test purposes when I noticed the exchange configuration I was trying to preload in the containers was not working.
The following is the container bootstrap code I used to provide a test-exchange exchange
I used the Rabbit's web admin interface to recover the instance configuration json and, as you can see, below. There was no exchange configuration being delivered to the container.
I got curious and started looking under the hood in then I realised that exchanges initialization happens before vhost initialization. Since my exchange was tied to a vhost initialized later one it seemed possible this was the root cause of the issue.
Hi fellows
First, I want to congratulate you guys for the hard work on this.
Having said that, I was using
testcontainers-scala-rabbitmq
for spinning up a container for test purposes when I noticed the exchange configuration I was trying to preload in the containers was not working.The following is the container bootstrap code I used to provide a
test-exchange
exchangeI used the Rabbit's web admin interface to recover the instance configuration json and, as you can see, below. There was no exchange configuration being delivered to the container.
I got curious and started looking under the hood in then I realised that exchanges initialization happens before vhost initialization. Since my exchange was tied to a vhost initialized later one it seemed possible this was the root cause of the issue.
I played with a local implementation pushing vhost initialization upwards in the JavaRabbitMQContainer bootstrapping code and it worked like a charm.
If you don't mind I'll push a PR fixing this issue later Today
The text was updated successfully, but these errors were encountered: