Commit Graph

36 Commits (764f2d03a52d9bbc702d6e9b285db7cac082a192)

Author SHA1 Message Date
beorn7 c954cd9d1d Move packages out of deprecated pkg directory
3 years ago
Mateusz Gozdek 1a6c2283a3 Format Go source files using 'gofumpt -w -s -extra'
3 years ago
David Leadbeater c91c2bbea5
promtool: Show more human readable got/exp output (#8064)
3 years ago
jinglina ed24e51e7c
remove redundant type conversion (#9126)
3 years ago
Levi Harrison 90976e7505
Promtool: Add feature flags to unit tests (#8958)
3 years ago
Levi Harrison b5f6f8fb36 Switched to go-kit/log
4 years ago
Levi Harrison 17ea8d006a
Added external URL access
4 years ago
Julien Pivotto 5742a18590 Fix subqueries with default resolution in promql unit tests
4 years ago
Julien Pivotto 8c8de46003
Merge pull request #8036 from dgl/promtool-alert-err
4 years ago
Raphael Bauduin a7d64cad21 promtool: alert_rule_test items require alertname
4 years ago
misha 1c3e7b4241 Use strings.Builder for neater error formatting
4 years ago
misha c2c5aeb16b Add optional name property to testgroup for better test failure output
4 years ago
David Leadbeater e7e60623ff
promtool: Calculate mint and maxt per test (#8096)
4 years ago
Julien Pivotto 4e5b1722b3
Move away from testutil, refactor imports (#8087)
4 years ago
David Leadbeater 5393ec22cb promtool: Don't end alert tests early, in some failure situations
4 years ago
David Leadbeater 77c784ac93
Ensure alert rules are marked as restored in unit tests (#7661)
4 years ago
Jordan Neufeld 268b4c29e1
Support extended durations in promtool unit tests (Fixes #6285) (#6297)
5 years ago
Brian Brazil 7646cbca32
Use .UTC everywhere we use time.Unix (#7066)
5 years ago
Tobias Guggenmos 454ba12676 Fix build errors in promtool
5 years ago
akerele abraham 9d39fdad0c unittest: check for rule files existence (#6075)
5 years ago
Simon Pasquier ddff1480a7
cmd/promtool: improve output for PromQL tests (#6052)
5 years ago
Simon Pasquier 75886e0464 cmd/promtool: fix panic with empty exp_labels
5 years ago
Björn Rabenstein dc22f74153
Merge pull request #5608 from simonpasquier/external-labels-for-alert-tests
6 years ago
Keenan Romain 55f3a9fe4a Allows globs for rules when unit testing (#5595)
6 years ago
Simon Pasquier 74ff35ccdd cmd/promtool: add $externalLabels for alert unit tests
6 years ago
Simon Pasquier 9c69eec82a cmd/promtool: use log.NewNopLogger() (#5531)
6 years ago
Björn Rabenstein 0be9388f8d
Merge pull request #5463 from prometheus/beorn7/templating
6 years ago
Simon Pasquier abc1994bec
cmd/promtool: return errors from rule evaluations (#5483)
6 years ago
Bjoern Rabenstein 38d518c0fe Rework #5009 after comments
6 years ago
David Symonds 7a60e22c2d cmd/promtool: resolve relative paths in alert test files (#5336)
6 years ago
Tariq Ibrahim 8fdfa8abea refine error handling in prometheus (#5388)
6 years ago
Simon Pasquier f678e27eb6
*: use latest release of staticcheck (#5057)
6 years ago
Ganesh Vernekar 7d30ccd0eb Sort samples before comparing - PromQL unit test (#5052)
6 years ago
Ganesh Vernekar fbadd88ba5 Get unique eval times for alert unit tests (#4964)
6 years ago
Ganesh Vernekar cfb3769274 Lazily load samples for unit testing (#4851)
6 years ago
Ganesh Vernekar 5790d23fd8 Unit testing for rules (#4350)
6 years ago