certifi / erlang-certifi

SSL Certificates for Erlang
Other
131 stars 33 forks source link

Introduced fixed certificates for tests #51

Open dw-kihara opened 4 months ago

dw-kihara commented 4 months ago

I discovered the tests were failing because the tests check the contents of certificates, which changes frequently. To address this, I introduced cacerts_test_data/0 which returns the fixed certificates for testing.

Although cacerts/0 could return the fixed certificats during tests, I kept it to return the content of priv/cacerts.pem to ensure it provides the correct certificates.

I also modified certifi_pt.erl to transform both functions and to make Dialyzer happy.