Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

nixosTests.prometheus-exporters.smokeping: fix test after 0.10.0

prometheus-smokeping-prober was updated to 0.10.0 in #396980
which introduced a new label `tos` in its metrics.
add it to the failing tests to make them match
the expected metric (and pass) again

you could argue that the tests are a bit too greedy with the way
they match metrics, but I actually like it that way

(cherry picked from commit 2103ba26886f3e2ac531cdea072d673f3e0ffed3)

authored by Willy and committed by github-actions[bot] 9971d819 6b4a1d74

Changed files
+2 -2
nixos
+2 -2
nixos/tests/prometheus-exporters.nix
··· 1546 1546 wait_for_open_port(9374) 1547 1547 wait_until_succeeds( 1548 1548 "curl -sSf localhost:9374/metrics | grep '{}' | grep -v ' 0$'".format( 1549 - 'smokeping_requests_total{host="127.0.0.1",ip="127.0.0.1",source=""} ' 1549 + 'smokeping_requests_total{host="127.0.0.1",ip="127.0.0.1",source="",tos="0"} ' 1550 1550 ) 1551 1551 ) 1552 1552 wait_until_succeeds( 1553 1553 "curl -sSf localhost:9374/metrics | grep '{}'".format( 1554 - 'smokeping_response_ttl{host="127.0.0.1",ip="127.0.0.1",source=""}' 1554 + 'smokeping_response_ttl{host="127.0.0.1",ip="127.0.0.1",source="",tos="0"}' 1555 1555 ) 1556 1556 ) 1557 1557 '';