_____________________________________________________________________________________________ test_urls[ubuntu23.04] ______________________________________________________________________________________________
urls_http = [('https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-amd64.img', <UrlType.URL_DISK_Q...W2: UniqueSet({'text/plain', 'application/x-troff-man', 'application/octet-stream', 'application-x-qemu-disk'})>), ...]
urls_docker = [], urls_other = [], session = <requests.sessions.Session object at 0x7f88bf51b610>
@pytest.mark.parametrize("urls_http,urls_docker,urls_other", _collect_os_urls())
def test_urls(urls_http, urls_docker, urls_other, session):
broken = []
for url, url_type in urls_http:
ok = _check_url(session, url, url_type)
if not ok:
broken.append(url)
for url, url_type in urls_docker:
http_url = _transform_docker_url(url)
ok = _check_url(session, http_url, url_type, real_url=url)
if not ok:
broken.append(url)
for url, _ in urls_other:
logging.warning("unhandled URL: %s", url)
broken.append(url)
> assert broken == []
E AssertionError: assert ['https://cdi...cy-amd64.iso'] == []
E
E Left contains one more item: 'https://cdimage.ubuntu.com/releases/23.04/release/ubuntu-23.04-desktop-legacy-amd64.iso'
E Use -v to get more diff
tests/test_urls.py:218: AssertionError
------------------------------------------------------------------------------------------------ Captured log call ------------------------------------------------------------------------------------------------
INFO root:test_urls.py:108 url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-amd64.img, type: UrlType.URL_DISK_QCOW2
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/octet-stream; url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-amd64.img
INFO root:test_urls.py:108 url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-amd64.vmdk, type: UrlType.URL_DISK_VMDK
INFO root:test_urls.py:138 response: OK; code: 200; content-type: None; url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-amd64.vmdk
INFO root:test_urls.py:108 url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-arm64.img, type: UrlType.URL_DISK_QCOW2
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/octet-stream; url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-arm64.img
INFO root:test_urls.py:108 url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-armhf.img, type: UrlType.URL_DISK_QCOW2
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/octet-stream; url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-armhf.img
INFO root:test_urls.py:108 url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-ppc64el.img, type: UrlType.URL_DISK_QCOW2
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/octet-stream; url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-ppc64el.img
INFO root:test_urls.py:108 url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-s390x.img, type: UrlType.URL_DISK_QCOW2
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/octet-stream; url: https://cloud-images.ubuntu.com/releases/lunar/release/ubuntu-23.04-server-cloudimg-s390x.img
INFO root:test_urls.py:108 url: https://old-releases.ubuntu.com/releases/23.04/ubuntu-23.04-desktop-amd64.iso, type: UrlType.URL_ISO
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/x-iso9660-image; url: https://old-releases.ubuntu.com/releases/23.04/ubuntu-23.04-desktop-amd64.iso
INFO root:test_urls.py:108 url: https://cdimage.ubuntu.com/releases/23.04/release/ubuntu-23.04-desktop-legacy-amd64.iso, type: UrlType.URL_ISO
ERROR root:test_urls.py:132 response: Not Found; code: 404; content-type: text/html; url: https://cdimage.ubuntu.com/releases/23.04/release/ubuntu-23.04-desktop-legacy-amd64.iso
INFO root:test_urls.py:108 url: https://old-releases.ubuntu.com/releases/23.04/ubuntu-23.04-live-server-amd64.iso, type: UrlType.URL_ISO
INFO root:test_urls.py:138 response: OK; code: 200; content-type: application/x-iso9660-image; url: https://old-releases.ubuntu.com/releases/23.04/ubuntu-23.04-live-server-amd64.iso