diff --git a/galaxy_ng/tests/integration/api/test_api_base.py b/galaxy_ng/tests/integration/api/test_api_base.py index a34f5a4313..c12e4dfe58 100644 --- a/galaxy_ng/tests/integration/api/test_api_base.py +++ b/galaxy_ng/tests/integration/api/test_api_base.py @@ -1,19 +1,17 @@ import pytest -import requests from ..utils import get_client @pytest.mark.min_hub_version("4.6dev") @pytest.mark.deployment_standalone -def test_galaxy_api_root_standalone_no_auth_access(ansible_config): +def test_galaxy_api_root_standalone_no_auth_access(galaxy_client): """Test galaxy API root.""" - config = ansible_config("basic_user") - api_root = config["url"] - + gc = galaxy_client("basic_user") + del gc.headers["Authorization"] # verify api root works without authentication - response = requests.get(f"{api_root}").json() + response = gc.get("") assert "v3" in response["available_versions"] assert "pulp-v3" in response["available_versions"]