test_all_task_api fails in stable/ocata

Bug #1705097 reported by Rajath Agasthya
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Glance
Incomplete
Undecided
Unassigned

Bug Description

test_all_task_api unit test fails when tox is run in stable/ocata branch and is consistently reproducible.

==============================
Failed 1 tests - output below:
==============================

glance.tests.integration.v2.test_tasks_api.TestTasksApi.test_all_task_api
-------------------------------------------------------------------------

Captured traceback:
~~~~~~~~~~~~~~~~~~~
    Traceback (most recent call last):
      File "glance/tests/integration/v2/test_tasks_api.py", line 176, in test_all_task_api
        self.assertEqual('success', task['status'])
      File "/Users/rajagast/glance/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 411, in assertEqual
        self.assertThat(observed, matcher, message)
      File "/Users/rajagast/glance/.tox/py27/lib/python2.7/site-packages/testtools/testcase.py", line 498, in assertThat
        raise mismatch_error
    testtools.matchers._impl.MismatchError: 'success' != u'failure'

Revision history for this message
Gleb Zimin (gzimin) wrote :

Can you show tox.ini file?

Revision history for this message
Gleb Zimin (gzimin) wrote :

So, i make it incomplete because you need to give more information about this bug. If you run tox with default tox.ini file in stable/ocata branch you wouldn't catch this error.

Changed in glance:
status: New → Incomplete
Revision history for this message
Rajath Agasthya (rajagast) wrote :

Sorry, I don't know how I missed your comments on this one! I did a little bit of investigation. The problem is glance relies on connections to www.example.com in its tests, which is blocked in our corporate firewall. Hence the failures.

This patch addresses the issue: https://review.openstack.org/#/c/437449/. It will be great to get that merged.

Thanks.

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.