Merge "More completely disable ansible galaxy proxy testing"

This commit is contained in:
Zuul 2024-04-10 15:17:12 +00:00 committed by Gerrit Code Review
commit ffb76931d7

View File

@ -66,21 +66,21 @@ def test_quay_mirror(host):
# TODO test RHRegistryMirror
def test_galaxy_mirror(host):
cmd = host.run(_run_cmd(host, 4448, url='/'))
assert 'Ansible Galaxy' in cmd.stdout
cmd = host.run(_run_cmd(host, 8085, scheme='http', url='/'))
assert 'Ansible Galaxy' in cmd.stdout
hostname = host.backend.get_hostname()
# Ensure API properly answers
cmd = host.run(_run_cmd(host, 4448, url='/api/'))
assert 'galaxy_ng_version' in cmd.stdout
# TODO(clarkb) fix the testing of galaxy api proxying.
# Galaxy completely redid their apis in v3 and the tests below are
# no longer valid.
#def test_galaxy_mirror(host):
# cmd = host.run(_run_cmd(host, 4448, url='/'))
# assert 'Ansible Galaxy' in cmd.stdout
#
# cmd = host.run(_run_cmd(host, 8085, scheme='http', url='/'))
# assert 'Ansible Galaxy' in cmd.stdout
#
# hostname = host.backend.get_hostname()
# # Ensure API properly answers
# cmd = host.run(_run_cmd(host, 4448, url='/api/'))
# assert 'galaxy_ng_version' in cmd.stdout
#
# # Ensure we get data out of a specific collection
# cmd = host.run(_run_cmd(host, 4448, url='/api/v2/collections/community/general/'))
# assert 'https://{}:4448/api/'.format(hostname) in cmd.stdout