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

Fix syncs from file:// repos and add a test #2034

Merged
merged 1 commit into from
Jul 6, 2021
Merged

Conversation

dralley
Copy link
Contributor

@dralley dralley commented Jul 6, 2021

@pulpbot
Copy link
Member

pulpbot commented Jul 6, 2021

Attached issue: https://pulp.plan.io/issues/9021

Attached issue: https://pulp.plan.io/issues/7350

Copy link
Contributor

@ggainey ggainey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a "Required PR:" for pulp/pulpcore#1463 as well?

pulp_rpm/app/tasks/synchronizing.py Show resolved Hide resolved
@@ -128,6 +128,29 @@ def test_sync(self):
self.assertEqual(latest_version_href, repo.latest_version_href)
self.assertDictEqual(get_content_summary(repo.to_dict()), RPM_FIXTURE_SUMMARY)

def test_sync_local(self):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

pulp_rpm/tests/functional/api/test_sync.py Show resolved Hide resolved
@ggainey
Copy link
Contributor

ggainey commented Jul 6, 2021

Can we add a "Required PR:" for pulp/pulpcore#1463 as well?

nm, that PR has been merged so we should be good.


remote = self.remote_api.create(gen_rpm_remote(url="file:///tmp/rpm-unsigned/"))

self.do_test(remote=remote, mirror=True)
Copy link
Contributor

@ggainey ggainey Jul 6, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing cleanup - see

repo, remote = self.do_test()
self.addCleanup(self.repo_api.delete, repo.pulp_href)
self.addCleanup(self.remote_api.delete, remote.pulp_href)
for example

@dralley dralley merged commit 94fde33 into pulp:master Jul 6, 2021
@dralley dralley deleted the fs-sync branch July 6, 2021 21:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants