[testinfra] Update Ansible canary.

At some stage in the last 24 hours it looks like galaxy.ansible.com
changed and the current canary we look for, "Ansible NG", is no longer
present in the returned HTML:

$ curl -s https://galaxy.ansible.com/ ; echo
<!doctype html><html lang="en-US"><head><meta charset="UTF-8"><title>Ansible Galaxy</title><link rel="icon" href="/favicon.ico"><script defer="defer" src="/js/App.9bfa0e2736606eaddfe9.js"></script><link href="/css/App.4aff5598f0220c63b019.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
$ curl -s https://mirror01.dfw.rax.opendev.org:4448/  ; echo
<!doctype html><html lang="en-US"><head><meta charset="UTF-8"><title>Ansible Galaxy</title><link rel="icon" href="/favicon.ico"><script defer="defer" src="/js/App.9bfa0e2736606eaddfe9.js"></script><link href="/css/App.4aff5598f0220c63b019.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

The api however still contains "galaxy_ng_version":

$ curl -s https://galaxy.ansible.com/api/ | jq '.galaxy_ng_version'
"4.10.0dev"

Update testinfra to match the current HTML.

Change-Id: I55431311ef742efdd4aa4304692e5096e1bb2895
This commit is contained in:
Tony Breeds 2023-11-28 11:03:07 -06:00
parent c2f68876b2
commit 04abebe347

View File

@ -68,10 +68,10 @@ def test_quay_mirror(host):
def test_galaxy_mirror(host): def test_galaxy_mirror(host):
cmd = host.run(_run_cmd(host, 4448, url='/')) cmd = host.run(_run_cmd(host, 4448, url='/'))
assert 'Galaxy NG' in cmd.stdout assert 'Ansible Galaxy' in cmd.stdout
cmd = host.run(_run_cmd(host, 8085, scheme='http', url='/')) cmd = host.run(_run_cmd(host, 8085, scheme='http', url='/'))
assert 'Galaxy NG' in cmd.stdout assert 'Ansible Galaxy' in cmd.stdout
hostname = host.backend.get_hostname() hostname = host.backend.get_hostname()
# Ensure API properly answers # Ensure API properly answers