Code Review
/
csit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
CSIT-427: Honeycomb ietf-ACL tests - L4 and misc.
[csit.git]
/
resources
/
libraries
/
python
/
honeycomb
/
HcAPIKwBridgeDomain.py
diff --git
a/resources/libraries/python/honeycomb/HcAPIKwBridgeDomain.py
b/resources/libraries/python/honeycomb/HcAPIKwBridgeDomain.py
index
f156f09
..
38d5324
100644
(file)
--- a/
resources/libraries/python/honeycomb/HcAPIKwBridgeDomain.py
+++ b/
resources/libraries/python/honeycomb/HcAPIKwBridgeDomain.py
@@
-61,7
+61,7
@@
class BridgeDomainKeywords(object):
status_code, resp = HcUtil.\
put_honeycomb_data(node, "config_bridge_domain", data,
data_representation=data_representation)
status_code, resp = HcUtil.\
put_honeycomb_data(node, "config_bridge_domain", data,
data_representation=data_representation)
- if status_code
!= HTTPCodes.OK
:
+ if status_code
not in (HTTPCodes.OK, HTTPCodes.ACCEPTED)
:
raise HoneycombError(
"The configuration of bridge domain '{0}' was not successful. "
"Status code: {1}.".format(bd_name, status_code))
raise HoneycombError(
"The configuration of bridge domain '{0}' was not successful. "
"Status code: {1}.".format(bd_name, status_code))
@@
-90,7
+90,7
@@
class BridgeDomainKeywords(object):
status_code, resp = HcUtil.\
get_honeycomb_data(node, "config_bridge_domain")
status_code, resp = HcUtil.\
get_honeycomb_data(node, "config_bridge_domain")
- if status_code
!= HTTPCodes.OK
:
+ if status_code
not in (HTTPCodes.OK, HTTPCodes.ACCEPTED)
:
raise HoneycombError(
"Not possible to get configuration information about the "
"bridge domains. Status code: {0}.".format(status_code))
raise HoneycombError(
"Not possible to get configuration information about the "
"bridge domains. Status code: {0}.".format(status_code))