Skip to content

Commit 1d83427

Browse files
committed
netdata: Fix netdata.conf test access for v1.47
When trying to access host netdata.conf remotely, Netdata v1.47 now returns the error 'HTTP/1.1 451 Unavailable For Legal Reasons'. This change fixes test_netdata_conf() for this version. Signed-off-by: Thierry Escande <[email protected]>
1 parent 5de806e commit 1d83427

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/packages/netdata/test_netdata.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ def test_netdata_service(self, host):
3131
# Netdata configuration should be accessible only from the host
3232
def test_netdata_conf(self, host):
3333
lines = TestsNetdata.__get_headers(host, 19999, "netdata.conf")
34-
assert lines[0].strip() == "HTTP/1.1 403 Forbidden"
34+
response = lines[0].strip()
35+
assert response == "HTTP/1.1 403 Forbidden" or \
36+
response == "HTTP/1.1 451 Unavailable For Legal Reasons"
3537

3638
stdout = host.ssh(['curl', "-XGET", "-k", "-I", '-s', 'localhost:19999/netdata.conf'])
3739
lines = stdout.splitlines()

0 commit comments

Comments
 (0)