Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
nomad-lab
nomad-FAIR
Commits
c5fa6a7d
Commit
c5fa6a7d
authored
Sep 20, 2019
by
Markus Scheidgen
Browse files
Fixed wrong api path after api refactor.
parent
abb445ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
nomad/config.py
View file @
c5fa6a7d
...
...
@@ -157,10 +157,10 @@ tests = NomadConfig(
def
api_url
(
ssl
:
bool
=
True
):
return
'%s://%s%s'
%
(
return
'%s://%s
/
%s
/api
'
%
(
'https'
if
services
.
https
and
ssl
else
'http'
,
services
.
api_host
,
services
.
api_base_path
)
services
.
api_host
.
strip
(
'/'
)
,
services
.
api_base_path
.
strip
(
'/'
)
)
migration_source_db
=
NomadConfig
(
...
...
tests/app/test_api.py
View file @
c5fa6a7d
...
...
@@ -312,6 +312,7 @@ class TestUploads:
assert
rv
.
status_code
==
200
data
=
json
.
loads
(
rv
.
data
)
assert
'upload_command'
in
data
assert
'/api/uploads'
in
data
[
'upload_command'
]
assert
'upload_url'
in
data
def
test_get_empty
(
self
,
api
,
test_user_auth
,
no_warn
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment