@@ -87,3 +87,32 @@ def test_full_pulp_to_pulp_sync(
8787 repo3 = python_repo_with_sync (remote3 )
8888 summary2 = python_content_summary (repository_version = repo3 .latest_version_href )
8989 assert summary2 .present ["python.python" ]["count" ] == PYTHON_MD_PACKAGE_COUNT
90+
91+
92+ @pytest .mark .parallel
93+ def test_pulp2pulp_sync_with_oddities (
94+ python_repo_with_sync ,
95+ python_remote_factory ,
96+ python_publication_factory ,
97+ python_distribution_factory ,
98+ python_content_summary ,
99+ ):
100+ """Test that Pulp can handle syncing packages with wierd names."""
101+ remote = python_remote_factory (includes = ["oslo.utils" ], url = "https://pypi.org" )
102+ repo = python_repo_with_sync (remote )
103+ distro = python_distribution_factory (repository = repo )
104+ summary = python_content_summary (repository_version = repo .latest_version_href )
105+ # Test pulp 2 pulp full sync w/ live pypi apis
106+ remote2 = python_remote_factory (includes = [], url = distro .base_url )
107+ repo2 = python_repo_with_sync (remote2 )
108+ summary2 = python_content_summary (repository_version = repo2 .latest_version_href )
109+ assert summary2 .present ["python.python" ]["count" ] > 0
110+ assert summary .present ["python.python" ]["count" ] == summary2 .present ["python.python" ]["count" ]
111+ # Test w/ publication
112+ pub = python_publication_factory (repository = repo )
113+ distro2 = python_distribution_factory (publication = pub )
114+ remote3 = python_remote_factory (includes = [], url = distro2 .base_url )
115+ repo3 = python_repo_with_sync (remote3 )
116+ summary3 = python_content_summary (repository_version = repo3 .latest_version_href )
117+ assert summary3 .present ["python.python" ]["count" ] > 0
118+ assert summary .present ["python.python" ]["count" ] == summary3 .present ["python.python" ]["count" ]
0 commit comments