Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[6.15.z] Bring back changes reverted by #11544 #13521

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
69 changes: 1 addition & 68 deletions tests/foreman/cli/test_satellitesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,23 +101,6 @@ def function_import_org_with_manifest(target_sat, function_import_org):
return function_import_org


@pytest.fixture(scope='class')
def docker_repo(module_target_sat, module_org):
product = module_target_sat.cli_factory.make_product({'organization-id': module_org.id})
repo = module_target_sat.cli_factory.make_repository(
{
'organization-id': module_org.id,
'product-id': product['id'],
'content-type': REPO_TYPE['docker'],
'download-policy': 'immediate',
'url': 'https://quay.io',
'docker-upstream-name': 'quay/busybox',
}
)
module_target_sat.cli.Repository.synchronize({'id': repo['id']})
return repo


@pytest.fixture(scope='module')
def module_synced_custom_repo(module_target_sat, module_org, module_product):
repo = module_target_sat.cli_factory.make_repository(
Expand Down Expand Up @@ -1224,6 +1207,7 @@ def test_postive_export_cv_with_mixed_content_repos(
:BZ: 1726457

:customerscenario: true

"""
content_view = target_sat.cli_factory.make_content_view(
{'organization-id': function_org.id}
Expand Down Expand Up @@ -1253,57 +1237,6 @@ def test_postive_export_cv_with_mixed_content_repos(
exported_packages = target_sat.cli.Package.list(
{'content-view-version-id': exporting_cvv['id']}
)
product = target_sat.cli_factory.make_product(
{
'organization-id': function_org.id,
'name': gen_string('alpha'),
}
)
nonyum_repo = target_sat.cli_factory.make_repository(
{
'content-type': 'docker',
'docker-upstream-name': 'quay/busybox',
'organization-id': function_org.id,
'product-id': product['id'],
'url': CONTAINER_REGISTRY_HUB,
},
)
target_sat.cli.Repository.synchronize({'id': nonyum_repo['id']})
yum_repo = target_sat.cli_factory.make_repository(
{
'name': gen_string('alpha'),
'download-policy': 'immediate',
'mirroring-policy': 'mirror_content_only',
'product-id': product['id'],
}
)
target_sat.cli.Repository.synchronize({'id': yum_repo['id']})
content_view = target_sat.cli_factory.make_content_view(
{'organization-id': function_org.id}
)
# Add docker and yum repo
target_sat.cli.ContentView.add_repository(
{
'id': content_view['id'],
'organization-id': function_org.id,
'repository-id': nonyum_repo['id'],
}
)
target_sat.cli.ContentView.add_repository(
{
'id': content_view['id'],
'organization-id': function_org.id,
'repository-id': yum_repo['id'],
}
)
target_sat.cli.ContentView.publish({'id': content_view['id']})
exporting_cv_id = target_sat.cli.ContentView.info({'id': content_view['id']})
assert len(exporting_cv_id['versions']) == 1
exporting_cvv_id = exporting_cv_id['versions'][0]
# check packages
exported_packages = target_sat.cli.Package.list(
{'content-view-version-id': exporting_cvv_id['id']}
)
assert len(exported_packages)
# Verify export directory is empty
assert target_sat.validate_pulp_filepath(function_org, PULP_EXPORT_DIR) == ''
Expand Down