userver: pytest_userver.chaos.GateRoute Class Reference
⚠️ This is the documentation for an old userver version. Click here to switch to the latest version.
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages Concepts
pytest_userver.chaos.GateRoute Class Reference

Class that describes the route for TcpGate or UdpGate. More...

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
 

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.

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:
  • /data/code/service_template/third_party/userver/testsuite/pytest_plugins/pytest_userver/chaos.py