airgun.entities.redhat_repository

Module Contents

class airgun.entities.redhat_repository.RedHatRepositoryEntity

Bases: airgun.entities.base.BaseEntity

endpoint_path = /redhat_repositories
search(self, value, category='Available', types=None)

Search RH repositories.

Parameters:
  • value (str) – The value to search by.
  • category (str) – The repository category to search, options: Available, Enabled, Both
  • types (list[str]) – (optional) The repository content types to refine the search. eg: RPM, OSTree …
read(self, entity_name=None, category='Available', recommended_repo=None)

Read RH Repositories values.

Parameters:
  • entity_name – The repository name
  • category – The repository category to search, options: Available, Enabled
  • recommended_repo – on/off RH recommended repositories
enable(self, entity_name, arch, version=None)

Enable a redhat repository.

Parameters:
  • entity_name (str) – The RH repository set name.
  • arch (str) – The system target repository architecture.
  • version (str) – (optional) The OS release version if mandatory for this repository.
disable(self, entity_name, orphaned=False)

Disable a redhat repository.

Parameters:
  • entity_name (str) – The RH repository name
  • orphaned (bool) – Whether the repository is Orphaned
class airgun.entities.redhat_repository.ShowAllRepositories

Bases: airgun.navigation.NavigateStep

Navigate to the page that contains Red Hat products repositories

VIEW
step(self, *args, **kwargs)