Classes | Functions | Variables
tests_aio.unit.channel_argument_test Namespace Reference

Classes

class  _TestPointerWrapper
 
class  TestChannelArgument
 

Functions

def test_if_reuse_port_enabled (aio.Server server)
 

Variables

 _ADDRESS_TOKEN_ERRNO = errno.EADDRINUSE, errno.ENOSR
 
string _DISABLE_REUSE_PORT = 'SO_REUSEPORT disabled'
 
string _ENABLE_REUSE_PORT = 'SO_REUSEPORT enabled'
 
string _GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH = 'grpc.max_receive_message_length'
 
list _INVALID_TEST_CHANNEL_ARGS
 
int _MAX_MESSAGE_LENGTH = 1024
 
int _NUM_SERVER_CREATED = 5
 
tuple _OPTIONS
 
int _RANDOM_SEED = 42
 
string _SOCKET_OPT_SO_REUSEPORT = 'grpc.so_reuseport'
 
tuple _TEST_CHANNEL_ARGS
 
 level
 
 verbosity
 

Function Documentation

◆ test_if_reuse_port_enabled()

def tests_aio.unit.channel_argument_test.test_if_reuse_port_enabled ( aio.Server  server)

Definition at line 73 of file channel_argument_test.py.

Variable Documentation

◆ _ADDRESS_TOKEN_ERRNO

tests_aio.unit.channel_argument_test._ADDRESS_TOKEN_ERRNO = errno.EADDRINUSE, errno.ENOSR
private

Definition at line 47 of file channel_argument_test.py.

◆ _DISABLE_REUSE_PORT

string tests_aio.unit.channel_argument_test._DISABLE_REUSE_PORT = 'SO_REUSEPORT disabled'
private

Definition at line 35 of file channel_argument_test.py.

◆ _ENABLE_REUSE_PORT

string tests_aio.unit.channel_argument_test._ENABLE_REUSE_PORT = 'SO_REUSEPORT enabled'
private

Definition at line 34 of file channel_argument_test.py.

◆ _GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH

string tests_aio.unit.channel_argument_test._GRPC_ARG_MAX_RECEIVE_MESSAGE_LENGTH = 'grpc.max_receive_message_length'
private

Definition at line 44 of file channel_argument_test.py.

◆ _INVALID_TEST_CHANNEL_ARGS

list tests_aio.unit.channel_argument_test._INVALID_TEST_CHANNEL_ARGS
private
Initial value:
1 = [
2  {
3  'foo': 'bar'
4  },
5  (('key',),),
6  'str',
7 ]

Definition at line 64 of file channel_argument_test.py.

◆ _MAX_MESSAGE_LENGTH

int tests_aio.unit.channel_argument_test._MAX_MESSAGE_LENGTH = 1024
private

Definition at line 45 of file channel_argument_test.py.

◆ _NUM_SERVER_CREATED

int tests_aio.unit.channel_argument_test._NUM_SERVER_CREATED = 5
private

Definition at line 42 of file channel_argument_test.py.

◆ _OPTIONS

tuple tests_aio.unit.channel_argument_test._OPTIONS
private
Initial value:
1 = (
2  (_ENABLE_REUSE_PORT, ((_SOCKET_OPT_SO_REUSEPORT, 1),)),
3  (_DISABLE_REUSE_PORT, ((_SOCKET_OPT_SO_REUSEPORT, 0),)),
4 )

Definition at line 37 of file channel_argument_test.py.

◆ _RANDOM_SEED

int tests_aio.unit.channel_argument_test._RANDOM_SEED = 42
private

Definition at line 32 of file channel_argument_test.py.

◆ _SOCKET_OPT_SO_REUSEPORT

string tests_aio.unit.channel_argument_test._SOCKET_OPT_SO_REUSEPORT = 'grpc.so_reuseport'
private

Definition at line 36 of file channel_argument_test.py.

◆ _TEST_CHANNEL_ARGS

tuple tests_aio.unit.channel_argument_test._TEST_CHANNEL_ARGS
private
Initial value:
1 = (
2  ('arg1', b'bytes_val'),
3  ('arg2', 'str_val'),
4  ('arg3', 1),
5  (b'arg4', 'str_val'),
6  ('arg6', _TestPointerWrapper()),
7 )

Definition at line 56 of file channel_argument_test.py.

◆ level

tests_aio.unit.channel_argument_test.level

Definition at line 178 of file channel_argument_test.py.

◆ verbosity

tests_aio.unit.channel_argument_test.verbosity

Definition at line 179 of file channel_argument_test.py.



grpc
Author(s):
autogenerated on Fri May 16 2025 03:03:53