smartdevicelink / sdl_core

SmartDeviceLink In-Vehicle Software and Sample HMI
BSD 3-Clause "New" or "Revised" License
240 stars 245 forks source link

Fix/Update Expired Certificates used in unit tests #3950

Closed ShobhitAd closed 1 year ago

ShobhitAd commented 1 year ago

This PR is ready for review.

Risk

This PR makes no API changes.

Testing Plan

Re-run Unit tests

Summary

Currently the following unit test is failing.

Uninteresting mock function call - taking default action specified at:
/home/bits/SDL/release/sdl_core/src/components/transport_manager/test/websocket_server_listener_test.cc:88:
    Function call: websocket_server_port()
          Returns: 2021
Stack trace:
ErrorMessage: certificate verify failed
[       OK ] WebSocketListenerTest.StartListening_ClientConnectSecureInvalidCert_FAIL (4 ms)
[ RUN      ] WebSocketListenerTest.StartListening_CertificateNotFound_Fail

The failure seems to be caused by the expired test certs

~/SDL/release/sdl_core$ cat src/components/transport_manager/test/test_certs/server-cert.pem | openssl x509 -noout -enddate
notAfter=Oct  6 14:33:36 2022 GMT

CLA