Commit c5fa6a7d authored by Markus Scheidgen's avatar Markus Scheidgen
Browse files

Fixed wrong api path after api refactor.

parent abb445ad
...@@ -157,10 +157,10 @@ tests = NomadConfig( ...@@ -157,10 +157,10 @@ tests = NomadConfig(
def api_url(ssl: bool = True): def api_url(ssl: bool = True):
return '%s://%s%s' % ( return '%s://%s/%s/api' % (
'https' if services.https and ssl else 'http', 'https' if services.https and ssl else 'http',
services.api_host, services.api_host.strip('/'),
services.api_base_path) services.api_base_path.strip('/'))
migration_source_db = NomadConfig( migration_source_db = NomadConfig(
......
...@@ -312,6 +312,7 @@ class TestUploads: ...@@ -312,6 +312,7 @@ class TestUploads:
assert rv.status_code == 200 assert rv.status_code == 200
data = json.loads(rv.data) data = json.loads(rv.data)
assert 'upload_command' in data assert 'upload_command' in data
assert '/api/uploads' in data['upload_command']
assert 'upload_url' in data assert 'upload_url' in data
def test_get_empty(self, api, test_user_auth, no_warn): def test_get_empty(self, api, test_user_auth, no_warn):
......
Supports Markdown
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