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

Adds a custom lookup value regex for the Manifest viewset. #90

Merged
merged 4 commits into from
Jun 3, 2020

Conversation

dkliban
Copy link
Member

@dkliban dkliban commented Jun 3, 2020

This fixes a bug where manifest tags could not contain periods.

fixes: #6884
https://pulp.plan.io/issues/6884

@pulpbot
Copy link
Member

pulpbot commented Jun 3, 2020

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

@dkliban dkliban force-pushed the fix-tag-regex branch 9 times, most recently from a3e89ff to 634fefa Compare June 3, 2020 10:46
pulp_container/app/urls.py Outdated Show resolved Hide resolved
self.assertTrue(True)
repository = repositories_api.list(name='foo/bar').results[0]
distribution = distributions_api.list(name='foo/bar').results[0]
self.addCleanup(repositories_api.delete, repository.pulp_href)
Copy link
Member

Choose a reason for hiding this comment

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

why do we cleanup those resources? subsequent re-pushes should work if repo/distribution is already present

Copy link
Member Author

Choose a reason for hiding this comment

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

Tests usually clean up anything they create. This test creates a repository and distribution.

@@ -6,8 +6,6 @@

registry = Registry()

app.add_routes([web.get('/pulp/container/', registry.serve_v2)])
app.add_routes([web.get('/pulp/container/_catalog', registry.list_repositories)])
Copy link
Member

Choose a reason for hiding this comment

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

@dkliban i think we can also move tags/list to the urls.py

Copy link
Member Author

Choose a reason for hiding this comment

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

i agree

@dkliban dkliban changed the title Adds custom router for matching registry URLs. Adds a custom lookup value regex for the Manifest viewset. Jun 3, 2020
@dkliban dkliban merged commit 13c8c96 into pulp:push-api Jun 3, 2020
@dkliban dkliban deleted the fix-tag-regex branch June 3, 2020 11:48
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

3 participants