Skip to content

Commit

Permalink
Update test on pulp exports reserved_resources_record
Browse files Browse the repository at this point in the history
[noissue]

(cherry picked from commit 6a02503)
  • Loading branch information
gerrod3 authored and patchback[bot] committed Aug 16, 2023
1 parent 1e8aa51 commit 78ad321
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@


@pytest.mark.parallel
@pytest.mark.skip("Makes S3 runner get stuck, skipping for now")
def test_shared_remote_usage(
file_repository_api_client,
file_content_api_client,
Expand Down
6 changes: 5 additions & 1 deletion pulp_file/tests/functional/api/test_pulp_export.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,11 @@ def _pulp_export_factory(exporter, body=None):
exporters_pulp_exports_api_client.create(exporter.pulp_href, body or {}).task
)
assert len(task.created_resources) == 1
shared_resources = [r for r in task.reserved_resources_record if r.startswith("shared:")]
shared_resources = [
r
for r in task.reserved_resources_record
if r.startswith("shared:") and "repositories/file/file" in r
]
assert len(exporter.repositories) == len(shared_resources)

export = exporters_pulp_exports_api_client.read(task.created_resources[0])
Expand Down

0 comments on commit 78ad321

Please sign in to comment.