Danny Staple
87b9f1d24a
Fix typo I introduced in unit testing rules.
...
Signed-off-by: Danny Staple <danny@orionrobots.co.uk>
2022-12-14 12:20:28 +00:00
Danny Staple
b614fdd8a7
Update unit_testing_rules.md
...
Update the shorthand, and note the different behaviour between missing samples and numbers.
Signed-off-by: Danny Staple <danny@orionrobots.co.uk>
2022-12-13 15:52:40 +00:00
Danny Staple
300d6e4390
Add an explanation to the expanding notation
...
After some team discussion, we found this to be a useful was to explain the samples.
Signed-off-by: Danny Staple <danny@orionrobots.co.uk>
2022-12-13 11:11:13 +00:00
Arunprasad Rajkumar
83a56e22ab
docs: update unit_testing_rules to cover missing and stale samples ( #9065 )
...
Signed-off-by: Arunprasad Rajkumar <arajkuma@redhat.com>
2021-07-19 15:46:14 +05:30
Levi Harrison
51e4e2a526
Updated docs
...
Signed-off-by: Levi Harrison <git@leviharrison.dev>
2021-05-30 23:36:05 -04:00
Julien Pivotto
5742a18590
Fix subqueries with default resolution in promql unit tests
...
Signed-off-by: Julien Pivotto <roidelapluie@inuits.eu>
2021-03-07 09:20:04 +01:00
misha
1c3e7b4241
Use strings.Builder for neater error formatting
...
Signed-off-by: misha <DL-OTTCloudPlatform-Nova@bskyb.internal>
2021-02-09 15:00:26 +00:00
Simon Pasquier
f6f23a2675
docs: update unit testing rules ( #6051 )
...
* docs: update unit testing rules
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
* More nits fixed
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-09-25 09:26:53 +02:00
Björn Rabenstein
dc22f74153
Merge pull request #5608 from simonpasquier/external-labels-for-alert-tests
...
cmd/promtool: add $externalLabels for alert unit tests
2019-06-20 16:48:12 +02:00
Keenan Romain
55f3a9fe4a
Allows globs for rules when unit testing ( #5595 )
...
* Includes glob support when unit testing rule_files.
Signed-off-by: Keenan Romain <Keenan.Romain@mailchimp.com>
2019-06-12 11:31:07 +01:00
Simon Pasquier
74ff35ccdd
cmd/promtool: add $externalLabels for alert unit tests
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-05-29 16:40:01 +02:00
Simon Pasquier
9c69eec82a
cmd/promtool: use log.NewNopLogger() ( #5531 )
...
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
2019-05-03 10:00:07 +01:00
Ganesh Vernekar
420c0f5e46
Fix docs ( #4690 )
...
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-10-03 12:45:09 +01:00
Ganesh Vernekar
5790d23fd8
Unit testing for rules ( #4350 )
...
* Unit testing for rules
* Specifying order of group evaluation in unit tests
Signed-off-by: Ganesh Vernekar <cs15btech11018@iith.ac.in>
2018-09-25 17:06:26 +01:00