Fixing permissions for data processing panels
Recently, the data processing service was renamed to "data-processing" rather than "data_processing". Each panel needs to be updated so that it will show up when the data-processing service is enabled. Also updated the underlying test data to reflect the update. Change-Id: I38d7350215cbe5c5f406d75d6be7c9057957bc69 Closes-Bug: #1429987
This commit is contained in:
parent
4bdbd5c873
commit
f4781d8796
@ -73,7 +73,7 @@ class SystemInfoViewTests(test.BaseAdminViewTests):
|
|||||||
'<Service: metering>',
|
'<Service: metering>',
|
||||||
'<Service: orchestration>',
|
'<Service: orchestration>',
|
||||||
'<Service: database>',
|
'<Service: database>',
|
||||||
'<Service: data_processing>', ])
|
'<Service: data-processing>', ])
|
||||||
|
|
||||||
self.mox.VerifyAll()
|
self.mox.VerifyAll()
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class ClusterTemplatesPanel(horizon.Panel):
|
class ClusterTemplatesPanel(horizon.Panel):
|
||||||
name = _("Cluster Templates")
|
name = _("Cluster Templates")
|
||||||
slug = 'data_processing.cluster_templates'
|
slug = 'data_processing.cluster_templates'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(ClusterTemplatesPanel)
|
dashboard.Project.register(ClusterTemplatesPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class ClustersPanel(horizon.Panel):
|
class ClustersPanel(horizon.Panel):
|
||||||
name = _("Clusters")
|
name = _("Clusters")
|
||||||
slug = 'data_processing.clusters'
|
slug = 'data_processing.clusters'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(ClustersPanel)
|
dashboard.Project.register(ClustersPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class ImageRegistryPanel(horizon.Panel):
|
class ImageRegistryPanel(horizon.Panel):
|
||||||
name = _("Image Registry")
|
name = _("Image Registry")
|
||||||
slug = 'data_processing.data_image_registry'
|
slug = 'data_processing.data_image_registry'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(ImageRegistryPanel)
|
dashboard.Project.register(ImageRegistryPanel)
|
||||||
|
@ -21,6 +21,6 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class PluginsPanel(horizon.Panel):
|
class PluginsPanel(horizon.Panel):
|
||||||
name = _("Plugins")
|
name = _("Plugins")
|
||||||
slug = 'data_processing.data_plugins'
|
slug = 'data_processing.data_plugins'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
dashboard.Project.register(PluginsPanel)
|
dashboard.Project.register(PluginsPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class DataSourcesPanel(horizon.Panel):
|
class DataSourcesPanel(horizon.Panel):
|
||||||
name = _("Data Sources")
|
name = _("Data Sources")
|
||||||
slug = 'data_processing.data_sources'
|
slug = 'data_processing.data_sources'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(DataSourcesPanel)
|
dashboard.Project.register(DataSourcesPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class JobBinariesPanel(horizon.Panel):
|
class JobBinariesPanel(horizon.Panel):
|
||||||
name = _("Job Binaries")
|
name = _("Job Binaries")
|
||||||
slug = 'data_processing.job_binaries'
|
slug = 'data_processing.job_binaries'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(JobBinariesPanel)
|
dashboard.Project.register(JobBinariesPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class JobExecutionsPanel(horizon.Panel):
|
class JobExecutionsPanel(horizon.Panel):
|
||||||
name = _("Job Executions")
|
name = _("Job Executions")
|
||||||
slug = 'data_processing.job_executions'
|
slug = 'data_processing.job_executions'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(JobExecutionsPanel)
|
dashboard.Project.register(JobExecutionsPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class JobsPanel(horizon.Panel):
|
class JobsPanel(horizon.Panel):
|
||||||
name = _("Jobs")
|
name = _("Jobs")
|
||||||
slug = 'data_processing.jobs'
|
slug = 'data_processing.jobs'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(JobsPanel)
|
dashboard.Project.register(JobsPanel)
|
||||||
|
@ -21,7 +21,7 @@ from openstack_dashboard.dashboards.project import dashboard
|
|||||||
class NodegroupTemplatesPanel(horizon.Panel):
|
class NodegroupTemplatesPanel(horizon.Panel):
|
||||||
name = _("Node Group Templates")
|
name = _("Node Group Templates")
|
||||||
slug = 'data_processing.nodegroup_templates'
|
slug = 'data_processing.nodegroup_templates'
|
||||||
permissions = ('openstack.services.data_processing',)
|
permissions = ('openstack.services.data-processing',)
|
||||||
|
|
||||||
|
|
||||||
dashboard.Project.register(NodegroupTemplatesPanel)
|
dashboard.Project.register(NodegroupTemplatesPanel)
|
||||||
|
@ -157,7 +157,7 @@ class ApiVersionTests(test.TestCase):
|
|||||||
super(ApiVersionTests, self).setUp()
|
super(ApiVersionTests, self).setUp()
|
||||||
self.previous_settings = settings.OPENSTACK_API_VERSIONS
|
self.previous_settings = settings.OPENSTACK_API_VERSIONS
|
||||||
settings.OPENSTACK_API_VERSIONS = {
|
settings.OPENSTACK_API_VERSIONS = {
|
||||||
"data_processing": 1.1,
|
"data-processing": 1.1,
|
||||||
"identity": "2.0",
|
"identity": "2.0",
|
||||||
"volume": 1
|
"volume": 1
|
||||||
}
|
}
|
||||||
|
@ -136,7 +136,7 @@ SERVICE_CATALOG = [
|
|||||||
"adminURL": "http://admin.trove.example.com:8779/v1.0",
|
"adminURL": "http://admin.trove.example.com:8779/v1.0",
|
||||||
"publicURL": "http://public.trove.example.com:8779/v1.0",
|
"publicURL": "http://public.trove.example.com:8779/v1.0",
|
||||||
"internalURL": "http://int.trove.example.com:8779/v1.0"}]},
|
"internalURL": "http://int.trove.example.com:8779/v1.0"}]},
|
||||||
{"type": "data_processing",
|
{"type": "data-processing",
|
||||||
"name": "Sahara",
|
"name": "Sahara",
|
||||||
"endpoints_links": [],
|
"endpoints_links": [],
|
||||||
"endpoints": [
|
"endpoints": [
|
||||||
|
Loading…
Reference in New Issue
Block a user