File tree Expand file tree Collapse file tree 2 files changed +16
-0
lines changed
Expand file tree Collapse file tree 2 files changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -160,6 +160,16 @@ class LoadBalancerService(BaseDomain):
160160 Configuration for http/https protocols, required when protocol is http/https
161161 """
162162
163+ __api_properties__ = (
164+ "protocol" ,
165+ "listen_port" ,
166+ "destination_port" ,
167+ "proxyprotocol" ,
168+ "health_check" ,
169+ "http" ,
170+ )
171+ __slots__ = __api_properties__
172+
163173 def __init__ (
164174 self ,
165175 protocol : str | None = None ,
Original file line number Diff line number Diff line change @@ -191,3 +191,9 @@ def test_nested_list__eq__(self):
191191 d2 .child = [ActionDomain (id = 2 , name = "child2" )]
192192
193193 assert d1 != d2
194+
195+
196+ def test_base_domain_subclasses ():
197+ for c in BaseDomain .__subclasses__ ():
198+ assert len (c .__api_properties__ ) > 0
199+ assert len (c .__slots__ ) > 0
You can’t perform that action at this time.
0 commit comments