← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1590116] Re: test_list_pagination_page_reverse_with_href_links failure in gate

 

Reviewed:  https://review.openstack.org/326711
Committed: https://git.openstack.org/cgit/openstack/neutron/commit/?id=e68121b2658b77df94879c3cafee68663eda2c8e
Submitter: Jenkins
Branch:    master

commit e68121b2658b77df94879c3cafee68663eda2c8e
Author: Ihar Hrachyshka <ihrachys@xxxxxxxxxx>
Date:   Tue Jun 7 21:23:44 2016 +0200

    Match filter criteria when constructing URI for href based iteration
    
    Without that, we compare apples to oranges (expected results excluding
    shared networks and actual results including them).
    
    Change-Id: Ia9b8b1e60acad54110a549da3b327820f2a1ec45
    Closes-Bug: #1590116


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

Title:
  test_list_pagination_page_reverse_with_href_links failure in gate

Status in neutron:
  Fix Released

Bug description:
  Logs: http://logs.openstack.org/56/300056/7/check/gate-neutron-dsvm-
  api/8d75c73/logs/testr_results.html.gz

  Traceback (most recent call last):
    File "/opt/stack/new/neutron/neutron/tests/tempest/api/test_networks.py", line 144, in test_list_pagination_page_reverse_with_href_links
      self._test_list_pagination_page_reverse_with_href_links()
    File "/opt/stack/new/neutron/neutron/tests/tempest/api/base.py", line 484, in inner
      return f(self, *args, **kwargs)
    File "/opt/stack/new/neutron/neutron/tests/tempest/api/base.py", line 475, in inner
      return f(self, *args, **kwargs)
    File "/opt/stack/new/neutron/neutron/tests/tempest/api/base.py", line 686, in _test_list_pagination_page_reverse_with_href_links
      self.assertSameOrder(expected_resources, reversed(resources))
    File "/opt/stack/new/neutron/neutron/tests/tempest/api/base.py", line 508, in assertSameOrder
      self.assertEqual(len(original), len(actual))
    File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 411, in assertEqual
      self.assertThat(observed, matcher, message)
    File "/usr/local/lib/python2.7/dist-packages/testtools/testcase.py", line 498, in assertThat
      raise mismatch_error
  testtools.matchers._impl.MismatchError: 7 != 8

  
  The reason of the failure is that while we correctly limit results used for comparison to shared=False when fetching expected results with list_networks(), we miss shared=False filter when constructing URI for next/previous href iteration.

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


References