diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2017-02-21 20:23:34 -0500 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2017-03-02 12:13:47 -0500 |
commit | 293f18593307f5a90890848d77c439b3d3f1dd0d (patch) | |
tree | 013cc0534f852eb587387734745a97023d7dfb52 /.coveragerc | |
parent | 5a91f31b65a4bb0ec524aee9ba1c6d4e4030d8d2 (diff) | |
download | openshift-293f18593307f5a90890848d77c439b3d3f1dd0d.tar.gz openshift-293f18593307f5a90890848d77c439b3d3f1dd0d.tar.bz2 openshift-293f18593307f5a90890848d77c439b3d3f1dd0d.tar.xz openshift-293f18593307f5a90890848d77c439b3d3f1dd0d.zip |
test fixes for openshift_certificates_expiry
- 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
Diffstat (limited to '.coveragerc')
-rw-r--r-- | .coveragerc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/.coveragerc b/.coveragerc index 1e819e157..6f33e0bfe 100644 --- a/.coveragerc +++ b/.coveragerc @@ -8,11 +8,12 @@ omit = # TODO(rhcarvalho): this is used to ignore test files from coverage report. # We can make this less generic when we stick with a single test pattern in # the repo. - test_*.py - *_tests.py + */conftest.py + */test_*.py + */*_tests.py [report] -fail_under = 28 +fail_under = 26 [html] directory = cover |