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

add pulpdomain middleware to resolve tracebacks on re-upload. #2014

Merged
merged 4 commits into from
Dec 15, 2023
Merged
Show file tree
Hide file tree
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
1 change: 1 addition & 0 deletions galaxy_ng/app/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
'django.middleware.clickjacking.XFrameOptionsMiddleware',
'django.middleware.locale.LocaleMiddleware',
'django_guid.middleware.guid_middleware',
'pulpcore.middleware.DomainMiddleware',
# END: Pulp standard middleware
'django_prometheus.middleware.PrometheusAfterMiddleware',
]
Expand Down
12 changes: 8 additions & 4 deletions galaxy_ng/tests/integration/api/test_namespace_management.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,8 @@ def test_namespace_edit_logo(galaxy_client):

payload = {
"name": name,
"avatar_url": "http://placekitten.com/400/400"
# "avatar_url": "http://placekitten.com/400/400"
"avatar_url": "https://avatars.githubusercontent.com/u/1869705?v=4"
}
gc.put(f"_ui/v1/my-namespaces/{name}/", body=payload)
wait_for_all_tasks_gk(gc)
Expand All @@ -169,7 +170,8 @@ def test_namespace_edit_logo(galaxy_client):

payload = {
"name": name,
"avatar_url": "http://placekitten.com/123/456"
# "avatar_url": "http://placekitten.com/123/456"
"avatar_url": "https://avatars.githubusercontent.com/u/481677?v=4"
}
gc.put(f"_ui/v1/my-namespaces/{name}/", body=payload)
wait_for_all_tasks_gk(gc)
Expand Down Expand Up @@ -214,7 +216,8 @@ def _test_namespace_logo_propagates_to_collections(galaxy_client, is_insights):
# upload logo to namespace
payload = {
"name": namespace_name,
"avatar_url": "http://placekitten.com/123/456"
# "avatar_url": "http://placekitten.com/123/456"
"avatar_url": "https://avatars.githubusercontent.com/u/1869705?v=4"
}
gc.put(f"_ui/v1/my-namespaces/{namespace_name}/", body=payload)
if is_stage_environment():
Expand Down Expand Up @@ -246,7 +249,8 @@ def _test_namespace_logo_propagates_to_collections(galaxy_client, is_insights):
"name": namespace_name,
"description": "hehe hihi haha",
"company": "RedHat Inc.",
"avatar_url": "http://placekitten.com/654/321"
# "avatar_url": "http://placekitten.com/654/321"
"avatar_url": "https://avatars.githubusercontent.com/u/481677?v=4"
}
gc.put(f"_ui/v1/my-namespaces/{namespace_name}/", body=payload)
if is_stage_environment():
Expand Down
2 changes: 2 additions & 0 deletions galaxy_ng/tests/integration/api/test_repositories.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@

@pytest.mark.min_hub_version("4.7dev")
class TestRepositories:

@pytest.mark.skip(reason="pulp is changing how this works")
@pytest.mark.all
@pytest.mark.repositories
def test_cant_upload_same_collection_same_repo(self, galaxy_client):
Expand Down
1 change: 1 addition & 0 deletions galaxy_ng/tests/integration/cli/test_cli_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ def test_publish_newer_certified_collection_version(

@pytest.mark.all
@pytest.mark.cli
@pytest.mark.skip(reason="pulp is changing how this works")
def test_publish_same_collection_version(ansible_config, galaxy_client):
"""Test you cannot publish same collection version already published."""

Expand Down
Loading