Dashboard tests register admin.aggregates as side effect
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
OpenStack Dashboard (Horizon) |
Fix Released
|
Critical
|
Radomir Dopieralski |
Bug Description
The mocks that have recently been added to the setUp method of the Openstack Dashboard TestCase have a side effect of registering the admin.aggregates panel, even if it has been disabled in the configuration. That's because Mock has to import the module in order to mock anything inside it, and importing the panel module has a side effect of registering the panel (the register command is at the top level of the module code).
This doesn't affect the Dashboard tests, as this panel is already registered in them. However, in Tuskar-UI we disable all dashboards and their panels except for the infrastructure dashboard that we are adding. This leads to url resolution errors when a panel is being registered in a dashboard that doesn't exist.
Changed in horizon: | |
status: | In Progress → Fix Committed |
Changed in horizon: | |
status: | Fix Committed → Fix Released |
Changed in horizon: | |
milestone: | kilo-rc1 → 2015.1.0 |
I'm setting this to critical, because it breaks the tuskar-ui gate.