pulp_smash.tests.pulp3.pulpcore.api_v3.test_crud_distributions

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

Tests that CRUD distributions.

class pulp_smash.tests.pulp3.pulpcore.api_v3.test_crud_distributions.CRUDDistributionsTestCase(methodName='runTest')

CRUD distributions.

classmethod setUpClass()

Create class wide-variables.

test_01_create_distribution()

Create a distribution.

test_02_create_same_name()

Try to create a second distribution with an identical name.

See: Pulp Smash #1055.

test_02_read_distribution()

Read a distribution by its _href.

test_02_read_distributions()

Read a distribution using query parameters.

test_03_partially_update()

Update a distribution using HTTP PATCH.

test_04_fully_update()

Update a distribution using HTTP PUT.

test_05_delete()

Delete a distribution.

class pulp_smash.tests.pulp3.pulpcore.api_v3.test_crud_distributions.DistributionBasePathTestCase(methodName='runTest')

Test possible values for base_path on a distribution.

This test targets the following issues:

classmethod setUpClass()

Create class-wide variables.

classmethod tearDownClass()

Clean up resources.

test_begin_slash()

Test that slash cannot be in the begin of base_path.

test_end_slash()

Test that slash cannot be in the end of base_path.

test_overlapping_base_path()

Test that distributions can’t have overlapping base_path.

See: Pulp #2987.

test_spaces()

Test that spaces can not be part of base_path.

test_unique_base_path()

Test that base_path can not be duplicated.

try_create_distribution(**kwargs)

Unsuccessfully create a distribution.

Merge the given kwargs into the body of the request.

try_update_distribution(**kwargs)

Unsuccessfully update a distribution with HTTP PATCH.

Use the given kwargs as the body of the request.