Skip to content

Commit

Permalink
Lint fix.
Browse files Browse the repository at this point in the history
No-Issue

Signed-off-by: James Tanner <[email protected]>
  • Loading branch information
jctanner committed May 23, 2024
1 parent d6e77e1 commit fff8dd6
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions galaxy_ng/tests/integration/dab/test_url_resolution.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,17 @@
import pytest


@pytest.mark.skipif(not os.getenv("ENABLE_DAB_TESTS"), reason="Skipping test because ENABLE_DAB_TESTS is not set")
@pytest.mark.skipif(
not os.getenv("ENABLE_DAB_TESTS"),
reason="Skipping test because ENABLE_DAB_TESTS is not set"
)
def test_dab_collection_download_url_hostnames(settings, galaxy_client, published):
"""
We want the download url to point at the gateway
"""
gc = galaxy_client("admin")
cv_url = f'v3/plugin/ansible/content/published/collections/index/{published.namespace}/{published.name}/versions/{published.version}'
cv_url = 'v3/plugin/ansible/content/published/collections/index/'
cv_url += f'{published.namespace}/{published.name}/versions/{published.version}'
cv_info = gc.get(cv_url)
download_url = cv_info['download_url']
assert download_url.startswith(gc.galaxy_root)
Expand Down

0 comments on commit fff8dd6

Please sign in to comment.