Skip to content

Commit

Permalink
test_galaxy: use old-galaxy for v2 API tests (#101)
Browse files Browse the repository at this point in the history
galaxy.ansible.com was officially switched over to the Galaxy NG
codebase which only supports the v3 API.
For now, we can test the v2 api against old-galaxy.ansible.com.
  • Loading branch information
gotmax23 authored Oct 5, 2023
1 parent 0d1d8d5 commit 1eac010
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/functional/test_galaxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ async def galaxy_client_test(

@pytest.mark.asyncio
async def test_galaxy_v2(tmp_path_factory):
galaxy_url = "https://galaxy.ansible.com"
galaxy_url = "https://old-galaxy.ansible.com"
async with aiohttp.ClientSession() as aio_session:
context = await GalaxyContext.create(aio_session, galaxy_url)
assert context.version == GalaxyVersion.V2
Expand All @@ -208,7 +208,7 @@ async def test_galaxy_v2(tmp_path_factory):

@pytest.mark.asyncio
async def test_galaxy_v3(tmp_path_factory):
galaxy_url = "https://beta-galaxy.ansible.com"
galaxy_url = "https://galaxy.ansible.com"
async with aiohttp.ClientSession() as aio_session:
context = await GalaxyContext.create(aio_session, galaxy_url)
assert context.version == GalaxyVersion.V3
Expand Down

0 comments on commit 1eac010

Please sign in to comment.