test_pq.py 669 B

12345678910111213141516171819202122
  1. from util import LOGGER, start_cloudflared, wait_tunnel_ready
  2. class TestPostQuantum:
  3. def _extra_config(self):
  4. config = {
  5. "protocol": "quic",
  6. }
  7. return config
  8. def test_post_quantum(self, tmp_path, component_tests_config):
  9. config = component_tests_config(self._extra_config())
  10. LOGGER.debug(config)
  11. with start_cloudflared(
  12. tmp_path,
  13. config,
  14. cfd_pre_args=["tunnel", "--ha-connections", "1"],
  15. cfd_args=["run", "--post-quantum"],
  16. new_process=True,
  17. ):
  18. wait_tunnel_ready(tunnel_url=config.get_url(), require_min_connections=1)