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/mongodb] Add integration test #10864

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

[receiver/mongodb] Add integration test #10864

djaglowski opened this issue Jun 9, 2022 · 2 comments · Fixed by #11031
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 mongodb docker container
  2. Initializes the mongodbreceiver 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

I would like help it.

@djaglowski
Copy link
Member Author

Thanks @Frapschen. I've assigned it 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