pegleg/tests/unit
Tin Lam aa241081c9 Fix exception handling and add tests
Per [0], fernet decrypt can never throw an InvalidSignature exception as that
is re-raised as InvalidToken. This patch set corrects the handling of the
exception, and added additional unit tests for coverage.

[0] https://cryptography.io/en/latest/fernet/#cryptography.fernet.Fernet.decrypt

Co-Authored-By: Drew Walters <drewwalters96@gmail.com>
Change-Id: Ic5ee7ef451a5657519c5397fc4b903b5adcb1d18
Signed-off-by: Tin Lam <tin@irrational.io>
2019-02-22 16:14:25 -06:00
..
engine Fix exception handling and add tests 2019-02-22 16:14:25 -06:00
__init__.py Standardize Pegleg directory structure 2018-09-23 10:33:40 -04:00
conftest.py refactor: Use temp path fixture to automatically clean up 2018-10-29 15:13:23 +00:00
fixtures.py pki: Port Promenade's PKI catalog into Pegleg 2019-01-15 13:29:21 -06:00
test_cli.py Add CLI generation of salt 2019-02-20 16:51:01 +00:00
test_exceptions.py Fix exception handling and add tests 2019-02-22 16:14:25 -06:00
test_utils.py tests: Increase test coverage for lint checks 2019-01-01 19:17:11 +00:00