summaryrefslogtreecommitdiffstats
path: root/roles/openshift_certificate_expiry/library
Commit message (Collapse)AuthorAgeFilesLines
* Update openshift_cert_expiry for py3 support.Andrew Butcher2017-08-011-34/+14
|
* Fix parsing certs with very large serial numbersTim Bielawa2017-06-231-2/+19
| | | | | | | | | | | 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-2/+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.
* Use ansible.compat.six where possibleJason DeTiberus2017-03-091-2/+3
|
* Use six from ansible.module_utils for remote hostsJason DeTiberus2017-03-091-1/+1
|
* test fixes for openshift_certificates_expiryJason DeTiberus2017-03-021-74/+42
| | | | | | | | | | | | | | - 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-3/+6
|
* Implement fake openssl cert classesTim Bielawa2017-02-211-16/+181
|
* [Cert Expiry] Add serial numbers, include example PBs, docsTim Bielawa2017-01-171-8/+27
| | | | | | | | * Now includes cert serial numbers in JSON and HTML output * Docs are updated with explicit usage instructions * Each example playbook includes a link to the playbook and an example of how to run it * A graphic and copy of an HTML report are now included * Example JSON output has been updated
* More toxificationJason DeTiberus2017-01-101-11/+14
| | | | | | | | | | | | - Move pylint tests to tox - Move yamllint tests to tox - Create separate tox config (and setup.py) for root - bump ansible requirement - unify pylint config - add docs - remove git directory containing old testing tools - install python-six if not present for openshift-facts - add python-six as a dependency for openshift-ansible-utils
* python3 support, add tox for better local testing against multiple python ↵Jason DeTiberus2016-12-201-4/+8
| | | | versions
* Check embedded etcd certs now, tooTim Bielawa2016-12-151-4/+44
| | | | | * Addresses RFE in https://bugzilla.redhat.com/show_bug.cgi?id=1389264
* Include 'total' and 'ok' in check resultsTim Bielawa2016-12-151-1/+2
| | | | * Addresses https://bugzilla.redhat.com/show_bug.cgi?id=1389263
* update tests and flake8/pylint fixesJason DeTiberus2016-11-291-1/+2
|
* Don't freak out if the oc command doesn't exist.Tim Bielawa2016-10-201-0/+6
|
* Make the json template filter-driven.Tim Bielawa2016-10-201-10/+8
|
* Clean up lint and other little things (polish++)Tim Bielawa2016-10-201-6/+3
| | | | | | * Fix code lint * Prefix role variables with the role name per best practices * Add words to README
* Fix playbooks, update readme, update default varsTim Bielawa2016-10-201-6/+7
| | | | | | Fix 'make ci' system Add examples
* Refactor into a roleTim Bielawa2016-10-201-0/+635