diff options
author | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-09-29 22:08:53 +0000 |
---|---|---|
committer | Emmanuel Raviart <eraviart@entrouvert.com> | 2004-09-29 22:08:53 +0000 |
commit | c8a821afef28d840ea54fca549c01b437101ae34 (patch) | |
tree | 13ca16f3dbd465d335dfdbe3afb522102778d9ae /python | |
parent | 54ec0c541d41b7f1512bd252fa0b5dfffdb86a04 (diff) | |
download | lasso-c8a821afef28d840ea54fca549c01b437101ae34.tar.gz lasso-c8a821afef28d840ea54fca549c01b437101ae34.tar.xz lasso-c8a821afef28d840ea54fca549c01b437101ae34.zip |
Updates Python tests to new Lasso API.
Diffstat (limited to 'python')
-rw-r--r-- | python/tests/errorchecking_tests.py | 7 | ||||
-rwxr-xr-x | python/tests/profiles_tests.py | 40 |
2 files changed, 19 insertions, 28 deletions
diff --git a/python/tests/errorchecking_tests.py b/python/tests/errorchecking_tests.py index a27ee9ec..01a35b71 100644 --- a/python/tests/errorchecking_tests.py +++ b/python/tests/errorchecking_tests.py @@ -61,13 +61,12 @@ class ErrorCheckingTestCase(unittest.TestCase): # initFromAuthnRequestMsg; surely it shouldn't segfault server = lasso.Server( os.path.join(dataDir, 'idp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'idp1-la/public-key.pem') is no more used os.path.join(dataDir, 'idp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'idp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'idp1-la/certificate.pem')) login = lasso.Login(server) try: - login.initFromAuthnRequestMsg("", lasso.httpMethodRedirect) + login.processAuthnRequestMsg("", lasso.httpMethodRedirect) except lasso.Error: pass diff --git a/python/tests/profiles_tests.py b/python/tests/profiles_tests.py index bfbbd79e..9607a7e1 100755 --- a/python/tests/profiles_tests.py +++ b/python/tests/profiles_tests.py @@ -48,10 +48,9 @@ class ServerTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'sp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'sp1-la/public-key.pem') is no more used os.path.join(dataDir, 'sp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'sp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'sp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'idp1-la/metadata.xml'), os.path.join(dataDir, 'idp1-la/public-key.pem'), @@ -78,10 +77,9 @@ class LoginTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'sp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'sp1-la/public-key.pem') is no more used os.path.join(dataDir, 'sp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'sp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'sp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'idp1-la/metadata.xml'), os.path.join(dataDir, 'idp1-la/public-key.pem'), @@ -98,10 +96,9 @@ class LogoutTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'sp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'sp1-la/public-key.pem') is no more used os.path.join(dataDir, 'sp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'sp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'sp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'idp1-la/metadata.xml'), os.path.join(dataDir, 'idp1-la/public-key.pem'), @@ -120,10 +117,9 @@ class LogoutTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'idp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'idp1-la/public-key.pem') is no more used os.path.join(dataDir, 'idp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'idp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'idp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'sp1-la/metadata.xml'), os.path.join(dataDir, 'sp1-la/public-key.pem'), @@ -136,10 +132,9 @@ class LogoutTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'idp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'idp1-la/public-key.pem') is no more used os.path.join(dataDir, 'idp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'idp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'idp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'sp1-la/metadata.xml'), os.path.join(dataDir, 'sp1-la/public-key.pem'), @@ -158,10 +153,9 @@ class LogoutTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'idp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'idp1-la/public-key.pem') is no more used os.path.join(dataDir, 'idp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'idp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'idp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'sp1-la/metadata.xml'), os.path.join(dataDir, 'sp1-la/public-key.pem'), @@ -180,10 +174,9 @@ class LogoutTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'idp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'idp1-la/public-key.pem') is no more used os.path.join(dataDir, 'idp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'idp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'idp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'sp1-la/metadata.xml'), os.path.join(dataDir, 'sp1-la/public-key.pem'), @@ -196,10 +189,9 @@ class DefederationTestCase(unittest.TestCase): lassoServer = lasso.Server( os.path.join(dataDir, 'idp1-la/metadata.xml'), - None, # os.path.join(dataDir, 'idp1-la/public-key.pem') is no more used os.path.join(dataDir, 'idp1-la/private-key-raw.pem'), - os.path.join(dataDir, 'idp1-la/certificate.pem'), - lasso.signatureMethodRsaSha1) + None, + os.path.join(dataDir, 'idp1-la/certificate.pem')) lassoServer.addProvider( os.path.join(dataDir, 'sp1-la/metadata.xml'), os.path.join(dataDir, 'sp1-la/public-key.pem'), |