67 Commits (d541b3bbebbc889e02ff51dd54e5a1674bcf5b77)

Author SHA1 Message Date
George Krajcsovits 1b4e7f74e6
feat(tools): add debug printouts to rules unit testing (#15196) 1 month ago
TJ Hoplock 6ebfbd2d54 chore!: adopt log/slog, remove go-kit/log 2 months ago
Kushal shukla fe12924638
promtool: JUnit-Format XML Test Results (#14506) 4 months ago
Oleksandr Redko f10c3454e9 Enable perfsprint linter and fix up code 6 months ago
Bryan Boreham 8fd96241ab test: add promqltest package references 7 months ago
David Leadbeater 7ec4a11472 promtool: Avoid using testify for user rule tests 8 months ago
Bryan Boreham 5a6c8f9c15 promtool: use go-cmp instead of DeepEqual 10 months ago
Rewanth Tammana 102fd8cc88
Enhanced visibility for `promtool test rules` with JSON colored formatting (#13342) 10 months ago
Rens Groothuijsen 122f9506e9
Set test group interval default to evaluation interval (#13011) 1 year ago
Matthieu MOREL 67dcca5005 ci(lint): enable errorlint linter on cmd 1 year ago
Gregor Zeitlinger f01718262a
Unit tests for native histograms (#12668) 1 year ago
João Vilaça 81394ea1c5 Add --run flag to promtool test rules 1 year ago
Ben Ye fd3630b9a3 add ctx to QueryEngine interface 2 years ago
Matthieu MOREL fb3eb21230 enable gocritic, unconvert and unused linters 2 years ago
beorn7 c0879d64cf promql: Separate `Point` into `FPoint` and `HPoint` 2 years ago
Bryan Boreham bf2c827d91 Update package cmd/promtool for new labels.Labels type 2 years ago
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