← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1542892] [NEW] all test_extension_driver_port_security require port-security extension

 

Public bug reported:

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 "/home/stack/hos-qa-jobs_net_api_hlm-001/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 "/home/stack/hos-qa-jobs_net_api_hlm-001/neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 639, in request
    resp, resp_body)
  File "/home/stack/hos-qa-jobs_net_api_hlm-001/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'}

** Affects: neutron
     Importance: Undecided
         Status: New

** Summary changed:

- all test_extension_driver_port_security require extension port-security
+ all test_extension_driver_port_security require port-security extension

-- 
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:
  New

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 "/home/stack/hos-qa-jobs_net_api_hlm-001/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 "/home/stack/hos-qa-jobs_net_api_hlm-001/neutron/.tox/api-constraints/local/lib/python2.7/site-packages/tempest_lib/common/rest_client.py", line 639, in request
      resp, resp_body)
    File "/home/stack/hos-qa-jobs_net_api_hlm-001/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


Follow ups