debian-forge/sources/test
Michael Vogt a50dbb14c2 sources(curl): use --next for each url in curl config
curl keeps a global parser state. This means that if there are
multiple "cacert =" values they are just overriden and the last
one wins. This is why the `test_curl_download_many_mixed_certs`
test did not work - the second `cacert = ` overwrites the previous
one.

To fix this we need to use `--next` when we need to change options
on a per url (like `cacert`) basis. With `--next` curl starts a
new parser state for the next url (but keeps the options for the
previous ones set). This commit does that in a slightly naive
way by just repeating our options for each url. Technically
we could sort the sources so that we have less repetition but
other then slightly smaller auto-generated files it has no
advantage.

With this commit the `test_curl_download_many_mixed_certs` test
works.
2024-08-28 07:46:37 +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): use --next for each url in curl config 2024-08-28 07:46:37 +02:00