Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding unit tests for DIN70121 messages #4

Open
SebaLukas opened this issue Mar 8, 2024 · 0 comments
Open

Adding unit tests for DIN70121 messages #4

SebaLukas opened this issue Mar 8, 2024 · 0 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@SebaLukas
Copy link
Collaborator

SebaLukas commented Mar 8, 2024

ISO Version

DIN70121

Describe the problem

It would be very useful for the library to have unit tests for each V2G message.

In the following table you will find the XML file and the corresponding EXI stream for each DIN message.

Message Files Done
SessionSetupReq SessionSetupReq.zip ✔️
SessionSetupRes
ServiceDiscoveryReq ServiceDiscoveryReq.zip ✔️
ServiceDiscoveryRes ServiceDiscoveryRes.zip ✔️
ServicePaymentSelectionReq ServicePaymentSelectionReq.zip
ServicePaymentSelectionRes ServicePaymentSelectionRes.zip
ContractAuthenticationReq ContractAuthenticationReq.zip
ContractAuthenticationRes ContractAuthenticationRes.zip
ChargeParameterDiscoveryReq ChargeParameterDiscoveryReq.zip
ChargeParameterDiscoveryRes ChargeParameterDiscoveryRes.zip
CableCheckReq CableCheckReq.zip
CableCheckRes CableCheckRes.zip
PreChargeReq PreChargeReq.zip
PreChargeRes PreChargeRes.zip
PowerDeliveryReq PowerDeliveryReq.zip
PowerDeliveryRes PowerDeliveryRes.zip
CurrentDemandReq CurrentDemandReq.zip
CurrentDemandRes CurrentDemandRes.zip
WeldingDetectionReq WeldingDetectionReq.zip
WeldingDetectionRes WeldingDetectionRes.zip
SessionStopReq SessionStopReq.zip
SessionStopRes SessionStopRes.zip

Describe your solution

Create for every message a encode and decode test with the help of XML and EXI messages.

A sample of how the tests can be written can be found in the tests/app_handshake folder.

Additional context

@SebaLukas SebaLukas added enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed labels Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant