Skip to content
This repository was archived by the owner on Dec 9, 2025. It is now read-only.

Commit e08fbd0

Browse files
authored
Add skip_validation list to CentralSystem to allow non-validated responses (#200)
This can contain a list of Actions that have validation turned off For example you can do the following: skip_validation.append(Action.boot_notification) to turn off validation during BootNotification responses Signed-off-by: Kai-Uwe Hermann <kai-uwe.hermann@pionix.de>
1 parent b88ca4e commit e08fbd0

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

everest-testing/src/everest/testing/ocpp_utils/central_system.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ def __init__(self, chargepoint_id, ocpp_version, port: Optional[int] = None):
6363
self.chargepoint = None
6464
self.chargepoint_set_event = asyncio.Event()
6565
self.function_overrides = []
66+
self.skip_validation = []
6667

6768
async def on_connect(self, websocket):
6869
""" For every new charge point that connects, create a ChargePoint
@@ -103,6 +104,8 @@ async def on_connect(self, websocket):
103104
for override in self.function_overrides:
104105
setattr(self.chargepoint, override[0], override[1])
105106
self.chargepoint.route_map = create_route_map(self.chargepoint)
107+
for action in self.skip_validation:
108+
self.chargepoint.route_map[action]["_skip_schema_validation"] = True
106109

107110
self.chargepoint_set_event.set()
108111
await self.chargepoint.start()

0 commit comments

Comments
 (0)