Skip to content

Commit

Permalink
Fix remediate method of CloudInsightsEntity (#940)
Browse files Browse the repository at this point in the history
  • Loading branch information
jameerpathan111 committed Aug 28, 2023
1 parent 5b891b4 commit 0669bf1
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions airgun/entities/cloud_insights.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -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."""
Expand All @@ -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):
Expand All @@ -79,10 +71,3 @@ class ShowCloudInsightsView(NavigateStep):
@retry_navigation
def step(self, *args, **kwargs):
self.view.menu.select('Configure', 'Insights')


@navigator.register(CloudInsightsEntity, 'Run')
class RunJob(NavigateStep):
"""Navigate to Job Invocation screen."""

VIEW = JobInvocationCreateView

0 comments on commit 0669bf1

Please sign in to comment.