mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 03:30:45 +00:00
tests/netdata: fix test after upgrade to 1.43.0
This commit is contained in:
parent
0de727d6a2
commit
a000d9fff6
|
@ -30,8 +30,8 @@ import ./make-test-python.nix ({ pkgs, ...} : {
|
|||
# check if netdata can read disk ops for root owned processes.
|
||||
# if > 0, successful. verifies both netdata working and
|
||||
# apps.plugin has elevated capabilities.
|
||||
url = "http://localhost:19999/api/v1/data\?chart=users.pwrites"
|
||||
filter = '[.data[range(10)][.labels | indices("root")[0]]] | add | . > 0'
|
||||
url = "http://localhost:19999/api/v1/data\?chart=user.root_disk_physical_io"
|
||||
filter = '[.data[range(10)][2]] | add | . < 0'
|
||||
cmd = f"curl -s {url} | jq -e '{filter}'"
|
||||
netdata.wait_until_succeeds(cmd)
|
||||
|
||||
|
|
Loading…
Reference in a new issue