← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1621810] Re: neutron-lbaas quota unit tests broken

 

Reviewed:  https://review.openstack.org/368217
Committed: https://git.openstack.org/cgit/openstack/neutron-lbaas/commit/?id=d27e8425b284042b98c0170119b7cdc9e0570690
Submitter: Jenkins
Branch:    master

commit d27e8425b284042b98c0170119b7cdc9e0570690
Author: Stephen Balukoff <stephen@xxxxxxxxxxxx>
Date:   Fri Sep 9 13:04:34 2016 -0700

    Update quota tests to register quota resources
    
    Change I8a40f38d7c0e5aeca257ba62115fa9b02ad5aa93 in the neutron code
    tree recently altered the default behavior of quota tests to unregister
    quota resources if they weren't explicitly registered in the test. This
    broke neutron-lbaas quota tests. This commit updates the quota tests to
    explicitly register our quota resources in the setUp() call.
    
    Change-Id: If3c62574d728c1b7517f406890301f74e96566d1
    Closes-Bug: #1621810


** 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/1621810

Title:
  neutron-lbaas quota unit tests broken

Status in neutron:
  Fix Released

Bug description:
  http://logs.openstack.org/10/355510/3/check/gate-neutron-lbaas-
  python27-ubuntu-xenial/007c1f9/testr_results.html.gz

  neutron_lbaas.tests.unit.services.loadbalancer.test_loadbalancer_quota_ext.LBaaSQuotaExtensionCfgTestCase.test_quotas_default_values

  Traceback (most recent call last):
    File "neutron_lbaas/tests/unit/services/loadbalancer/test_loadbalancer_quota_ext.py", line 146, in test_quotas_default_values
      self.assertEqual(10, quota['quota']['pool'])
  KeyError: 'pool'

  neutron_lbaas.tests.unit.services.loadbalancer.test_loadbalancer_quota_ext.LBaaSQuotaExtensionCfgTestCase.test_update_quotas_forbidden

  Traceback (most recent call last):
    File "neutron_lbaas/tests/unit/services/loadbalancer/test_loadbalancer_quota_ext.py", line 158, in test_update_quotas_forbidden
      self.assertEqual(403, res.status_int)
    File "/home/jenkins/workspace/gate-neutron-lbaas-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/home/jenkins/workspace/gate-neutron-lbaas-python27-ubuntu-xenial/.tox/py27/local/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 403 != 400

To manage notifications about this bug go to:
https://bugs.launchpad.net/neutron/+bug/1621810/+subscriptions


References