Skip to content

Commit

Permalink
use galaxykit instead of requests library so that configuration is ta… (
Browse files Browse the repository at this point in the history
ansible#2040)

use galaxykit instead of requests library so that configuration is taken into account
No-Issue
  • Loading branch information
chr-stian authored Jan 22, 2024
1 parent 5b846b5 commit bfd6fe1
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions galaxy_ng/tests/integration/api/test_api_base.py
Original file line number Diff line number Diff line change
@@ -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"]

Expand Down

0 comments on commit bfd6fe1

Please sign in to comment.