Skip to content

Improve e2e testing for ScrapeConfig #6452

@slashpai

Description

@slashpai

Component(s)

ScrapeConfig

What is missing? Please describe.

For ScrapeConfig we have added support for multiple SDs for which we haven't added e2e tests. The idea is to improve the test coverage by testing SDs in e2e. Logging this issue to explore possible options

One of the option is to utilize testcontainers.

For example we could use it for testing ConsulSD. We would need to register some service or could be consul itself which comes registered by default and add test to discover the services registered in consul through ScrapeConfig.

Describe alternatives you've considered.

NA

Environment Information.

Environment

Kubernetes Version:
Prometheus-Operator Version:

NA

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions