summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-08-14 13:04:55 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-08-14 13:04:55 +0000
commit10a9fd0b529e0fc5a45a161f310c65c0467cf436 (patch)
tree496f48f5637eff955cb9c666c01e360026b583c3 /tests
parent09a8899c801fffb67c955c083498ea11aca62bba (diff)
downloadlasso-10a9fd0b529e0fc5a45a161f310c65c0467cf436.tar.gz
lasso-10a9fd0b529e0fc5a45a161f310c65c0467cf436.tar.xz
lasso-10a9fd0b529e0fc5a45a161f310c65c0467cf436.zip
trying to fix login test 2
Diffstat (limited to 'tests')
-rw-r--r--tests/login_tests.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/login_tests.c b/tests/login_tests.c
index 2a460529..b0bda292 100644
--- a/tests/login_tests.c
+++ b/tests/login_tests.c
@@ -96,6 +96,7 @@ START_TEST(test02_serviceProviderLogin)
char *idpIdentityContextDump;
char *soapResponseMsg;
char *spIdentityContextDump, *spIdentityContextDumpTemp;
+ char *spSessionDump;
int requestType;
serviceProviderContextDump = generateServiceProviderContextDump();
@@ -184,6 +185,7 @@ START_TEST(test02_serviceProviderLogin)
"spLoginContext has no identity");
spIdentityContextDump = lasso_identity_dump(LASSO_PROFILE(spLoginContext)->identity);
fail_unless(spIdentityContextDump != NULL, "lasso_identity_dump failed");
+ spSessionDump = lasso_session_dump(LASSO_PROFILE(spLoginContext)->session);
/* Service provider logout */
lasso_server_destroy(spContext);
@@ -191,9 +193,11 @@ START_TEST(test02_serviceProviderLogin)
spContext = lasso_server_new_from_dump(serviceProviderContextDump);
spLogoutContext = lasso_logout_new(spContext, lassoProviderTypeSp);
+ fail_unless(spLogoutContext != NULL, "spLogoutContext should not be NULL");
lasso_profile_set_identity_from_dump(LASSO_PROFILE(spLogoutContext),
spIdentityContextDump);
- fail_unless(spLogoutContext != NULL, "spLogoutContext should not be NULL");
+ lasso_profile_set_session_from_dump(LASSO_PROFILE(spLogoutContext),
+ spSessionDump);
spIdentityContextDump = lasso_identity_dump(LASSO_PROFILE(spLogoutContext)->identity);
fail_unless(spIdentityContextDump != NULL, "spIdentityContextDump should not be NULL");
rc = lasso_logout_init_request(spLogoutContext, NULL);