Skip to content

Commit

Permalink
Move reservations callbacks and handlers to new functional block some…
Browse files Browse the repository at this point in the history
… test changes

Change test because of a changed behaviour for the reservations implementation in libocpp when reservations is not available in the device model.

Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
  • Loading branch information
maaikez authored Dec 17, 2024
1 parent ede5b2d commit 60f5889
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
2 changes: 1 addition & 1 deletion dependencies.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ libevse-security:
# OCPP
libocpp:
git: https://github.com/EVerest/libocpp.git
git_tag: e52ac969095804144af4896af1984cedaf45a3f8
git_tag: c66383782a32827920af80314165843deed63c98
cmake_condition: "EVEREST_DEPENDENCY_ENABLED_LIBOCPP"
# Josev
Josev:
Expand Down
13 changes: 4 additions & 9 deletions tests/ocpp_tests/test_sets/ocpp201/reservations.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from ocpp.v201.datatypes import *
from ocpp.v201 import call as call_201
from ocpp.v201 import call_result as call_result201
from validations import validate_remote_start_stop_transaction
from validations import (validate_remote_start_stop_transaction, wait_for_callerror_and_validate)
from ocpp.routing import on, create_route_map


Expand Down Expand Up @@ -629,7 +629,6 @@ async def test_reservation_connector_occupied(
# start charging session
test_controller.plug_in()

# TODO mz fix comments everywhere in this file!!!
# expect StatusNotification with status occupied
assert await wait_for_and_validate(
test_utility,
Expand Down Expand Up @@ -735,13 +734,9 @@ async def test_reservation_connector_rejected(
evse_id=1
)

# expect ReserveNow response with status rejected
assert await wait_for_and_validate(
test_utility,
charge_point_v201,
"ReserveNow",
call_result201.ReserveNowPayload(ReserveNowStatusType.rejected),
)
assert await wait_for_callerror_and_validate(test_utility,
charge_point_v201,
"NotImplemented")


@pytest.mark.asyncio
Expand Down

0 comments on commit 60f5889

Please sign in to comment.