Comment 4 for bug 1479018

Revision history for this message
Matt Borland (palecrow) wrote : Re: [Bug 1479018] Re: get_panel_group error with enabled panel tests

Not at all..I appreciate you taking the time...let me know how I can help!

Matt

On Thursday, July 30, 2015, David Lyle <email address hidden> wrote:

> I've just spent two days working on deeper fix for this bug. So took
> ownership. Hope you don't mind Matt :)
>
>
> ** Changed in: horizon
> Assignee: Matt Borland (palecrow) => David Lyle (david-lyle)
>
> ** Changed in: horizon
> Status: In Progress => Confirmed
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1479018
>
> Title:
> get_panel_group error with enabled panel tests
>
> Status in OpenStack Dashboard (Horizon):
> Confirmed
>
> Bug description:
> When enabling panels in patches such as:
> - https://review.openstack.org/#/c/205296/ (which involves setting
> Disabled to False)
>
> The feature works perfectly fine when viewed. However, an error comes
> up when the tests are run, in
> openstack_dashboard.test.test_plugins.panel_test.
>
> The call to get_panel_group fails:
> ERROR: test_remove_panel
> (openstack_dashboard.test.test_plugins.panel_tests.PanelPluginTests)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
> File
> "/home/mborland/horizon/openstack_dashboard/test/test_plugins/panel_tests.py",
> line 65, in test_remove_panel
> [p.__class__ for p in dashboard.get_panels()])
> File "/home/mborland/horizon/horizon/base.py", line 451, in get_panels
> panel_groups = self.get_panel_groups()
> File "/home/mborland/horizon/horizon/base.py", line 470, in
> get_panel_groups
> registered.pop(panel.__class__)
> KeyError: <class
> 'openstack_dashboard.dashboards.admin.ngdefaults.panel.NgDefaults'>
>
>
> When this happens, it seems the panel groups are not quite aligned with
> what is enabled.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/horizon/+bug/1479018/+subscriptions
>