← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1479018] [NEW] get_panel_group error with enabled panel tests

 

Public bug reported:

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.

** Affects: horizon
     Importance: Undecided
     Assignee: Matt Borland (palecrow)
         Status: In Progress

-- 
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/1479018

Title:
  get_panel_group error with enabled panel tests

Status in OpenStack Dashboard (Horizon):
  In Progress

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


Follow ups