citrineos-core
citrineos-core copied to clipboard
Certificate Part 4: Handle Get15118EVCertificateRequest
Changes
The PR is to implement the Get15118EVCertificateRequest handler which is based on description of use cases, M01 and M02 in OCPP 2.0.1 Part 2. It uses hubject to get the 15118 EV Certificate.
Tests
- Test parse the successful response body and get the exiResponse. (Since hubject does not provide a request example that can get a 200 response in its staging env, I did not manage to test the whole flow but manually inject the success response in the code to test the parsing.)
- Test get cert failed by giving the invalid schema version and hubject return 400 response.