(tctx: Context)
| 177 | |
| 178 | |
| 179 | def test_tunnel_openconnection_error(tctx: Context): |
| 180 | server = Server(address=("proxy", 1234)) |
| 181 | |
| 182 | tl = TTunnelLayer(tctx, server, tctx.server) |
| 183 | tl.child_layer = TChildLayer(tctx) |
| 184 | |
| 185 | playbook = Playbook(tl, logs=True) |
| 186 | assert ( |
| 187 | playbook |
| 188 | << Log("Got start. Server state: CLOSED") |
| 189 | >> DataReceived(tctx.client, b"open") |
| 190 | << OpenConnection(server) |
| 191 | ) |
| 192 | assert tl.tunnel_state is tunnel.TunnelState.ESTABLISHING |
| 193 | assert ( |
| 194 | playbook |
| 195 | >> reply("IPoAC packet dropped.") |
| 196 | << Log("Opened: err='IPoAC packet dropped.'. Server state: CLOSED") |
| 197 | ) |
| 198 | assert tl.tunnel_state is tunnel.TunnelState.CLOSED |
| 199 | |
| 200 | |
| 201 | @pytest.mark.parametrize("disconnect", ["client", "server"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…