neutron-lbaas quota unit tests broken

Bug #1621810 reported by Ihar Hrachyshka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Critical
Stephen Balukoff

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

Revision history for this message
Ihar Hrachyshka (ihar-hrachyshka) wrote :
tags: added: gate-failure lbaas unittest
Changed in neutron:
status: New → Confirmed
importance: Undecided → Critical
Changed in neutron:
assignee: nobody → venkatamahesh (venkatamaheshkotha)
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix proposed to neutron-lbaas (master)

Fix proposed to branch: master
Review: https://review.openstack.org/368217

Changed in neutron:
assignee: venkatamahesh (venkatamaheshkotha) → Stephen Balukoff (sbalukoff)
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-lbaas (master)

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 <email address hidden>
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
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix included in openstack/neutron-lbaas 9.0.0.0rc1

This issue was fixed in the openstack/neutron-lbaas 9.0.0.0rc1 release candidate.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.