Public bug reported:
If you disable any panel, all the tests inside that panel will
- Be run
- Fail to resolve the reverse url if any
Tests inside Panels should only run if that panel is enabled.
How to test:
- Create a file _9999_disable_admin_image.py in
openstack_dashboard/dashboards/local/enable/ with the following content:
PANEL = 'images'
PANEL_DASHBOARD = 'admin'
PANEL_GROUP = 'admin'
REMOVE_PANEL = True
- Run openstack_dashboard and confirm that the images panel under admin is gone
- Run the tests and observe the images tests failing with NoReverseMatch
** Affects: horizon
Importance: Undecided
Assignee: Itxaka Serrano (itxakaserrano)
Status: In Progress
** Changed in: horizon
Assignee: (unassigned) => Itxaka Serrano (itxakaserrano)
--
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/1541489
Title:
disable tests if panel are disabled
Status in OpenStack Dashboard (Horizon):
In Progress
Bug description:
If you disable any panel, all the tests inside that panel will
- Be run
- Fail to resolve the reverse url if any
Tests inside Panels should only run if that panel is enabled.
How to test:
- Create a file _9999_disable_admin_image.py in
openstack_dashboard/dashboards/local/enable/ with the following content:
PANEL = 'images'
PANEL_DASHBOARD = 'admin'
PANEL_GROUP = 'admin'
REMOVE_PANEL = True
- Run openstack_dashboard and confirm that the images panel under admin is
gone
- Run the tests and observe the images tests failing with NoReverseMatch
To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1541489/+subscriptions
--
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to : [email protected]
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help : https://help.launchpad.net/ListHelp