airgun.entities.oscappolicy
¶
Module Contents¶
Classes¶
Navigate to All SCAP Policies screen. |
|
Navigate to upload new SCAP Policies page. |
|
Navigate to edit existing SCAP Policy page. |
|
To get data from SCAPPolicyDetail view |
- class airgun.entities.oscappolicy.OSCAPPolicyEntity(browser)¶
- endpoint_path = /compliance/policies¶
- create(values)¶
Creates new OSCAP Policy
- Parameters
values – Parameters to be assigned to new SCAP policy, mandatory values are Name, Scap Content and Period, with chosen date when policy is going to repeat
- delete(entity_name)¶
Delete corresponding SCAP Policy
- Parameters
entity_name – name of the corresponding SCAP Policy
- search(entity_name)¶
Search for SCAP Policy
- Parameters
entity_name – name of the corresponding SCAP Policy
- Returns
result of the SCAP Policy search
- details(entity_name, widget_names=None)¶
- Read the content from corresponding SCAP Policy dashboard,
clicking on the Name of SCAP Policy shows the dashboard
- Parameters
entity_name –
- Returns
dictionary with values from SCAP Policy Details View
- read(entity_name, widget_names=None)¶
Reads the values of corresponding SCAP Policy - edit menu
- Parameters
entity_name – specifies corresponding SCAP Policy
- Returns
dict representing tabs, with nested dicts representing fields
- update(entity_name, values)¶
Updates instance of SCAP Policy with new values
- Parameters
entity_name – specifies corresponding SCAP Policy
values – updates individual parameters of corresponding SCAP Policy
- class airgun.entities.oscappolicy.ShowAllSCAPPolicies(obj, navigate_obj, logger=None)¶
Navigate to All SCAP Policies 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.oscappolicy.NewSCAPPolicy(obj, navigate_obj, logger=None)¶
Navigate to upload new SCAP Policies page.
- 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.oscappolicy.EditSCAPPolicy(obj, navigate_obj, logger=None)¶
Navigate to edit existing SCAP Policy page.
Args: entity_name: name of SCAP policy
- 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.
- class airgun.entities.oscappolicy.DetailsSCAPPolicy(obj, navigate_obj, logger=None)¶
To get data from SCAPPolicyDetail view
Args: entity_name: name of SCAP policy
- 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.