mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-30 14:07:59 +00:00
Merge branch '2724-statschannel-system-test-sometimes-hangs' into 'main'
Resolve "statschannel system test sometimes hangs" Closes #2724 See merge request isc-projects/bind9!5123
This commit is contained in:
commit
5bd7caba9c
@ -22,7 +22,8 @@ from helper import fmt
|
||||
# JSON helper functions
|
||||
def fetch_zones_json(statsip, statsport):
|
||||
|
||||
r = requests.get("http://{}:{}/json/v1/zones".format(statsip, statsport))
|
||||
r = requests.get("http://{}:{}/json/v1/zones".format(statsip, statsport),
|
||||
timeout=600)
|
||||
assert r.status_code == 200
|
||||
|
||||
data = r.json()
|
||||
@ -31,7 +32,8 @@ def fetch_zones_json(statsip, statsport):
|
||||
|
||||
def fetch_traffic_json(statsip, statsport):
|
||||
|
||||
r = requests.get("http://{}:{}/json/v1/traffic".format(statsip, statsport))
|
||||
r = requests.get("http://{}:{}/json/v1/traffic".format(statsip, statsport),
|
||||
timeout=600)
|
||||
assert r.status_code == 200
|
||||
|
||||
data = r.json()
|
||||
|
@ -23,7 +23,8 @@ from helper import fmt
|
||||
# XML helper functions
|
||||
def fetch_zones_xml(statsip, statsport):
|
||||
|
||||
r = requests.get("http://{}:{}/xml/v3/zones".format(statsip, statsport))
|
||||
r = requests.get("http://{}:{}/xml/v3/zones".format(statsip, statsport),
|
||||
timeout=600)
|
||||
assert r.status_code == 200
|
||||
|
||||
root = ET.fromstring(r.text)
|
||||
@ -47,7 +48,8 @@ def fetch_traffic_xml(statsip, statsport):
|
||||
|
||||
return out
|
||||
|
||||
r = requests.get("http://{}:{}/xml/v3/traffic".format(statsip, statsport))
|
||||
r = requests.get("http://{}:{}/xml/v3/traffic".format(statsip, statsport),
|
||||
timeout=600)
|
||||
assert r.status_code == 200
|
||||
|
||||
root = ET.fromstring(r.text)
|
||||
|
Loading…
x
Reference in New Issue
Block a user