Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Update Honeycomb tests
[csit.git]
/
resources
/
libraries
/
python
/
HTTPRequest.py
diff --git
a/resources/libraries/python/HTTPRequest.py
b/resources/libraries/python/HTTPRequest.py
index
fd2925c
..
567ac79
100644
(file)
--- a/
resources/libraries/python/HTTPRequest.py
+++ b/
resources/libraries/python/HTTPRequest.py
@@
-35,6
+35,7
@@
class HTTPCodes(IntEnum):
UNAUTHORIZED = 401
FORBIDDEN = 403
NOT_FOUND = 404
UNAUTHORIZED = 401
FORBIDDEN = 403
NOT_FOUND = 404
+ INTERNAL_SERVER_ERROR = 500
SERVICE_UNAVAILABLE = 503
SERVICE_UNAVAILABLE = 503
@@
-108,7
+109,7
@@
class HTTPRequest(object):
:type ip_addr: str
:type port: str or int
:type path: str
:type ip_addr: str
:type port: str or int
:type path: str
- :return:
full url
+ :return:
Full url.
:rtype: str
"""
return "http://{ip}:{port}{path}".format(ip=ip_addr, port=port,
:rtype: str
"""
return "http://{ip}:{port}{path}".format(ip=ip_addr, port=port,
@@
-155,7
+156,7
@@
class HTTPRequest(object):
:type path: str
:type enable_logging: bool
:type kwargs: dict
:type path: str
:type enable_logging: bool
:type kwargs: dict
- :return: Status code and content of response
+ :return: Status code and content of response
.
:rtype: tuple
:raises HTTPRequestError: If
1. it is not possible to connect,
:rtype: tuple
:raises HTTPRequestError: If
1. it is not possible to connect,