Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] bring up docker env in unit test #307

Open
wants to merge 1 commit into
base: connectionHandlingWithShutdown
Choose a base branch
from

Conversation

replay
Copy link
Contributor

@replay replay commented Oct 5, 2018

Current status:
I have a local amqp server running in a docker container, using the public rabbitmq image. I'm trying to make go test -race github.com/graphite-ng/carbon-relay-ng/input -test.v -run TestAmqpConsumeRabbit connect to it, but I can't get it to succeed because the topic exchange doesn't exist and I can't find a way to create it with rabbitmqctl. I think if the unit test would connect to rabbitmq, then it could declare the topic exchange, and then the amqp input should succeed to connect on the next reconnect. So I think the next step should be to make the unit test connect and declare that exchange, and then verify that this way the input can connect successfully.

Side Note:
by default the rabbitmq image user the user guest with password guest for the virtualhost /. Alternatively users / vhosts can be created with these env vars:

RABBITMQ_DEFAULT_VHOST=vhost
RABBITMQ_DEFAULT_USER=test_user
RABBITMQ_DEFAULT_PASS=test_password

@replay replay changed the title WIP bring up docker env in unit test [WIP] bring up docker env in unit test Oct 5, 2018
@CLAassistant
Copy link

CLAassistant commented Jun 15, 2022

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants