Skip to content

Commit

Permalink
Disable streamed sync endpoints (#1012) (#1013)
Browse files Browse the repository at this point in the history
Related-Issue: AAH-224
(cherry picked from commit ce51f37)

Co-authored-by: Andrew Crosby <[email protected]>
  • Loading branch information
patchback[bot] and awcrosby authored Oct 7, 2021
1 parent 9ff63b6 commit b726508
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 31 deletions.
1 change: 1 addition & 0 deletions CHANGES/224.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Disable streamed sync endpoints
25 changes: 14 additions & 11 deletions galaxy_ng/app/api/v3/urls.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,20 @@
]

urlpatterns = [
path("", viewsets.RepoMetadataViewSet.as_view({"get": "retrieve"}), name="repo-metadata"),
path(
"collections/all/",
viewsets.UnpaginatedCollectionViewSet.as_view({"get": "list"}),
name="all-collections-list",
),
path(
"collection_versions/all/",
viewsets.UnpaginatedCollectionVersionViewSet.as_view({"get": "list"}),
name="all-collection-versions-list",
),
# The following endpoints are related to issue https://issues.redhat.com/browse/AAH-224
# For now endpoints are temporary deactivated
#
# path("", viewsets.RepoMetadataViewSet.as_view({"get": "retrieve"}), name="repo-metadata"),
# path(
# "collections/all/",
# viewsets.UnpaginatedCollectionViewSet.as_view({"get": "list"}),
# name="all-collections-list",
# ),
# path(
# "collection_versions/all/",
# viewsets.UnpaginatedCollectionVersionViewSet.as_view({"get": "list"}),
# name="all-collection-versions-list",
# ),
path(
"collections/", viewsets.CollectionViewSet.as_view({"get": "list"}), name="collections-list"
),
Expand Down
43 changes: 23 additions & 20 deletions galaxy_ng/tests/unit/api/test_api_v3_collections.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,26 +116,29 @@ def setUp(self):
"galaxy:api:v3:default-content:collection-artifact-upload"
)

self.all_collections_url = reverse(
"galaxy:api:content:v3:all-collections-list",
kwargs={
"path": self.repo.name,
},
)

self.all_versions_url = reverse(
"galaxy:api:content:v3:all-collection-versions-list",
kwargs={
"path": self.repo.name,
},
)

self.metadata_url = reverse(
"galaxy:api:content:v3:repo-metadata",
kwargs={
"path": self.repo.name,
},
)
# The following tests use endpoints related to
# issue https://issues.redhat.com/browse/AAH-224
# For now endpoints are temporary deactivated
# self.all_collections_url = reverse(
# "galaxy:api:content:v3:all-collections-list",
# kwargs={
# "path": self.repo.name,
# },
# )
#
# self.all_versions_url = reverse(
# "galaxy:api:content:v3:all-collection-versions-list",
# kwargs={
# "path": self.repo.name,
# },
# )
#
# self.metadata_url = reverse(
# "galaxy:api:content:v3:repo-metadata",
# kwargs={
# "path": self.repo.name,
# },
# )

# used for href tests
self.pulp_href_fragment = "pulp_ansible/galaxy"
Expand Down

0 comments on commit b726508

Please sign in to comment.