yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #46156
[Bug 1542892] Re: all test_extension_driver_port_security require port-security extension
Reviewed: https://review.openstack.org/278624
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=f846519e5af6efa5007896c7ac75d13b415c3f53
Submitter: Jenkins
Branch: master
commit f846519e5af6efa5007896c7ac75d13b415c3f53
Author: malos <m.losmede@xxxxxxxxx>
Date: Wed Feb 10 21:35:01 2016 +0100
Add extension requirement in port-security api test
if port-security extension is not enabled in neutron, 2 tests run and fail.
Even if port-security is not part of the tempest.conf api_extensions list.
Change-Id: I7c15bff96ea976841400e8df93d0c1cb74049bce
Closes-bug: #1542892
** Changed in: neutron
Status: In Progress => Fix Released
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to neutron.
https://bugs.launchpad.net/bugs/1542892
Title:
all test_extension_driver_port_security require port-security
extension
Status in neutron:
Fix Released
Bug description:
2 tests are not checking if port-security extension is enable or not.
then fail if not enabled.
neutron.tests.api.admin.test_extension_driver_port_security_admin.PortSecurityAdminTests.test_create_port_security_false_on_shared_network
neutron.tests.api.test_extension_driver_port_security.PortSecTest.test_allow_address_pairs
below trace of failing test when port-security is not enabled but run
anyway :
Traceback (most recent call last):
File "neutron/tests/api/test_extension_driver_port_security.py", line 147, in test_allow_address_pairs
port = self.create_port(network=network, port_security_enabled=False)
File "neutron/tests/api/base.py", line 290, in create_port
**kwargs)
File "neutron/tests/tempest/services/network/json/network_client.py", line 148, in _create
resp, body = self.post(uri, post_data)
File "neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 259, in post
return self.request('POST', url, extra_headers, headers, body)
File "neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 639, in request
resp, resp_body)
File "neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 697, in _error_checker
raise exceptions.BadRequest(resp_body, resp=resp)
tempest_lib.exceptions.BadRequest: Bad request
Details: {u'detail': u'', u'message': u"Unrecognized attribute(s) 'port_security_enabled'", u'type': u'HTTPBadRequest'}
To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1542892/+subscriptions
References