Skip to content

Commit

Permalink
Pull content after importing it in tests
Browse files Browse the repository at this point in the history
[noissue]
  • Loading branch information
lubosmj committed Jun 6, 2023
1 parent 0c714b8 commit a424671
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions pulp_container/tests/functional/api/test_pulpimportexport.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@


def test_import_export_standard(
local_registry,
container_distribution_api,
container_remote_api,
container_repository_api,
container_repository_version_api,
Expand Down Expand Up @@ -86,6 +88,15 @@ def test_import_export_standard(
assert manifest.blobs != []
assert manifest.config_blob is not None

distribution_path = str(uuid.uuid4())
distribution = {
"name": distribution_path,
"base_path": distribution_path,
"repository": import_repository.pulp_href,
}
gen_object_with_cleanup(container_distribution_api, distribution)
local_registry.pull(f"{distribution_path}@{manifest.digest}")


def test_import_export_create_repositories(
registry_client,
Expand Down Expand Up @@ -158,5 +169,13 @@ def test_import_export_create_repositories(
assert manifest.blobs != []
assert manifest.config_blob is not None

distribution = {
"name": distribution_path,
"base_path": distribution_path,
"repository": repositories[0].pulp_href,
}
gen_object_with_cleanup(container_distribution_api, distribution)
local_registry.pull(f"{distribution_path}:manifest_a")

monitor_task(container_repository_api.delete(repositories[0].pulp_href).task)
delete_orphans()

0 comments on commit a424671

Please sign in to comment.