We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e59b428 commit 0dfa4e5Copy full SHA for 0dfa4e5
1 file changed
ocpp2.0.1_test/get_composite_schedule_test.go
@@ -73,6 +73,7 @@ func (suite *OcppV2TestSuite) TestGetCompositeScheduleE2EMocked() {
73
responseJson := fmt.Sprintf(`[3,"%v",{"status":"%v","statusInfo":{"reasonCode":"%v"},"schedule":{"startDateTime":"%v","chargingSchedule":{"id":%v,"startSchedule":"%v","duration":%v,"chargingRateUnit":"%v","minChargingRate":%v,"chargingSchedulePeriod":[{"startPeriod":%v,"limit":%v,"numberPhases":%v}]}}}]`,
74
messageId, status, statusInfo.ReasonCode, compositeSchedule.StartDateTime.FormatTimestamp(), chargingSchedule.ID, chargingSchedule.StartSchedule.FormatTimestamp(), *chargingSchedule.Duration, chargingSchedule.ChargingRateUnit, *chargingSchedule.MinChargingRate, chargingSchedulePeriod.StartPeriod, chargingSchedulePeriod.Limit, *chargingSchedulePeriod.NumberPhases)
75
getCompositeScheduleConfirmation := smartcharging.NewGetCompositeScheduleResponse(status)
76
+ getCompositeScheduleConfirmation.StatusInfo = statusInfo
77
getCompositeScheduleConfirmation.Schedule = &compositeSchedule
78
channel := NewMockWebSocket(wsId)
79
0 commit comments