neutron_vpnaas.tests.unit.db.vpn.test_vpn_db.TestVpnDatabase.test_list_endpoint_groups fails due to ordering issue

Bug #1506482 reported by Ihar Hrachyshka
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
neutron
Fix Released
Medium
Ihar Hrachyshka

Bug Description

Sometimes the test fails with the following traceback:

    Traceback (most recent call last):
      File "neutron_vpnaas/tests/unit/db/vpn/test_vpn_db.py", line 1900, in test_list_endpoint_groups
        group_id2 = self.helper_create_endpoint_group(info2)
      File "neutron_vpnaas/tests/unit/db/vpn/test_vpn_db.py", line 1830, in helper_create_endpoint_group
        self.assertDictSupersetOf(info['endpoint_group'], actual)
      File "/home/vagrant/git/neutron-vpnaas/.tox/py27/src/neutron/neutron/tests/base.py", line 231, in assertDictSupersetOf
        {'key': k, 'exp': v, 'act': actual_superset[k]})
      File "/home/vagrant/git/neutron-vpnaas/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 350, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/home/vagrant/git/neutron-vpnaas/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 435, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: !=:
    reference = ['a00562c1-9340-4a36-8111-2885273499e6',
     '1f23e0ab-ddbd-4788-979a-ccbc1f1c787a']
    actual = ['1f23e0ab-ddbd-4788-979a-ccbc1f1c787a',
     u'a00562c1-9340-4a36-8111-2885273499e6']
    : Key endpoints expected: ['a00562c1-9340-4a36-8111-2885273499e6', '1f23e0ab-ddbd-4788-979a-ccbc1f1c787a'], actual ['1f23e0ab-ddbd-4788-979a-ccbc1f1c787a', u'a00562c1-9340-4a36-8111-2885273499e6']

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

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

Changed in neutron:
status: Confirmed → In Progress
Revision history for this message
OpenStack Infra (hudson-openstack) wrote : Fix merged to neutron-vpnaas (master)

Reviewed: https://review.openstack.org/235376
Committed: https://git.openstack.org/cgit/openstack/neutron-vpnaas/commit/?id=9d3a5be234974c797162f3d665a591dcf2f55735
Submitter: Jenkins
Branch: master

commit 9d3a5be234974c797162f3d665a591dcf2f55735
Author: Ihar Hrachyshka <email address hidden>
Date: Thu Oct 15 16:13:07 2015 +0200

    Don't assume the order of endpoints on get is the same as on create

    We don't and should not enforce the order, so enhance the test not to
    assume it.

    Change-Id: I9dcc13e541963298aaad4882d2dff6e65c789e24
    Closes-Bug: #1506482

Changed in neutron:
status: In Progress → Fix Committed
Revision history for this message
Thierry Carrez (ttx) wrote : Fix included in openstack/neutron-vpnaas 8.0.0.0b1

This issue was fixed in the openstack/neutron-vpnaas 8.0.0.0b1 development milestone.

Changed in neutron:
status: Fix Committed → Fix Released
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.