curl/tests/http/testenv
Stefan Eissing 30ef79ed93
pytest-xdist: pytest in parallel
Require now pytest-xdist from tests/http/requirements.txt and
run pytest in 'auto' parallel mode (counts cpu cores).

For CI runs, set the worker count to 4, overriding the
core count of 2 exposed in the images.

- use Filelock to generate allocated ports at start for all
  workers and have subsequent workers just read the file and
  take the ports for their slot
- make httpd config clearing a function fixture so every test
  starts with a clean httpd config
- have fixture `configures_httpd` as parameter of test cases
  that configure httpd anyway, saving one reload
- add pytest-xdist and filelock to required pyhton modules
- add installs to ruff CI
- give live checks waiting for a server to start up longer time
- add fixtures to tests that rely on a server
- do not stop servers unnecessarily. failures may not start them
  properly again, leading to unexpected fails in whatever follows
- add a https: port to httpd that is *not* back by QUIC to allow
  failover tests without stopping the QUIC server

Closes #17295
2025-05-15 21:44:31 +02:00
..
mod_curltest http: fix HTTP/2 handling of TE request header using "trailers" 2025-04-22 15:55:36 +02:00
__init__.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00
caddy.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
certs.py tests: enable additional ruff Python lint options 2024-10-04 14:03:17 -07:00
client.py tests: allow pytests to run in out-of-tree builds 2024-10-12 10:47:57 -07:00
curl.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
env.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
httpd.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
nghttpx.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
ports.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
vsftpd.py pytest-xdist: pytest in parallel 2025-05-15 21:44:31 +02:00
ws_echo_server.py tests: change Python code style to pass ruff checks 2024-10-04 14:02:05 -07:00