From dfc1294dbd6e87f7781649b65da5116801e27740 Mon Sep 17 00:00:00 2001 From: "Laurent Mignon (ACSONE)" Date: Tue, 24 Sep 2024 15:56:31 +0200 Subject: [PATCH] [FIX] stock_release_channel_shipment_advice_toursolver: Tests Fix tests: The method called to get results from toursolver has changed with https://github.com/OCA/stock-logistics-transport/pull/141 --- ...vicePlannerToursolver.test_plan_shipment_toursolver.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/stock_release_channel_shipment_advice_toursolver/tests/cassettes/TestShipmentAdvicePlannerToursolver.test_plan_shipment_toursolver.yaml b/stock_release_channel_shipment_advice_toursolver/tests/cassettes/TestShipmentAdvicePlannerToursolver.test_plan_shipment_toursolver.yaml index ce3e7f6be0..94fa36d2c4 100644 --- a/stock_release_channel_shipment_advice_toursolver/tests/cassettes/TestShipmentAdvicePlannerToursolver.test_plan_shipment_toursolver.yaml +++ b/stock_release_channel_shipment_advice_toursolver/tests/cassettes/TestShipmentAdvicePlannerToursolver.test_plan_shipment_toursolver.yaml @@ -132,11 +132,11 @@ interactions: User-Agent: - python-requests/2.28.2 method: GET - uri: https://geoservices.geoconcept.com/ToursolverCloud/api/ts/toursolver/result?taskId=7FFFFE798712E6718ezjI-ehRJaG_Tl68JRX_w&tsCloudApiKey=fake_api_key + uri: https://geoservices.geoconcept.com/ToursolverCloud/api/ts/toursolver/toursResult?taskId=7FFFFE798712E6718ezjI-ehRJaG_Tl68JRX_w&tsCloudApiKey=fake_api_key response: body: - string: '{"message":null,"status":"OK","plannedOrders":[{"resourceId":"D2","dayId":"1","stopId":"Start","stopPosition":0,"stopY":0.0,"stopX":0.0,"stopType":1,"stopDriveTime":"00:00","stopStartTime":"12:40","stopDuration":"00:00","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"Reload - (dep_1)","stopPosition":0,"stopY":0.0,"stopX":0.0,"stopType":4,"stopDriveTime":"00:00","stopStartTime":"12:40","stopDuration":"00:00","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"31","stopPosition":1,"stopY":0.0,"stopX":0.0,"stopType":0,"stopDriveTime":"00:00","stopStartTime":"12:40","stopDuration":"00:03","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"9","stopPosition":2,"stopY":0.0,"stopX":0.0,"stopType":0,"stopDriveTime":"00:00","stopStartTime":"12:43","stopDuration":"00:03","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"End","stopPosition":0,"stopY":0.0,"stopX":0.0,"stopType":2,"stopDriveTime":"00:00","stopStartTime":"12:46","stopDuration":"00:00","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0}],"unplannedOrders":[],"warnings":[{"objectType":"R","id":"D1","constraint":29,"constraintName":"WORKPENALTY","value":"0.0","message":"Journey + string: '{"message":null,"status":"OK","tours":[{"resourceId":"D2","travelDistance":12345,"travelDuration":"05:30","resourceCapacities":[ 12345.0,12345.0 ],"usedCapacities":[12345.0,12345.0],"deliveryCost":12345.0,"additionalCost":12345.0,"totalCost":12345.0,"reloadNb":12345,"plannedOrders":[{"resourceId":"D2","dayId":"1","stopId":"Start","stopPosition":0,"stopY":0.0,"stopX":0.0,"stopType":1,"stopDriveTime":"00:00","stopStartTime":"12:40","stopDuration":"00:00","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"Reload + (dep_1)","stopPosition":0,"stopY":0.0,"stopX":0.0,"stopType":4,"stopDriveTime":"00:00","stopStartTime":"12:40","stopDuration":"00:00","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"31","stopPosition":1,"stopY":0.0,"stopX":0.0,"stopType":0,"stopDriveTime":"00:00","stopStartTime":"12:40","stopDuration":"00:03","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"9","stopPosition":2,"stopY":0.0,"stopX":0.0,"stopType":0,"stopDriveTime":"00:00","stopStartTime":"12:43","stopDuration":"00:03","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0},{"resourceId":"D2","dayId":"1","stopId":"End","stopPosition":0,"stopY":0.0,"stopX":0.0,"stopType":2,"stopDriveTime":"00:00","stopStartTime":"12:46","stopDuration":"00:00","stopStatus":0,"stopDriveDistance":0,"stopElapsedDistance":0,"placeName":null,"placeAddress":null,"aggregationInfo":null,"walkGoupRootId":null,"stopDriveSpeed":0.0}]}],"unplannedOrders":[],"warnings":[{"objectType":"R","id":"D1","constraint":29,"constraintName":"WORKPENALTY","value":"0.0","message":"Journey cost and hourly cost can not be set both to zero: default values will be applied.","messageId":6,"i18nMessageCode":"missingMandatoryPenalties"},{"objectType":"R","id":"D2","constraint":29,"constraintName":"WORKPENALTY","value":"0.0","message":"Journey cost and hourly cost can not be set both to zero: default values will be applied.","messageId":6,"i18nMessageCode":"missingMandatoryPenalties"}],"taskId":"7FFFFE798712E6718ezjI-ehRJaG_Tl68JRX_w","simulationId":"7FFFFE798712E6BBmz4AfuOzSfG-VSMVoay9Qg","inputData":null}' headers: