Files
http-latency-prober/python/configs/mixed.txt
Jan Novak 6db2abb713 feat(py): step 1 refinement — error-path example configs for simple.py
- python/configs/: 7 purpose-built config files, one per error class:
  all-ok.txt, dns-failure.txt, connection-refused.txt, timeout.txt,
  tls-errors.txt (badssl.com), http-errors.txt (real 404 paths on stable
  hosts), mixed.txt (one of each, no timeout)
- python/configs/usage.md: runnable sh commands + expected output per config,
  plus quick-sweep and full-sweep loops; commands written for running from
  the python/ directory
- docs/custom-usage-examples.md: example 11 added (all failure classes at once)
- docs/usage/py-simple.md: added pointer to python/configs/ and corrected
  limitation note (4xx/5xx are FAIL, not OK)

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-07-01 11:58:20 +02:00

22 lines
617 B
Plaintext

# Mixed — one entry from each error class alongside a successful site.
# Shows that OK and FAIL lines can interleave in the same run.
# Timeout is omitted here so the run completes in a few seconds.
#
# Run: python3.14 python/simple.py python/configs/mixed.txt
# Expected exit code: 1 (any FAIL drives exit to 1)
# Success
https://example.com
# DNS failure
https://no.such.host.invalid
# Connection refused (loopback, no server)
http://127.0.0.1:9999
# TLS certificate error
https://self-signed.badssl.com/
# HTTP error (server responded with 404)
https://github.com/this-repo-does-not-exist-abcxyz123/no-way