-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cost and price display message tests (#975)
* Add cost and price and display message tests. Signed-off-by: Maaike Zijderveld, iolar <[email protected]>
- Loading branch information
Showing
8 changed files
with
2,359 additions
and
3 deletions.
There are no files selected for viewing
122 changes: 122 additions & 0 deletions
122
tests/ocpp_tests/test_sets/everest-aux/config/everest-config-ocpp16-costandprice.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,122 @@ | ||
active_modules: | ||
evse_manager: | ||
module: EvseManager | ||
config_module: | ||
connector_id: 1 | ||
has_ventilation: true | ||
evse_id: "1" | ||
external_ready_to_start_charging: true | ||
connections: | ||
bsp: | ||
- module_id: yeti_driver | ||
implementation_id: board_support | ||
powermeter_grid_side: | ||
- module_id: yeti_driver | ||
implementation_id: powermeter | ||
yeti_driver: | ||
module: JsYetiSimulator | ||
config_module: | ||
connector_id: 1 | ||
ev_manager: | ||
module: EvManager | ||
config_module: | ||
connector_id: 1 | ||
auto_enable: true | ||
auto_exec: false | ||
auto_exec_commands: sleep 1;iec_wait_pwr_ready;sleep 1;draw_power_regulated 16,3;sleep 30;unplug | ||
connections: | ||
ev_board_support: | ||
- module_id: yeti_driver | ||
implementation_id: ev_board_support | ||
auth: | ||
module: Auth | ||
config_module: | ||
connection_timeout: 10 | ||
selection_algorithm: FindFirst | ||
connections: | ||
token_provider: | ||
- module_id: token_provider | ||
implementation_id: main | ||
- module_id: ocpp | ||
implementation_id: auth_provider | ||
token_validator: | ||
- module_id: ocpp | ||
implementation_id: auth_validator | ||
evse_manager: | ||
- module_id: evse_manager | ||
implementation_id: evse | ||
ocpp: | ||
module: OCPP | ||
config_module: | ||
ChargePointConfigPath: libocpp-config-costandprice.json | ||
connections: | ||
evse_manager: | ||
- module_id: evse_manager | ||
implementation_id: evse | ||
reservation: | ||
- module_id: auth | ||
implementation_id: reservation | ||
auth: | ||
- module_id: auth | ||
implementation_id: main | ||
system: | ||
- module_id: system | ||
implementation_id: main | ||
security: | ||
- module_id: evse_security | ||
implementation_id: main | ||
display_message: | ||
- module_id: display_message | ||
implementation_id: display_message | ||
display_message: | ||
module: TerminalCostAndPriceMessage | ||
connections: | ||
session_cost: | ||
- module_id: ocpp | ||
implementation_id: session_cost | ||
evse_security: | ||
module: EvseSecurity | ||
config_module: | ||
private_key_password: "123456" | ||
token_provider: | ||
module: DummyTokenProviderManual | ||
energy_manager: | ||
module: EnergyManager | ||
connections: | ||
energy_trunk: | ||
- module_id: grid_connection_point | ||
implementation_id: energy_grid | ||
grid_connection_point: | ||
module: EnergyNode | ||
config_module: | ||
fuse_limit_A: 40.0 | ||
phase_count: 3 | ||
connections: | ||
price_information: [] | ||
energy_consumer: | ||
- module_id: evse_manager | ||
implementation_id: energy_grid | ||
powermeter: | ||
- module_id: yeti_driver | ||
implementation_id: powermeter | ||
api: | ||
module: API | ||
connections: | ||
evse_manager: | ||
- module_id: evse_manager | ||
implementation_id: evse | ||
ocpp: | ||
- module_id: ocpp | ||
implementation_id: ocpp_generic | ||
error_history: | ||
- module_id: error_history | ||
implementation_id: error_history | ||
error_history: | ||
module: ErrorHistory | ||
config_implementation: | ||
error_history: | ||
database_path: /tmp/error_history.db | ||
system: | ||
module: System | ||
|
||
x-module-layout: {} |
162 changes: 162 additions & 0 deletions
162
tests/ocpp_tests/test_sets/everest-aux/config/everest-config-ocpp201-costandprice.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,162 @@ | ||
active_modules: | ||
connector_1: | ||
module: EvseManager | ||
config_module: | ||
connector_id: 1 | ||
has_ventilation: true | ||
evse_id: "1" | ||
session_logging: true | ||
session_logging_xml: false | ||
ac_hlc_enabled: false | ||
ac_hlc_use_5percent: false | ||
ac_enforce_hlc: false | ||
connections: | ||
bsp: | ||
- module_id: yeti_driver_1 | ||
implementation_id: board_support | ||
powermeter_grid_side: | ||
- module_id: yeti_driver_1 | ||
implementation_id: powermeter | ||
connector_2: | ||
module: EvseManager | ||
config_module: | ||
connector_id: 2 | ||
has_ventilation: true | ||
evse_id: "2" | ||
session_logging: true | ||
session_logging_xml: false | ||
ac_hlc_enabled: false | ||
ac_hlc_use_5percent: false | ||
ac_enforce_hlc: false | ||
connections: | ||
bsp: | ||
- module_id: yeti_driver_2 | ||
implementation_id: board_support | ||
powermeter_grid_side: | ||
- module_id: yeti_driver_2 | ||
implementation_id: powermeter | ||
yeti_driver_1: | ||
module: JsYetiSimulator | ||
config_module: | ||
connector_id: 1 | ||
yeti_driver_2: | ||
module: JsYetiSimulator | ||
config_module: | ||
connector_id: 2 | ||
auth: | ||
module: Auth | ||
config_module: | ||
connection_timeout: 30 | ||
selection_algorithm: FindFirst | ||
connections: | ||
token_provider: | ||
- module_id: ocpp | ||
implementation_id: auth_provider | ||
- module_id: token_provider_manual | ||
implementation_id: main | ||
token_validator: | ||
- module_id: ocpp | ||
implementation_id: auth_validator | ||
evse_manager: | ||
- module_id: connector_1 | ||
implementation_id: evse | ||
- module_id: connector_2 | ||
implementation_id: evse | ||
ocpp: | ||
module: OCPP201 | ||
config_module: | ||
EnableExternalWebsocketControl: true | ||
connections: | ||
evse_manager: | ||
- module_id: connector_1 | ||
implementation_id: evse | ||
- module_id: connector_2 | ||
implementation_id: evse | ||
auth: | ||
- module_id: auth | ||
implementation_id: main | ||
system: | ||
- module_id: system | ||
implementation_id: main | ||
security: | ||
- module_id: evse_security | ||
implementation_id: main | ||
display_message: | ||
- module_id: display_message | ||
implementation_id: display_message | ||
persistent_store: | ||
module: PersistentStore | ||
config_module: | ||
sqlite_db_file_path: persistent_store.db | ||
display_message: | ||
module: TerminalCostAndPriceMessage | ||
connections: | ||
session_cost: | ||
- module_id: ocpp | ||
implementation_id: session_cost | ||
evse_security: | ||
module: EvseSecurity | ||
config_module: | ||
csms_ca_bundle: "ca/csms/CSMS_ROOT_CA.pem" | ||
csms_leaf_cert_directory: "client/csms" | ||
csms_leaf_key_directory: "client/csms" | ||
mf_ca_bundle: "ca/mf/MF_ROOT_CA.pem" | ||
mo_ca_bundle: "ca/mo/MO_ROOT_CA.pem" | ||
v2g_ca_bundle: "ca/v2g/V2G_ROOT_CA.pem" | ||
secc_leaf_cert_directory: "client/cso" | ||
secc_leaf_key_directory: "client/cso" | ||
private_key_password: "123456" | ||
token_provider_manual: | ||
module: DummyTokenProviderManual | ||
energy_manager: | ||
module: EnergyManager | ||
connections: | ||
energy_trunk: | ||
- module_id: grid_connection_point | ||
implementation_id: energy_grid | ||
grid_connection_point: | ||
module: EnergyNode | ||
config_module: | ||
fuse_limit_A: 40.0 | ||
phase_count: 3 | ||
connections: | ||
price_information: [] | ||
energy_consumer: | ||
- module_id: connector_1 | ||
implementation_id: energy_grid | ||
- module_id: connector_2 | ||
implementation_id: energy_grid | ||
powermeter: | ||
- module_id: yeti_driver_1 | ||
implementation_id: powermeter | ||
ev_manager_1: | ||
module: EvManager | ||
config_module: | ||
connector_id: 1 | ||
auto_enable: true | ||
auto_exec: false | ||
auto_exec_commands: sleep 1;iec_wait_pwr_ready;sleep 1;draw_power_regulated 16,3;sleep 30;unplug | ||
connections: | ||
ev_board_support: | ||
- module_id: yeti_driver_1 | ||
implementation_id: ev_board_support | ||
ev_manager_2: | ||
module: EvManager | ||
config_module: | ||
connector_id: 2 | ||
auto_enable: true | ||
auto_exec: false | ||
auto_exec_commands: sleep 1;iec_wait_pwr_ready;sleep 1;draw_power_regulated 16,3;sleep 30;unplug | ||
connections: | ||
ev_board_support: | ||
- module_id: yeti_driver_2 | ||
implementation_id: ev_board_support | ||
error_history: | ||
module: ErrorHistory | ||
config_implementation: | ||
error_history: | ||
database_path: /tmp/error_history.db | ||
system: | ||
module: System | ||
|
||
x-module-layout: {} |
93 changes: 93 additions & 0 deletions
93
tests/ocpp_tests/test_sets/everest-aux/config/libocpp-config-costandprice.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
{ | ||
"Internal": { | ||
"ChargePointId": "cp001", | ||
"CentralSystemURI": "127.0.0.1:9000/cp001", | ||
"ChargeBoxSerialNumber": "cp001", | ||
"ChargePointModel": "Yeti", | ||
"ChargePointVendor": "Pionix", | ||
"FirmwareVersion": "0.1", | ||
"LogMessages": true | ||
}, | ||
"Core": { | ||
"AuthorizeRemoteTxRequests": false, | ||
"ClockAlignedDataInterval": 900, | ||
"ConnectionTimeOut": 30, | ||
"ConnectorPhaseRotation": "0.RST,1.RST", | ||
"GetConfigurationMaxKeys": 100, | ||
"HeartbeatInterval": 86400, | ||
"LocalAuthorizeOffline": false, | ||
"LocalPreAuthorize": false, | ||
"MeterValuesAlignedData": "Energy.Active.Import.Register", | ||
"MeterValuesSampledData": "Energy.Active.Import.Register,SoC", | ||
"MeterValueSampleInterval": 60, | ||
"NumberOfConnectors": 1, | ||
"ResetRetries": 1, | ||
"StopTransactionOnEVSideDisconnect": true, | ||
"StopTransactionOnInvalidId": true, | ||
"StopTxnAlignedData": "Energy.Active.Import.Register", | ||
"StopTxnSampledData": "Energy.Active.Import.Register", | ||
"SupportedFeatureProfiles": "Core,FirmwareManagement,RemoteTrigger,Reservation,LocalAuthListManagement,SmartCharging,CostAndPrice", | ||
"TransactionMessageAttempts": 5, | ||
"TransactionMessageRetryInterval": 1, | ||
"UnlockConnectorOnEVSideDisconnect": true | ||
}, | ||
"FirmwareManagement": { | ||
"SupportedFileTransferProtocols": "FTP" | ||
}, | ||
"Security": { | ||
"CpoName": "Pionix", | ||
"AuthorizationKey": "AABBCCDDEEFFGGHH", | ||
"SecurityProfile": 0, | ||
"AdditionalRootCertificateCheck": true | ||
}, | ||
"LocalAuthListManagement": { | ||
"LocalAuthListEnabled": true, | ||
"LocalAuthListMaxLength": 42, | ||
"SendLocalListMaxLength": 42 | ||
}, | ||
"CostAndPrice": { | ||
"CustomDisplayCostAndPrice": true, | ||
"NumberOfDecimalsForCostValues": 4, | ||
"DefaultPrice": | ||
{ | ||
"priceText": "This is the price", | ||
"priceTextOffline": "Show this price text when offline!", | ||
"chargingPrice": | ||
{ | ||
"kWhPrice": 3.14, | ||
"hourPrice": 0.42 | ||
} | ||
}, | ||
"DefaultPriceText": | ||
{ | ||
"priceTexts": | ||
[ | ||
{ | ||
"priceText": "This is the price", | ||
"priceTextOffline": "Show this price text when offline!", | ||
"language": "en" | ||
}, | ||
{ | ||
"priceText": "Dit is de prijs", | ||
"priceTextOffline": "Laat dit zien wanneer de charging station offline is!", | ||
"language": "nl" | ||
}, | ||
{ | ||
"priceText": "Dette er prisen", | ||
"priceTextOffline": "Vis denne pristeksten når du er frakoblet", | ||
"language": "nb_NO" | ||
} | ||
] | ||
}, | ||
"TimeOffset": "00:00", | ||
"NextTimeOffsetTransitionDateTime": "2024-01-01T00:00:00", | ||
"TimeOffsetNextTransition": "01:00", | ||
"CustomIdleFeeAfterStop": false, | ||
"SupportedLanguages": "en, nl, de, nb_NO", | ||
"CustomMultiLanguageMessages": true, | ||
"Language": "en" | ||
}, | ||
"Reservation": { | ||
"ReserveConnectorZeroSupported": true | ||
} | ||
} |
Oops, something went wrong.