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

[receiver/rabbitmq] Add integration test #10865

Closed
djaglowski opened this issue Jun 9, 2022 · 2 comments · Fixed by #11049
Closed

[receiver/rabbitmq] Add integration test #10865

djaglowski opened this issue Jun 9, 2022 · 2 comments · Fixed by #11049
Assignees
Labels
ci-cd CI, CD, testing, build issues priority:p2 Medium

Comments

@djaglowski
Copy link
Member

djaglowski commented Jun 9, 2022

The task is essentially to create an integration test that:

  1. Starts an rabbitmq docker container
  2. Initializes the rabbitmqreceiver component from it's factory
  3. Scrapes metrics from the docker container
  4. Validates that the expected metrics are scraped (using the scrapertest package)

As far as examples go, there are a few components out there that have integration tests using the same pattern.
For instance:

Mysql receiver integration test
Nginx receiver integration test

Adapted from post by @BinaryFissionGames in #10165 (comment)

@djaglowski djaglowski added the ci-cd CI, CD, testing, build issues label Jun 9, 2022
@Frapschen
Copy link
Contributor

hi,I can help it like the es receiver :)

@djaglowski
Copy link
Member Author

Thanks @Frapschen. I've assigned the issue to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci-cd CI, CD, testing, build issues priority:p2 Medium
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants