Commit e6bc04e2 authored by Alain Takoudjou's avatar Alain Takoudjou

update tests

parent 5cc197dd
...@@ -63,11 +63,12 @@ class TestRepman(SlapOSInstanceTestCase): ...@@ -63,11 +63,12 @@ class TestRepman(SlapOSInstanceTestCase):
token = resp.json()['token'] token = resp.json()['token']
headers = {"authorization": "Bearer " + token} headers = {"authorization": "Bearer " + token}
resp = requests.get( resp = requests.get(
urljoin(self.url, '/api/monitor'), urljoin(self.url, '/api/clusters/cluster1/status'),
headers=headers, headers=headers,
verify=False, verify=False,
) )
self.assertEqual(resp.status_code, requests.codes.ok) self.assertEqual(resp.status_code, requests.codes.ok)
self.assertEqual(resp.json(), {"alive": "running"})
for i in range(20): for i in range(20):
resp = requests.get( resp = requests.get(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment