Commit 38d91e21 authored by Daniele Venzano's avatar Daniele Venzano

Fix user endpoint in integration tests

parent 8be21d18
......@@ -10,10 +10,10 @@ TIMEOUT = 5
class TestZoeRestAuthFails:
"""Test case class."""
def test_userinfo(self, zoe_api_process):
"""Test userinfo api endpoint."""
print('Test userinfo api endpoint')
req = requests.get(ZOE_API_URI + 'userinfo', auth=WRONG_AUTH)
def test_user(self, zoe_api_process):
"""Test user api endpoint."""
print('Test user api endpoint')
req = requests.get(ZOE_API_URI + 'user', auth=WRONG_AUTH)
assert req.status_code == 401
def test_3_execution_details(self, zoe_api_process):
......
......@@ -21,10 +21,10 @@ class TestZoeRest:
req = requests.get(ZOE_API_URI + 'info', timeout=TIMEOUT)
assert req.status_code == 200
def test_userinfo(self, zoe_api_process):
"""Test userinfo api endpoint."""
print('Test userinfo api endpoint')
req = requests.get(ZOE_API_URI + 'userinfo', auth=ZOE_AUTH, timeout=TIMEOUT)
def test_user(self, zoe_api_process):
"""Test user api endpoint."""
print('Test user api endpoint')
req = requests.get(ZOE_API_URI + 'user', auth=ZOE_AUTH, timeout=TIMEOUT)
assert req.status_code == 200
def test_list_all_executions(self, zoe_api_process):
......
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