diff --git a/tests/infra/interfaces.py b/tests/infra/interfaces.py index 233d37c3d77..64859685cb3 100644 --- a/tests/infra/interfaces.py +++ b/tests/infra/interfaces.py @@ -132,7 +132,9 @@ def from_json(json): @dataclass class RedirectionConfig: to_primary: NodeByRoleResolver = field(default_factory=lambda: NodeByRoleResolver()) - to_backup: NodeByRoleResolver = field(default_factory=lambda: NodeByRoleResolver(target=TargetRole(NodeRole.backup))) + to_backup: NodeByRoleResolver = field( + default_factory=lambda: NodeByRoleResolver(target=TargetRole(NodeRole.backup)) + ) @staticmethod def to_json(rc): @@ -172,18 +174,36 @@ class RPCInterface(Interface): public_host: Optional[str] = None # Host port public_port: Optional[int] = None - max_open_sessions_soft: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_OPEN_SESSIONS_SOFT) - max_open_sessions_hard: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_OPEN_SESSIONS_HARD) - max_http_body_size: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_HTTP_BODY_SIZE) - max_http_header_size: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_HTTP_HEADER_SIZE) - max_http_headers_count: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_HTTP_HEADERS_COUNT) - max_concurrent_streams_count: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_CONCURRENT_STREAMS_COUNT) - initial_window_size: Optional[int] = field(default_factory=lambda: DEFAULT_INITIAL_WINDOW_SIZE) - max_frame_size: Optional[int] = field(default_factory=lambda: DEFAULT_MAX_FRAME_SIZE) + max_open_sessions_soft: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_OPEN_SESSIONS_SOFT + ) + max_open_sessions_hard: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_OPEN_SESSIONS_HARD + ) + max_http_body_size: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_HTTP_BODY_SIZE + ) + max_http_header_size: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_HTTP_HEADER_SIZE + ) + max_http_headers_count: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_HTTP_HEADERS_COUNT + ) + max_concurrent_streams_count: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_CONCURRENT_STREAMS_COUNT + ) + initial_window_size: Optional[int] = field( + default_factory=lambda: DEFAULT_INITIAL_WINDOW_SIZE + ) + max_frame_size: Optional[int] = field( + default_factory=lambda: DEFAULT_MAX_FRAME_SIZE + ) endorsement: Optional[Endorsement] = field(default_factory=lambda: Endorsement()) acme_configuration: Optional[str] = None accepted_endpoints: Optional[str] = None - forwarding_timeout_ms: Optional[int] = field(default_factory=lambda: DEFAULT_FORWARDING_TIMEOUT_MS) + forwarding_timeout_ms: Optional[int] = field( + default_factory=lambda: DEFAULT_FORWARDING_TIMEOUT_MS + ) redirections: Optional[RedirectionConfig] = None app_protocol: str = field(default_factory=lambda: "HTTP1")