airgun.entities.oscapcontent
¶
Module Contents¶
Classes¶
Navigate to All SCAP Contents screen. |
|
Navigate to upload new SCAP Content page. |
|
Navigate to edit existing SCAP Content page. |
- class airgun.entities.oscapcontent.OSCAPContentEntity(browser)¶
- endpoint_path = /compliance/scap_contents¶
- create(values)¶
Create new SCAP Conent
- Parameters
values – Parameters to be assigned to new SCAP content, manadatory values are Title and Scap file.
- delete(entity_name)¶
Delete corresponding SCAP Content
- Parameters
entity_name – title of the corresponding SCAP Content
- search(title)¶
Search for SCAP Content
- Parameters
title – title of the corresponding SCAP Content
- Returns
result of the SCAP Content search
- read(entity_name, widget_names=None)¶
Reads the content of corresponding SCAP Content
- Parameters
entity_name – specify corresponding SCAP Content
- Returns
dict representing tabs, with nested dicts representing fields
- update(entity_name, values)¶
Updates instance of SCAP Content with new values
- Parameters
entity_name – specify corresponding SCAP Content
values – updates individual parameters of SCAP Content instance
- class airgun.entities.oscapcontent.ShowAllSCAPContents(obj, navigate_obj, logger=None)¶
Navigate to All SCAP Contents 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.oscapcontent.UploadNewSCAPContent(obj, navigate_obj, logger=None)¶
Navigate to upload new SCAP Content page.
- VIEW¶
- prerequisite¶
- am_i_here(*args, **kwargs)¶
Describes if the navigation is already at the requested destination.
By default, airgun relies on view’s
is_displayed
property to determine whether navigation succeeded. If positional argumententity_name
was passed and view hasBreadCrumb
widget, it will also ensure second location in breadcrumb is provided entity name.This method may be overridden on specific entity’s NavigateStep level for more complex logic if needed.
- Returns
whether navigator is at requested destination or not.
- Return type
- 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.oscapcontent.EditSCAPContent(obj, navigate_obj, logger=None)¶
Navigate to edit existing SCAP Content page.
- 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.