diff options
author | Andris Zeila <andris.zeila@zabbix.com> | 2019-02-25 11:48:08 +0300 |
---|---|---|
committer | Andris Zeila <andris.zeila@zabbix.com> | 2019-02-25 11:48:08 +0300 |
commit | 089ade7234a02a64cbf2f41fbbd063a191351d21 (patch) | |
tree | 4285dcd415f6a0216702fa850d0c67ab3957e861 /tests/libs/zbxprometheus | |
parent | 341d2047015b13fd3c918358907da2b305f293e2 (diff) |
........S. [ZBXNEXT-4865] fixed prometheus label parsing
Diffstat (limited to 'tests/libs/zbxprometheus')
-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 ... |