debian-forge/sources/test
Michael Vogt 16667ef260 sources(curl): error if curl exists 0 but there are downloads left
As part of the investigation of the CI failure in
https://github.com/osbuild/osbuild-composer/pull/4247
we noticed that curl can return a return_code of `0` even
when it did not downloaded all the urls in a `--config` provided
file. This seems to be curl version dependent, I had a hard
time writing a test-case with the real curl (8.6.0) that
reproduces this so I went with mocking it. We definietly saw
this failure with the centos 9 version (7.76).

Our current code is buggy and assumes that the exit status
of curl is always non-zero if any download fails but that is
only the case when `--fail-early` is used.

The extra paranoia will not hurt even when relying on the
exit code of curl is fixed.
2024-07-17 11:39:35 +02:00
..
conftest.py testutil: extract find_one_subclass_in_module() helper 2024-04-03 11:36:01 +02:00
test_container_storage_source.py sources: add new sources_service fixture 2024-04-03 11:36:01 +02:00
test_curl_source.py sources(curl): error if curl exists 0 but there are downloads left 2024-07-17 11:39:35 +02:00