← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1540245] [NEW] Navigation for plugins page structure doesn't work for tests

 

Public bug reported:

I can't override navigation structure for sahara dashboard in tests.
Fresh sahara navigation structure looks like this (from config):

plugin_page_structure={
            "Project":
                {
                    "Data Processing":
                        {
                            "_":
                                (
                                    "Clusters",
                                    "Jobs",
                                    "Cluster Templates",
                                    "Node Group Templates",
                                    "Job Templates",
                                    "Job Binaries",
                                    "Data Sources",
                                    "Image Registry",
                                    "Plugins"
                                )
                        }
                }
        }

In horizon (https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/pages/navigation.py#L333) this structure present as string value.
After decoding it using json.loads structure contains dicts and list, but rec function (https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/pages/navigation.py#L320)  doesn't process lists (only tuples).

** Affects: horizon
     Importance: Undecided
         Status: New


** Tags: integration-tests sahara

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

Title:
  Navigation for plugins page structure doesn't work for tests

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  I can't override navigation structure for sahara dashboard in tests.
  Fresh sahara navigation structure looks like this (from config):

  plugin_page_structure={
              "Project":
                  {
                      "Data Processing":
                          {
                              "_":
                                  (
                                      "Clusters",
                                      "Jobs",
                                      "Cluster Templates",
                                      "Node Group Templates",
                                      "Job Templates",
                                      "Job Binaries",
                                      "Data Sources",
                                      "Image Registry",
                                      "Plugins"
                                  )
                          }
                  }
          }

  In horizon (https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/pages/navigation.py#L333) this structure present as string value.
  After decoding it using json.loads structure contains dicts and list, but rec function (https://github.com/openstack/horizon/blob/master/openstack_dashboard/test/integration_tests/pages/navigation.py#L320)  doesn't process lists (only tuples).

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1540245/+subscriptions


Follow ups