Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[cherry-pick-6.14.z] Fix remediate method of CloudInsightsEntity (#940) #944

Merged
merged 1 commit into from
Aug 28, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading