diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-06-02 21:33:25 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2015-06-02 21:33:25 +0200 |
commit | 5003a5f588fa6ef6c2f43679f975635cb7eda6df (patch) | |
tree | 8fc75b8d9aa599de3d8854d4f92af50599314e4e /tests/test_40_sigver.py | |
parent | 9c2b951be6a830aa4d165821ea4f0d7f245221f2 (diff) | |
parent | f90d66356498eb51f272102f98be829a8b935374 (diff) | |
download | pysaml2-5003a5f588fa6ef6c2f43679f975635cb7eda6df.tar.gz |
Merge pull request #228 from HaToHo/master
New metadata configuration for encryption. With the keys in the test folder and full path.
Diffstat (limited to 'tests/test_40_sigver.py')
-rw-r--r-- | tests/test_40_sigver.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/tests/test_40_sigver.py b/tests/test_40_sigver.py index fd40cbeb..993532bd 100644 --- a/tests/test_40_sigver.py +++ b/tests/test_40_sigver.py @@ -25,6 +25,8 @@ SIMPLE_SAML_PHP_RESPONSE = full_path("simplesamlphp_authnresponse.xml") PUB_KEY = full_path("test.pem") PRIV_KEY = full_path("test.key") +ENC_PUB_KEY = full_path("pki/test_1.crt") +ENC_PRIV_KEY = full_path("pki/test.key") def _eq(l1, l2): return set(l1) == set(l2) @@ -96,6 +98,8 @@ class FakeConfig(): metadata = None cert_file = PUB_KEY key_file = PRIV_KEY + encryption_keypairs = [{"key_file": ENC_PRIV_KEY, "cert_file": ENC_PUB_KEY}] + enc_key_files = [ENC_PRIV_KEY] debug = False cert_handler_extra_class = None generate_cert_func = None @@ -503,8 +507,8 @@ def test_xmlsec_err(): if __name__ == "__main__": - # t = TestSecurity() - # t.setup_class() - # t.test_non_verify_2() + t = TestSecurity() + t.setup_class() + t.test_verify_1() - test_xmlsec_err() + #test_xmlsec_err() |