Projet

Général

Profil

0006-python-Skip-the-DSA-key-test-unless-SHA-1-is-configu.patch

Jakub Hrozek, 16 juin 2021 14:19

Télécharger (1,14 ko)

Voir les différences:

Subject: [PATCH 6/6] python: Skip the DSA key test unless SHA-1 is configured

lasso supports DSA-XXX only with SHA-1. The alternative is to use
DSA-SHA256.
 bindings/python/tests/profiles_tests.py | 4 ++++
 1 file changed, 4 insertions(+)
bindings/python/tests/profiles_tests.py
276 276

  
277 277
    def test07(self):
278 278
        '''SAMLv2 SSO with DSA key for the IdP'''
279
        default_sign_meth = lasso.getDefaultSignatureMethod()
280
        if default_sign_meth != lasso.SIGNATURE_METHOD_RSA_SHA1:
281
            self.skipTest("This test requires that lasso is compiled with SHA1 as the default signature method")
282

  
279 283
        sp = lasso.Server(
280 284
            os.path.join(dataDir, 'sp5-saml2/metadata.xml'),
281 285
            os.path.join(dataDir, 'sp5-saml2/private-key.pem'))
282
-