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 ISO15118-2 messages #5

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

Adding unit tests for ISO15118-2 messages #5

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

ISO15118-2

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 ISO-2 message.

Message Files Done
SessionSetupReq SessionSetupReq.zip
SessionSetupRes SessionSetupRes.zip
ServiceDiscoveryReq ServiceDiscoveryReq.zip
ServiceDiscoveryRes ServiceDiscoveryRes.zip
ServiceDetailReq
ServiceDetailRes
PaymentServiceSelectionReq PaymentServiceSelectionReq.zip
PaymentServiceSelectionRes PaymentServiceSelectionRes.zip
CertificateUpdateReq
CertificateUpdateRes
CertificateInstallationReq
CertificateInstallationRes
PaymentDetailsReq
PaymentDetailsRes
AuthorizationReq
AuthorizationRes
ChargeParameterDiscoveryReq
ChargeParameterDiscoveryRes
PowerDeliveryReq
PowerDeliveryRes
SessionStopReq
SessionStopRes
MeteringReceiptReq
MeteringReceiptRes
ChargingStatusReq
ChargingStatusRes
CableCheckReq
CableCheckRes
PreChargeReq
PreChargeRes
CurrentDemandReq
CurrentDemandRes
WeldingDetectionReq
WeldingDetectionRes

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

Attention: Not all EXI & XML messages uploaded yet

@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