From 04abebe3474a9bde0044dcc6dd51d601efbbe716 Mon Sep 17 00:00:00 2001 From: Tony Breeds Date: Tue, 28 Nov 2023 11:03:07 -0600 Subject: [PATCH] [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 Ansible Galaxy
$ curl -s https://mirror01.dfw.rax.opendev.org:4448/ ; echo Ansible Galaxy
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 --- testinfra/test_mirror.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/testinfra/test_mirror.py b/testinfra/test_mirror.py index d1d257ad57..a00188dcea 100644 --- a/testinfra/test_mirror.py +++ b/testinfra/test_mirror.py @@ -68,10 +68,10 @@ def test_quay_mirror(host): def test_galaxy_mirror(host): 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='/')) - assert 'Galaxy NG' in cmd.stdout + assert 'Ansible Galaxy' in cmd.stdout hostname = host.backend.get_hostname() # Ensure API properly answers