Unit test leakage
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Confirmed
|
Medium
|
Unassigned |
Bug Description
Running a subset of the test suite via:
./run_tests.sh openstack_
results in a rest error:
======
ERROR: test_url_for (openstack_
------
Traceback (most recent call last):
File "/Users/
url = api_base.
File "/Users/
catalog = request.
File "/Users/
return func(self._wrapped, *args)
AttributeError: 'AnonymousUser' object has no attribute 'service_catalog'
------
which goes away when the scope of the tests is raised up to:
./run_tests.sh openstack_
which implies the setup of the tests in some other part of Horizon is causing a side-effect that's being relied upon in the api tests.
Update: this is reproducible in Pike by using:
tox -e p27 openstack_
Changed in horizon: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
summary: |
- test setup leakage in current (2015-07-08) master HEAD + Unit test leakage |
description: | updated |
I think this was fixed as bug 1805240 and bug 1806053.