Merge "Add cisco_csr_rest_client.py module for py34 support"
This commit is contained in:
commit
c788f33d51
@ -90,7 +90,7 @@ class CsrRestClient(object):
|
||||
if method == 'POST' and self.status == requests.codes.CREATED:
|
||||
return response.headers.get('location', '')
|
||||
if self.status >= requests.codes.BAD_REQUEST and response.content:
|
||||
if 'error-code' in response.content:
|
||||
if b'error-code' in response.content:
|
||||
content = jsonutils.loads(response.content)
|
||||
LOG.debug("Error response content %s", content)
|
||||
return content
|
||||
|
1
tox.ini
1
tox.ini
@ -94,6 +94,7 @@ commands = python -m testtools.run \
|
||||
neutron_vpnaas.tests.unit.extensions.test_vpnaas \
|
||||
neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_ipsec \
|
||||
neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_cisco_ipsec \
|
||||
neutron_vpnaas.tests.unit.services.vpn.device_drivers.test_cisco_csr_rest_client \
|
||||
neutron_vpnaas.tests.unit.services.vpn.test_vpn_service \
|
||||
neutron_vpnaas.tests.unit.services.vpn.test_vyatta_vpn_service \
|
||||
neutron_vpnaas.tests.unit.services.vpn.service_drivers.test_vyatta_ipsec \
|
||||
|
Loading…
Reference in New Issue
Block a user