airgun.entities.rhai.plan

Module Contents

Classes

PlanEntity

AllPlans

Navigate to Insights Planner screen.

AddPlan

Navigate to Insights Plan builder screen.

PlanDetails

Navigate to Insights plan details screen.

class airgun.entities.rhai.plan.PlanEntity(browser)
endpoint_path = /redhat_access/insights/planner
create(name, rules)

Create a new RHAI Plan entity.

delete(entity_name)

Delete RHAI Plan entity.

update(entity_name, values)

Update RHAI Plan entity.

run_playbook(entity_name, customize=False, customize_values=None)

Run Ansible playbook associated with given plan

Parameters
  • entity_name (str) – Name of plan

  • customize (bool) – Whether remote job should be customized first

  • customize_values (dict) – Values to fill on customize remote job screen

download_playbook(entity_name)

Download Ansible playbook associated with given plan

Parameters

entity_name (str) – Name of plan

export_csv(entity_name)

Download CSV file with details of given plan

Parameters

entity_name (str) – Name of plan

class airgun.entities.rhai.plan.AllPlans(obj, navigate_obj, logger=None)

Navigate to Insights Planner screen.

VIEW
step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.rhai.plan.AddPlan(obj, navigate_obj, logger=None)

Navigate to Insights Plan builder screen.

VIEW
prerequisite
step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.

class airgun.entities.rhai.plan.PlanDetails(obj, navigate_obj, logger=None)

Navigate to Insights plan details screen.

Parameters

entity_name – plan name

VIEW
prerequisite(*args, **kwargs)

Describes a step that must be carried our prior to this one.

This often calls a previous navigate_to, often using one of the helpers, NavigateToSibling which will navigate to a given destination using the same object, or NavigateToAttribute which will navigate to a destination against an object describe by the attribute of the parent object.

This is a default and is generally overridden.

step(*args, **kwargs)

Describes the work to be done to get to the destination after the prequisite is met.

This is a default and is generally overridden.