diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/libs/zbxprometheus/prometheus_filter_init.yaml | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/libs/zbxprometheus/prometheus_filter_init.yaml b/tests/libs/zbxprometheus/prometheus_filter_init.yaml index d7234f25f70..eb0e0ee3ba4 100644 --- a/tests/libs/zbxprometheus/prometheus_filter_init.yaml +++ b/tests/libs/zbxprometheus/prometheus_filter_init.yaml @@ -28,7 +28,7 @@ out: pattern: intel op: = --- -test case: '{__name__="cpu", type="intel", cores="4"}' +test case: '{__name__="cpu", type="intel", cores=~"4"}' in: filter: '{__name__="cpu", type="intel", cores=~"4"}' out: @@ -224,5 +224,17 @@ in: filter: sensor == 1e1 1 out: return: FAIL +--- +test case: '{type="intel"cores="4"}' +in: + filter: '{type="intel"cores=~"4"}' +out: + return: FAIL +--- +test case: '{}' +in: + filter: '{}' +out: + return: SUCCEED ... |