Test that an errored connection is reused.
(tctx)
| 1493 | |
| 1494 | |
| 1495 | def test_reuse_error(tctx): |
| 1496 | """Test that an errored connection is reused.""" |
| 1497 | tctx.server.address = ("example.com", 443) |
| 1498 | tctx.server.error = "tls verify failed" |
| 1499 | assert ( |
| 1500 | Playbook(http.HttpLayer(tctx, HTTPMode.transparent), hooks=False) |
| 1501 | >> DataReceived(tctx.client, b"GET / HTTP/1.1\r\n\r\n") |
| 1502 | << SendData(tctx.client, BytesMatching(b"502 Bad Gateway.+tls verify failed")) |
| 1503 | << CloseConnection(tctx.client) |
| 1504 | ) |
| 1505 | |
| 1506 | |
| 1507 | def test_transparent_sni(tctx): |
nothing calls this directly
no test coverage detected
searching dependent graphs…