pulp_smash.tests.pulp3.file.api_v3.test_crud_content_unit

Location: Pulp SmashAPI Documentationpulp_smash.tests.pulp3.file.api_v3.test_crud_content_unit

Tests that perform actions over content unit.

class pulp_smash.tests.pulp3.file.api_v3.test_crud_content_unit.ContentUnitTestCase(methodName='runTest')

CRUD content unit.

This test targets the following issues:

classmethod setUpClass()

Create class-wide variable.

classmethod tearDownClass()

Clean class-wide variable.

test_01_create_content_unit()

Create content unit.

test_02_read_content_unit()

Read a content unit by its href.

test_02_read_content_units()

Read a content unit by its relative_path.

test_03_fully_update()

Attempt to update a content unit using HTTP PUT.

This HTTP method is not supported and a HTTP exception is expected.

test_03_partially_update()

Attempt to update a content unit using HTTP PATCH.

This HTTP method is not supported and a HTTP exception is expected.

class pulp_smash.tests.pulp3.file.api_v3.test_crud_content_unit.DeleteContentUnitRepoVersionTestCase(methodName='runTest')

Test whether content unit used by a repo version can be deleted.

This test targets the following issues:

test_all()

Test whether content unit used by a repo version can be deleted.

Do the following:

  1. Sync content to a repository.
  2. Attempt to delete a content unit present in a repository version. Assert that a HTTP exception was raised.
  3. Assert that number of content units present on the repository does not change after the attempt to delete one content unit.