airgun.entities.contentview

Module Contents

Classes

ContentViewEntity

ShowAllContentViews

Navigate to All Content Views screen.

AddNewContentView

Navigate to New Content View screen.

EditContentView

Navigate to Edit Content View screen.

DeleteContentView

Navigate to Delete Content View screen by selecting appropriate action

CopyContentView

Navigate to Copy Content View screen by selecting appropriate action in

PublishContentViewVersion

Navigate to Content View Publish screen.

PromoteContentViewVersion

Navigate to Content View Promote screen.

ContentViewVersionDetails

Navigate to Content View Version details screen.

RemoveContentViewVersion

Navigate to Content View Version removal screen by selecting

class airgun.entities.contentview.ContentViewEntity(browser)
endpoint_path = /legacy/content_views
create(values)

Create a new content view

delete(entity_name)

Delete existing content view

copy(entity_name, new_name)

Make a copy of existing content view

search(value)

Search for content view

read(entity_name, widget_names=None)

Read content view values, optionally only the widgets in widget_names will be read.

update(entity_name, values)

Update existing content view

add_yum_repo(entity_name, repo_name)

Add YUM repository to content view

add_docker_repo(entity_name, repo_name)

Add docker repository to content view

add_cv(entity_name, cv_name)

Add content view to selected composite content view.

add_ostree_repo(entity_name, repo_name)

Add OSTree repository to content view

remove_ostree_repo(entity_name, repo_name)

Remove OSTree repository from content view

publish(entity_name, values=None)

Publishes to create new version of CV and promotes the contents to ‘Library’ environment.

Returns

dict with new content view version table row; contains keys like ‘Version’, ‘Status’, ‘Environments’ etc.

promote(entity_name, version_name, lce_name)

Promotes the selected version of content view to given environment.

Returns

dict with new content view version table row; contains keys like ‘Version’, ‘Status’, ‘Environments’ etc.

read_version(entity_name, version_name, widget_names=None)

Read content view version values

search_version(entity_name, query)

Search for content view version

search_version_package(entity_name, version_name, query, repo=None)

Search for a package inside content view version

Parameters
  • entity_name (str) – content view name

  • version_name (str) – content view version name

  • query (str) – search query for content view version’s package

  • repo (str optional) – repository name to filter by

search_version_module_stream(entity_name, version_name, query, repo=None)

Search for a module stream inside content view version

Parameters
  • entity_name (str) – content view name

  • version_name (str) – content view version name

  • query (str) – search query for content view version’s module stream

  • repo (str optional) – repository name to filter by

remove_version(entity_name, version_name, completely=True, lces=None)

Remove content view version.

Parameters
  • entity_name (str) – content view name

  • version_name (str) – content view version name

  • completely (bool) – complete content view version removal if True or just disassociating from all lifecycle environments otherwise

  • lces (list optional) – list of lifecycle environment names to select on content view version removal screen

class airgun.entities.contentview.ShowAllContentViews(obj, navigate_obj, logger=None)

Navigate to All Content Views 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.contentview.AddNewContentView(obj, navigate_obj, logger=None)

Navigate to New Content View 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.contentview.EditContentView(obj, navigate_obj, logger=None)

Navigate to Edit Content View screen.

Parameters

entity_name – name of content view

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.contentview.DeleteContentView(obj, navigate_obj, logger=None)

Navigate to Delete Content View screen by selecting appropriate action on Edit Content View screen.

Parameters

entity_name – name of content view

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.contentview.CopyContentView(obj, navigate_obj, logger=None)

Navigate to Copy Content View screen by selecting appropriate action in Content View Details screen.

Parameters

entity_name – name of content view

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.contentview.PublishContentViewVersion(obj, navigate_obj, logger=None)

Navigate to Content View Publish screen.

Parameters

entity_name – name of content view

VIEW
prerequisite(*args, **kwargs)

Open Content View first.

step(*args, **kwargs)

Dismiss alerts if present to uncover ‘Publish’ button, then click it.

class airgun.entities.contentview.PromoteContentViewVersion(obj, navigate_obj, logger=None)

Navigate to Content View Promote screen.

Parameters
  • entity_name – name of content view

  • version_name – name of content view version to promote

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.contentview.ContentViewVersionDetails(obj, navigate_obj, logger=None)

Navigate to Content View Version details screen.

Parameters
  • entity_name – name of content view

  • version_name – name of content view version

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.

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 argument entity_name was passed and view has BreadCrumb 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

bool

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.contentview.RemoveContentViewVersion(obj, navigate_obj, logger=None)

Navigate to Content View Version removal screen by selecting corresponding action in content view versions table.

Parameters
  • entity_name – name of content view

  • version_name – name of content view version to remove

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.