yahoo-eng-team team mailing list archive
-
yahoo-eng-team team
-
Mailing list archive
-
Message #76906
[Bug 1815285] [NEW] test_url_for in openstack_dashboard.test.unit.api.test_base fails if UT runs only with this module
Public bug reported:
When we run openstack_dashboard.test.unit.api.test_base only,
test_url_for fails.
======================================================================
ERROR: test_url_for (openstack_dashboard.test.unit.api.test_base.ApiHelperTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tipica/work/horizon/openstack_dashboard/test/unit/api/test_base.py", line 243, in test_url_for
url = api_base.url_for(self.request, 'image')
File "/home/tipica/work/horizon/openstack_dashboard/api/base.py", line 332, in url_for
catalog = request.user.service_catalog
File "/home/tipica/work/horizon/.tox/py27/local/lib/python2.7/site-packages/django/utils/functional.py", line 239, in inner
return func(self._wrapped, *args)
AttributeError: 'AnonymousUser' object has no attribute 'service_catalog'
----------------------------------------------------------------------
Ran 22 tests in 0.403s
** Affects: horizon
Importance: Low
Assignee: Akihiro Motoki (amotoki)
Status: In Progress
** Tags: unittest
** Changed in: horizon
Importance: Undecided => Low
--
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1815285
Title:
test_url_for in openstack_dashboard.test.unit.api.test_base fails if
UT runs only with this module
Status in OpenStack Dashboard (Horizon):
In Progress
Bug description:
When we run openstack_dashboard.test.unit.api.test_base only,
test_url_for fails.
======================================================================
ERROR: test_url_for (openstack_dashboard.test.unit.api.test_base.ApiHelperTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/tipica/work/horizon/openstack_dashboard/test/unit/api/test_base.py", line 243, in test_url_for
url = api_base.url_for(self.request, 'image')
File "/home/tipica/work/horizon/openstack_dashboard/api/base.py", line 332, in url_for
catalog = request.user.service_catalog
File "/home/tipica/work/horizon/.tox/py27/local/lib/python2.7/site-packages/django/utils/functional.py", line 239, in inner
return func(self._wrapped, *args)
AttributeError: 'AnonymousUser' object has no attribute 'service_catalog'
----------------------------------------------------------------------
Ran 22 tests in 0.403s
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1815285/+subscriptions
Follow ups