49 Commits (f113d58a57a889ac36c298f3099a91f5e777f848)

Author SHA1 Message Date
Cosrider bef6556ca5
delete redundant alias (#11180) 2 years ago
Matthieu MOREL 36eee11434
refactor (package cmd): move from github.com/pkg/errors to 'errors' and 'fmt' packages (#10733) 3 years ago
Matthieu MOREL e2ede285a2
refactor: move from io/ioutil to io and os packages (#10528) 3 years ago
Wilbert Guo 83a2e52bc2
Add SyncForState Implementation for Ruler HA (#10070) 3 years ago
Alan Protasio 606ef33d91 Track and report Samples Queried per query 3 years ago
jessicagreben 99bb56fc46 add errcodes from sd file 3 years ago
beorn7 4c28d9fac7 Move to histogram.Histogram pointers 3 years ago
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 97fb4a34ae Fix subqueries with default resolution in promql unit tests (backport #8569) 4 years ago
Julien Pivotto 5742a18590 Fix subqueries with default resolution in promql unit tests 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
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
Simon Pasquier 31a2d14e2f cmd/promtool: return errors from rule evaluations (#5483) 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