pulp_2_tests.tests.docker.api_v2.test_tags¶
Location: Pulp 2 Tests → Tests → pulp_2_tests.tests.docker.api_v2.test_tags
Tests that work with tags on docker repositories.
Bases:
pulp_smash.pulp2.utils.BaseAPITestCase
Tests for docker repository tagging feature.
Return all tags in this test’s repo with a name of “latest”.
Starting with Pulp 2.13, docker schema v2 is supported. As a result, a tag or manifest may be included in search results twice, with a differing schema_version. For convenience, if the Pulp system under test is version 2.13 or newer, only schema v1 is targeted. (The choice of schema version 1 is arbitrary.) See Pulp #2099.
Returns: A list of docker tags.
Return all manifests in this test’s repo.
If the Pulp system under test is version 2.13 or newer, only return schema v1 manifests. See
get_latest_tags()
.
Create and sync a docker repository.
Check if a tag can be created.
Check if a tag can be updated to a new manifest.
Do the following:
- Find the tag in this test’s docker repository whose name is “latest.” Make note of the manifest it references.
- Pick some other manifest. Update the repository so that the “latest” tag references the chosen manifest.
- Find the tag in this test’s docker repository whose name is “latest.” Assert it references the chosen manifest.
Check if tagging fail for a manifest from another repo.
Check if tagging fail for a invalid manifest.
Create a docker repository.
Parameters: - cfg – Information about a Pulp host.
- upstream_name – The Docker container upstream name.
- use_v1 – If
True
use Docker V1 feed URL else use Docker V2 feed URL.
Returns: Detailed information about the created repository.
Create or update a docker repository.
Parameters: - cfg – Information about a Pulp host.
- repo – A dict of information about the targed repository.
- params – A dict of information to pass as import_upload body.
Returns: A dict of information about the creation/update report.
Skip tests on Pulp versions lower than 2.12.