pulp_smash.tests.pulp3.pulpcore.api_v3.test_crud_repos

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.pulpcore.api_v3.test_crud_repos

Tests that CRUD repositories.

class pulp_smash.tests.pulp3.pulpcore.api_v3.test_crud_repos.CRUDRepoTestCase(methodName='runTest')

CRUD repositories.

do_fully_update_attr(attr)

Update a repository attribute using HTTP PUT.

Parameters:attr – The name of the attribute to update. For example, “description.” The attribute to update must be a string.
do_partially_update_attr(attr)

Update a repository attribute using HTTP PATCH.

Parameters:attr – The name of the attribute to update. For example, “description.” The attribute to update must be a string.
setUp()

Create an API client.

classmethod setUpClass()

Create class-wide variables.

test_01_create_repo()

Create repository.

test_02_create_same_name()

Try to create a second repository with an identical name.

See: Pulp Smash #1055.

test_02_read_all_repos()

Ensure name is displayed when listing repositories.

test_02_read_repo()

Read a repository by its href.

test_02_read_repos()

Read the repository by its name.

test_03_fully_update_desc()

Update a repository’s description using HTTP PUT.

test_03_fully_update_name()

Update a repository’s name using HTTP PUT.

test_03_partially_update_desc()

Update a repository’s description using HTTP PATCH.

test_03_partially_update_name()

Update a repository’s name using HTTP PATCH.

test_04_delete_repo()

Delete a repository.