From bdc0bc3bc62ca1a505535c0dba43758a4a6f459f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maty=C3=A1=C5=A1=20Strelec?= Date: Mon, 7 Aug 2023 16:02:10 +0200 Subject: [PATCH] Change entity routes to accomodate PF4 navigation (#919) --- airgun/entities/activationkey.py | 2 +- airgun/entities/ansible_role.py | 2 +- airgun/entities/ansible_variable.py | 2 +- airgun/entities/architecture.py | 2 +- airgun/entities/cloud_insights.py | 2 +- airgun/entities/cloud_inventory.py | 2 +- airgun/entities/config_report.py | 2 +- airgun/entities/containerimagetag.py | 2 +- airgun/entities/contentview_new.py | 2 +- airgun/entities/errata.py | 2 +- airgun/entities/hardware_model.py | 2 +- airgun/entities/job_template.py | 2 +- airgun/entities/lifecycleenvironment.py | 2 +- airgun/entities/media.py | 2 +- airgun/entities/modulestream.py | 2 +- airgun/entities/os.py | 2 +- airgun/entities/oscapcontent.py | 2 +- airgun/entities/oscappolicy.py | 2 +- airgun/entities/oscaptailoringfile.py | 2 +- airgun/entities/package.py | 2 +- airgun/entities/partitiontable.py | 2 +- airgun/entities/provisioning_template.py | 2 +- airgun/entities/report_template.py | 2 +- airgun/entities/sync_templates.py | 2 +- airgun/entities/task.py | 2 +- airgun/entities/webhook.py | 2 +- 26 files changed, 26 insertions(+), 26 deletions(-) diff --git a/airgun/entities/activationkey.py b/airgun/entities/activationkey.py index e2bd8369b..3f4e88bdf 100644 --- a/airgun/entities/activationkey.py +++ b/airgun/entities/activationkey.py @@ -94,7 +94,7 @@ class ShowAllActivationKeys(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Activation Keys') + self.view.menu.select('Content', 'Lifecycle', 'Activation Keys') @navigator.register(ActivationKeyEntity, 'New') diff --git a/airgun/entities/ansible_role.py b/airgun/entities/ansible_role.py index 49e7a2313..1c2e39b4d 100644 --- a/airgun/entities/ansible_role.py +++ b/airgun/entities/ansible_role.py @@ -61,7 +61,7 @@ class ShowAllRoles(NavigateStep): VIEW = AnsibleRolesView def step(self, *args, **kwargs): - self.view.menu.select('Configure', 'Roles') + self.view.menu.select('Configure', 'Ansible', 'Roles') @navigator.register(AnsibleRolesEntity, 'Import') diff --git a/airgun/entities/ansible_variable.py b/airgun/entities/ansible_variable.py index a508686b6..9e4f6db4d 100644 --- a/airgun/entities/ansible_variable.py +++ b/airgun/entities/ansible_variable.py @@ -59,7 +59,7 @@ class ShowAllVariables(NavigateStep): VIEW = AnsibleVariablesView def step(self, *args, **kwargs): - self.view.menu.select('Configure', 'Variables') + self.view.menu.select('Configure', 'Ansible', 'Variables') @navigator.register(AnsibleVariablesEntity, 'New') diff --git a/airgun/entities/architecture.py b/airgun/entities/architecture.py index dd2f91da0..80c01533b 100644 --- a/airgun/entities/architecture.py +++ b/airgun/entities/architecture.py @@ -55,7 +55,7 @@ class ShowAllArchitectures(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Architectures') + self.view.menu.select('Hosts', 'Provisioning Setup', 'Architectures') @navigator.register(ArchitectureEntity, 'New') diff --git a/airgun/entities/cloud_insights.py b/airgun/entities/cloud_insights.py index d997da3be..7b4e11468 100644 --- a/airgun/entities/cloud_insights.py +++ b/airgun/entities/cloud_insights.py @@ -78,7 +78,7 @@ class ShowCloudInsightsView(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Configure', 'Insights') + self.view.menu.select('Configure', 'RH Cloud', 'Insights') @navigator.register(CloudInsightsEntity, 'Run') diff --git a/airgun/entities/cloud_inventory.py b/airgun/entities/cloud_inventory.py index ed21eb241..ceffc771c 100644 --- a/airgun/entities/cloud_inventory.py +++ b/airgun/entities/cloud_inventory.py @@ -57,4 +57,4 @@ class ShowCloudInventoryListView(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Configure', 'Inventory Upload') + self.view.menu.select('Configure', 'RH Cloud', 'Inventory Upload') diff --git a/airgun/entities/config_report.py b/airgun/entities/config_report.py index 8cbcc191b..b2349fd70 100644 --- a/airgun/entities/config_report.py +++ b/airgun/entities/config_report.py @@ -50,7 +50,7 @@ class ShowAllConfigReports(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Monitor', 'Config Management') + self.view.menu.select('Monitor', 'Reports', 'Config Management') @navigator.register(ConfigReportEntity, 'Report Details') diff --git a/airgun/entities/containerimagetag.py b/airgun/entities/containerimagetag.py index 877d51883..d801e6cfb 100644 --- a/airgun/entities/containerimagetag.py +++ b/airgun/entities/containerimagetag.py @@ -36,7 +36,7 @@ class ShowAllContainerImageTags(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Container Image Tags') + self.view.menu.select('Content', 'Content Types', 'Container Image Tags') @navigator.register(ContainerImageTagEntity, 'Details') diff --git a/airgun/entities/contentview_new.py b/airgun/entities/contentview_new.py index 138ff313f..287156762 100644 --- a/airgun/entities/contentview_new.py +++ b/airgun/entities/contentview_new.py @@ -31,7 +31,7 @@ class ShowAllContentViewsScreen(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Content Views') + self.view.menu.select('Content', 'Lifecycle', 'Content Views') @navigator.register(NewContentViewEntity, 'New') diff --git a/airgun/entities/errata.py b/airgun/entities/errata.py index 211df9668..099753406 100644 --- a/airgun/entities/errata.py +++ b/airgun/entities/errata.py @@ -108,7 +108,7 @@ class ShowAllErratum(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Errata') + self.view.menu.select('Content', 'Content Types', 'Errata') @navigator.register(ErrataEntity, 'Details') diff --git a/airgun/entities/hardware_model.py b/airgun/entities/hardware_model.py index 1c152ee99..c41984182 100644 --- a/airgun/entities/hardware_model.py +++ b/airgun/entities/hardware_model.py @@ -64,7 +64,7 @@ class ShowAllHardwareModels(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Hardware Models') + self.view.menu.select('Hosts', 'Provisioning Setup', 'Hardware Models') @navigator.register(HardwareModelEntity, 'New') diff --git a/airgun/entities/job_template.py b/airgun/entities/job_template.py index af8b1b112..00b6902fb 100644 --- a/airgun/entities/job_template.py +++ b/airgun/entities/job_template.py @@ -75,7 +75,7 @@ class ShowAllTemplates(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Job templates') + self.view.menu.select('Hosts', 'Templates', 'Job templates') @navigator.register(JobTemplateEntity, 'New') diff --git a/airgun/entities/lifecycleenvironment.py b/airgun/entities/lifecycleenvironment.py index fe6c4c9e8..6481db3a3 100644 --- a/airgun/entities/lifecycleenvironment.py +++ b/airgun/entities/lifecycleenvironment.py @@ -87,7 +87,7 @@ class ShowAllLCE(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Lifecycle Environments') + self.view.menu.select('Content', 'Lifecycle', 'Lifecycle Environments') @navigator.register(LCEEntity, 'New Path') diff --git a/airgun/entities/media.py b/airgun/entities/media.py index 174d4926d..ac9066268 100644 --- a/airgun/entities/media.py +++ b/airgun/entities/media.py @@ -53,7 +53,7 @@ class ShowAllMedium(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Installation Media') + self.view.menu.select('Hosts', 'Provisioning Setup', 'Installation Media') @navigator.register(MediaEntity, 'New') diff --git a/airgun/entities/modulestream.py b/airgun/entities/modulestream.py index e386547b8..37685b2be 100644 --- a/airgun/entities/modulestream.py +++ b/airgun/entities/modulestream.py @@ -40,7 +40,7 @@ class ShowAllModuleStreams(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Module Streams') + self.view.menu.select('Content', 'Content Types', 'Module Streams') @navigator.register(ModuleStreamEntity, 'Details') diff --git a/airgun/entities/os.py b/airgun/entities/os.py index e765629f1..2ec726631 100644 --- a/airgun/entities/os.py +++ b/airgun/entities/os.py @@ -56,7 +56,7 @@ class ShowAllOperatingSystems(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Operating Systems') + self.view.menu.select('Hosts', 'Provisioning Setup', 'Operating Systems') @navigator.register(OperatingSystemEntity, 'New') diff --git a/airgun/entities/oscapcontent.py b/airgun/entities/oscapcontent.py index f0e090e7a..1bc233912 100644 --- a/airgun/entities/oscapcontent.py +++ b/airgun/entities/oscapcontent.py @@ -77,7 +77,7 @@ class ShowAllSCAPContents(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'SCAP contents') + self.view.menu.select('Hosts', 'Compliance', 'SCAP contents') @navigator.register(OSCAPContentEntity, 'New') diff --git a/airgun/entities/oscappolicy.py b/airgun/entities/oscappolicy.py index 738899562..c4fb4ab68 100644 --- a/airgun/entities/oscappolicy.py +++ b/airgun/entities/oscappolicy.py @@ -88,7 +88,7 @@ class ShowAllSCAPPolicies(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Policies') + self.view.menu.select('Hosts', 'Compliance', 'Policies') @navigator.register(OSCAPPolicyEntity, 'New') diff --git a/airgun/entities/oscaptailoringfile.py b/airgun/entities/oscaptailoringfile.py index 38f3279b4..2d43ec468 100644 --- a/airgun/entities/oscaptailoringfile.py +++ b/airgun/entities/oscaptailoringfile.py @@ -76,7 +76,7 @@ class ShowAllSCAPTailoringFiles(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Tailoring Files') + self.view.menu.select('Hosts', 'Compliance', 'Tailoring Files') @navigator.register(OSCAPTailoringFileEntity, 'New') diff --git a/airgun/entities/package.py b/airgun/entities/package.py index 3853ac10d..b9d234a8a 100644 --- a/airgun/entities/package.py +++ b/airgun/entities/package.py @@ -43,7 +43,7 @@ class ShowAllPackages(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Content', 'Packages') + self.view.menu.select('Content', 'Content Types', 'Packages') @navigator.register(PackageEntity, 'Details') diff --git a/airgun/entities/partitiontable.py b/airgun/entities/partitiontable.py index b37b2a53b..8bc09e497 100644 --- a/airgun/entities/partitiontable.py +++ b/airgun/entities/partitiontable.py @@ -84,7 +84,7 @@ class ShowAllPartitionTables(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Partition Tables') + self.view.menu.select('Hosts', 'Templates', 'Partition Tables') @navigator.register(PartitionTableEntity, 'New') diff --git a/airgun/entities/provisioning_template.py b/airgun/entities/provisioning_template.py index 619ef32e1..cfcc4ec9a 100644 --- a/airgun/entities/provisioning_template.py +++ b/airgun/entities/provisioning_template.py @@ -89,7 +89,7 @@ class ShowAllProvisioningTemplates(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Provisioning Templates') + self.view.menu.select('Hosts', 'Templates', 'Provisioning Templates') @navigator.register(ProvisioningTemplateEntity, 'New') diff --git a/airgun/entities/report_template.py b/airgun/entities/report_template.py index 529cf1734..c906da1b6 100644 --- a/airgun/entities/report_template.py +++ b/airgun/entities/report_template.py @@ -125,7 +125,7 @@ class ShowAllReportTemplates(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Monitor', 'Report Templates') + self.view.menu.select('Monitor', 'Reports', 'Report Templates') @navigator.register(ReportTemplateEntity, 'New') diff --git a/airgun/entities/sync_templates.py b/airgun/entities/sync_templates.py index eaf2373f5..ffb4e664f 100644 --- a/airgun/entities/sync_templates.py +++ b/airgun/entities/sync_templates.py @@ -39,7 +39,7 @@ class SyncMainPageNavigation(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Hosts', 'Sync Templates') + self.view.menu.select('Hosts', 'Templates', 'Sync Templates') @navigator.register(SyncTemplatesEntity, 'Sync') diff --git a/airgun/entities/task.py b/airgun/entities/task.py index bf0c84786..86d6f7d4e 100644 --- a/airgun/entities/task.py +++ b/airgun/entities/task.py @@ -54,7 +54,7 @@ class ShowAllTasks(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Monitor', 'Tasks') + self.view.menu.select('Monitor', 'Satellite Tasks', 'Tasks') @navigator.register(TaskEntity, 'Details') diff --git a/airgun/entities/webhook.py b/airgun/entities/webhook.py index 33280d2cc..cbcb96aac 100644 --- a/airgun/entities/webhook.py +++ b/airgun/entities/webhook.py @@ -77,7 +77,7 @@ class ShowAllWebhooks(NavigateStep): @retry_navigation def step(self, *args, **kwargs): - self.view.menu.select('Administer', 'Webhooks') + self.view.menu.select('Administer', 'Webhook', 'Webhooks') @navigator.register(WebhookEntity, 'New')