From 1eac01034da9643f517069e5a1a19f78a64c9ae7 Mon Sep 17 00:00:00 2001 From: Maxwell G Date: Thu, 5 Oct 2023 00:03:36 -0500 Subject: [PATCH] test_galaxy: use old-galaxy for v2 API tests (#101) 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. --- tests/functional/test_galaxy.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/functional/test_galaxy.py b/tests/functional/test_galaxy.py index a5d779c..732eca5 100644 --- a/tests/functional/test_galaxy.py +++ b/tests/functional/test_galaxy.py @@ -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 @@ -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