summaryrefslogtreecommitdiffstats
path: root/roles/openshift_certificate_expiry/test
Commit message (Collapse)AuthorAgeFilesLines
* Fix parsing certs with very large serial numbersTim Bielawa2017-06-231-1/+4
| | | | | | | | | | | Certificates with large serial numbers (such as those from commercial vendors) previously failed to parse due to absent logic in the FakeOpenSSLCertificate parser. This would cause the module to abort and break any other roles depending on the cert expiry checking results. * Identifies large serials in HEX format for decimal conversion * Update unit tests to parse a large serial
* Fix test compatibility with OpenSSL 1.1.0Pierre-Louis Bonicoli2017-04-281-1/+2
| | | | | | Since OpenSSL 1.1.0, default name options ('oneline') for 'x509' command include 'space_eq'. Explicitly enable 'oneline' in order to have one behaviour with all versions.
* test fixes for openshift_certificates_expiryJason DeTiberus2017-03-027-275/+247
| | | | | | | | | | | | | | - create pytest fixtures for building certs at runtime - update tests to use the fixtures - add tests for load_and_handle_cert - fix py2/py3 encode/decode issues raised by tests - add get_extension_count method to fakeOpenSSLCertificate - avoid using a temp file for passing ssl certificate to openssl subprocess - other test tweaks: - exclude conftest.py and tests from coverage report - reduce the fail_under to 26%, since the tests being included were inflating our coverage
* Address cert expiry parsing review commentsTim Bielawa2017-02-211-5/+1
|
* Implement fake openssl cert classesTim Bielawa2017-02-215-0/+304