userver: pytest_userver.chaos.GateRoute Class Reference
Loading...
Searching...
No Matches
pytest_userver.chaos.GateRoute Class Reference

Detailed Description

Class that describes the route for TcpGate or UdpGate.

Use port_for_client == 0 to bind to some unused port. In that case the actual address could be retrieved via BaseGate.get_sockname_for_clients().

Definition at line 24 of file chaos.py.

Static Public Attributes

str name
 
str host_to_server
 
int port_to_server
 
str host_for_client = '127.0.0.1'
 
int port_for_client = 0
 

Member Data Documentation

◆ host_for_client

str pytest_userver.chaos.GateRoute.host_for_client = '127.0.0.1'
static

Definition at line 37 of file chaos.py.

◆ host_to_server

str pytest_userver.chaos.GateRoute.host_to_server
static

Definition at line 35 of file chaos.py.

◆ name

str pytest_userver.chaos.GateRoute.name
static

Definition at line 34 of file chaos.py.

◆ port_for_client

int pytest_userver.chaos.GateRoute.port_for_client = 0
static

Definition at line 38 of file chaos.py.

◆ port_to_server

int pytest_userver.chaos.GateRoute.port_to_server
static

Definition at line 36 of file chaos.py.


The documentation for this class was generated from the following file: