prometheus/web
gotjosh 428089f83f api: tests for /target/metadata API endpoint
This commit introduces several test cases for the current /targets/metadata API endpoint.

To achieve so, we use a mock of the metadataStore and inject it to the targets under test.

Currently, three success cases are covered: with a metric name, with a target matcher, and with both. As for the failure scenario, the one where we couldn't match against a particular metric is covered.

Signed-off-by: gotjosh <josue@grafana.com>
2019-12-05 10:30:00 +00:00
..
api api: tests for /target/metadata API endpoint 2019-12-05 10:30:00 +00:00
ui Graph multi series select (#6391) 2019-12-03 20:20:45 +01:00
federate.go *: enable all default linters (#5504) 2019-05-03 15:11:28 +02:00
federate_test.go Fix staticcheck errors 2019-04-17 01:40:10 +02:00
web.go React UI: Add /tsdb-status to React-handled routes (#6313) 2019-11-20 15:50:52 +01:00
web_test.go Cleanup after merging tsdb into prometheus 2019-08-13 14:04:14 +05:30