Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Simone Rossi
main
Commits
38d91e21
Commit
38d91e21
authored
Feb 23, 2018
by
Daniele Venzano
Browse files
Fix user endpoint in integration tests
parent
8be21d18
Changes
2
Hide whitespace changes
Inline
Side-by-side
integration_tests/basic_auth_fail_test.py
View file @
38d91e21
...
...
@@ -10,10 +10,10 @@ TIMEOUT = 5
class
TestZoeRestAuthFails
:
"""Test case class."""
def
test_user
info
(
self
,
zoe_api_process
):
"""Test user
info
api endpoint."""
print
(
'Test user
info
api endpoint'
)
req
=
requests
.
get
(
ZOE_API_URI
+
'user
info
'
,
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
):
...
...
integration_tests/basic_auth_success_test.py
View file @
38d91e21
...
...
@@ -21,10 +21,10 @@ class TestZoeRest:
req
=
requests
.
get
(
ZOE_API_URI
+
'info'
,
timeout
=
TIMEOUT
)
assert
req
.
status_code
==
200
def
test_user
info
(
self
,
zoe_api_process
):
"""Test user
info
api endpoint."""
print
(
'Test user
info
api endpoint'
)
req
=
requests
.
get
(
ZOE_API_URI
+
'user
info
'
,
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
):
...
...
Write
Preview
Markdown
is supported
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