airgun.entities.repository

Module Contents

Classes

RepositoryEntity

ShowAllRepositories

Navigate to All Product Repositories page by pressing 'Repositories'

AddNewRepository

Navigate to Create Product Repository page

EditRepository

Navigate to Edit Product Repository page

SyncRepository

Trigger repository synchronization and proceed to product task details

RepositoryPackages

Open repository details page and click 'Packages' link from 'Content

class airgun.entities.repository.RepositoryEntity(browser)
property global_default_http_proxy

Look up the default http proxy and return the string that a user would select for HTTP Proxy Policy when creating or updating a repository.

create(product_name, values)

Create new repository for product

search(product_name, value)

Search for specific product repository

read(product_name, entity_name, widget_names=None)

Read values for repository

update(product_name, entity_name, values)

Update product repository values

upload_content(product_name, entity_name, file_name)

Upload a new content to existing repository

delete(product_name, entity_name)

Delete specific product repository

synchronize(product_name, entity_name)

Synchronize repository

remove_all_packages(product_name, entity_name)

Remove all packages from repository

class airgun.entities.repository.ShowAllRepositories(obj, navigate_obj, logger=None)

Navigate to All Product Repositories page by pressing ‘Repositories’ Tab on Product Edit View page

Parameters

product_name – name of product

VIEW
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

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

Navigate to Create Product Repository page

Parameters

product_name – name of product

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

Navigate to Edit Product Repository page

Parameters
  • product_name – name of product

  • entity_name – name of repository

VIEW
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

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

Trigger repository synchronization and proceed to product task details page

Parameters
  • product_name – name of product

  • entity_name – name of repository

VIEW
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

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

Open repository details page and click ‘Packages’ link from ‘Content Counts’ table to proceed to Packages page.

Parameters
  • product_name – name of product

  • entity_name – name of repository

VIEW
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

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.