airgun.entities.contentview

Module Contents

class airgun.entities.contentview.ContentViewEntity

Bases: airgun.entities.base.BaseEntity

endpoint_path = /content_views
create(self, values)

Create a new content view

delete(self, entity_name)

Delete existing content view

copy(self, entity_name, new_name)

Make a copy of existing content view

search(self, value)

Search for content view

read(self, entity_name, widget_names=None)

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

update(self, entity_name, values)

Update existing content view

add_yum_repo(self, entity_name, repo_name)

Add YUM repository to content view

add_docker_repo(self, entity_name, repo_name)

Add docker repository to content view

add_cv(self, entity_name, cv_name)

Add content view to selected composite content view.

add_puppet_module(self, entity_name, module_name, filter_term=None)

Add puppet module to selected view either by its author name or by its version.

Parameters:
  • entity_name (str) – content view name
  • module_name (str) – puppet module name
  • optional filter_term (str) – can be used to filter the module by ‘author’ or by ‘version’.
add_ostree_repo(self, entity_name, repo_name)

Add OSTree repository to content view

remove_ostree_repo(self, entity_name, repo_name)

Remove OSTree repository from content view

publish(self, 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(self, 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(self, entity_name, version_name, widget_names=None)

Read content view version values

search_version(self, entity_name, query)

Search for content view version

search_version_package(self, 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
  • optional repo (str) – repository name to filter by
search_version_module_stream(self, 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
  • optional repo (str) – repository name to filter by
remove_version(self, 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
  • optional lces (list) – list of lifecycle environment names to select on content view version removal screen
class airgun.entities.contentview.ShowAllContentViews

Bases: airgun.navigation.NavigateStep

Navigate to All Content Views screen.

VIEW
step(self, *args, **kwargs)
class airgun.entities.contentview.AddNewContentView

Bases: airgun.navigation.NavigateStep

Navigate to New Content View screen.

VIEW
prerequisite
step(self, *args, **kwargs)
class airgun.entities.contentview.EditContentView

Bases: airgun.navigation.NavigateStep

Navigate to Edit Content View screen.

Args:
entity_name: name of content view
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.DeleteContentView

Bases: airgun.navigation.NavigateStep

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

Args:
entity_name: name of content view
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.CopyContentView

Bases: airgun.navigation.NavigateStep

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

Args:
entity_name: name of content view
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.AddNewPuppetModule

Bases: airgun.navigation.NavigateStep

Navigate to Content View’s “Add new Puppet Module” screen.

Args:
entity_name: name of content view
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.SelectPuppetModuleVersion

Bases: airgun.navigation.NavigateStep

Navigate to new puppet module’s “Select an Available Version” screen.

Args:
entity_name: name of content view module_name: name of puppet module
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.PublishContentViewVersion

Bases: airgun.navigation.NavigateStep

Navigate to Content View Publish screen.

Args:
entity_name: name of content view
VIEW
prerequisite(self, *args, **kwargs)

Open Content View first.

step(self, *args, **kwargs)

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

class airgun.entities.contentview.PromoteContentViewVersion

Bases: airgun.navigation.NavigateStep

Navigate to Content View Promote screen.

Args:
entity_name: name of content view version_name: name of content view version to promote
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.ContentViewVersionDetails

Bases: airgun.navigation.NavigateStep

Navigate to Content View Version details screen.

Args:
entity_name: name of content view version_name: name of content view version
VIEW
prerequisite(self, *args, **kwargs)
am_i_here(self, *args, **kwargs)
step(self, *args, **kwargs)
class airgun.entities.contentview.RemoveContentViewVersion

Bases: airgun.navigation.NavigateStep

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

Args:
entity_name: name of content view version_name: name of content view version to remove
VIEW
prerequisite(self, *args, **kwargs)
step(self, *args, **kwargs)