From b50a94b6dd7e2e27b9f735864aa287f411711a82 Mon Sep 17 00:00:00 2001 From: Jameer Pathan Date: Fri, 25 Aug 2023 11:48:42 +0200 Subject: [PATCH] Fix remediate method of CloudInsightsEntity --- airgun/entities/cloud_insights.py | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/airgun/entities/cloud_insights.py b/airgun/entities/cloud_insights.py index 7b4e11468..e27e0dfdd 100644 --- a/airgun/entities/cloud_insights.py +++ b/airgun/entities/cloud_insights.py @@ -4,7 +4,6 @@ from airgun.utils import retry_navigation from airgun.views.cloud_insights import CloudInsightsView from airgun.views.cloud_insights import CloudTokenView -from airgun.views.job_invocation import JobInvocationCreateView class CloudInsightsEntity(BaseEntity): @@ -26,7 +25,6 @@ def remediate(self, entity_name): view.select_all_hits.click() view.remediate.click() view.remediation_window.remediate.click() - self.run_job() def sync_hits(self): """Sync RH Cloud - Insights recommendations.""" @@ -52,12 +50,6 @@ def update(self, values): view = self.navigate_to(self, 'All') view.fill(values) - def run_job(self): - """Run remediation job""" - view = self.navigate_to(self, 'Run') - view.search_query.wait_displayed() - view.submit.click() - @navigator.register(CloudInsightsEntity, 'Token') class SaveCloudTokenView(NavigateStep): @@ -79,10 +71,3 @@ class ShowCloudInsightsView(NavigateStep): @retry_navigation def step(self, *args, **kwargs): self.view.menu.select('Configure', 'RH Cloud', 'Insights') - - -@navigator.register(CloudInsightsEntity, 'Run') -class RunJob(NavigateStep): - """Navigate to Job Invocation screen.""" - - VIEW = JobInvocationCreateView