summaryrefslogtreecommitdiffstats
path: root/tests/login_tests.c
diff options
context:
space:
mode:
authorFrederic Peters <fpeters@entrouvert.com>2004-12-14 11:01:04 +0000
committerFrederic Peters <fpeters@entrouvert.com>2004-12-14 11:01:04 +0000
commit4e55002eb2c43a39ca6eeaeb47103813bdc22c1a (patch)
treebcb5db65bf11c214096cc21be572f676ba0d3088 /tests/login_tests.c
parent9f5cc4a2872c3ed2c8b84a5e2a8a2ece9c472acc (diff)
downloadlasso-4e55002eb2c43a39ca6eeaeb47103813bdc22c1a.tar.gz
lasso-4e55002eb2c43a39ca6eeaeb47103813bdc22c1a.tar.xz
lasso-4e55002eb2c43a39ca6eeaeb47103813bdc22c1a.zip
updated test to new api
Diffstat (limited to 'tests/login_tests.c')
-rw-r--r--tests/login_tests.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/login_tests.c b/tests/login_tests.c
index 59335017..476da514 100644
--- a/tests/login_tests.c
+++ b/tests/login_tests.c
@@ -103,7 +103,8 @@ START_TEST(test02_serviceProviderLogin)
spLoginContext = lasso_login_new(spContext);
fail_unless(spLoginContext != NULL,
"lasso_login_new() shouldn't have returned NULL");
- rc = lasso_login_init_authn_request(spLoginContext, LASSO_HTTP_METHOD_REDIRECT);
+ rc = lasso_login_init_authn_request(spLoginContext, "https://idp1/metadata",
+ LASSO_HTTP_METHOD_REDIRECT);
fail_unless(rc == 0, "lasso_login_init_authn_request failed");
request = LASSO_LIB_AUTHN_REQUEST(LASSO_PROFILE(spLoginContext)->request);
fail_unless(LASSO_IS_LIB_AUTHN_REQUEST(request), "request should be authn_request");
@@ -112,7 +113,7 @@ START_TEST(test02_serviceProviderLogin)
request->consent = g_strdup(LASSO_LIB_CONSENT_OBTAINED);
relayState = "fake";
request->RelayState = g_strdup(relayState);
- rc = lasso_login_build_authn_request_msg(spLoginContext, "https://idp1/metadata");
+ rc = lasso_login_build_authn_request_msg(spLoginContext);
fail_unless(rc == 0, "lasso_login_build_authn_request_msg failed");
authnRequestUrl = LASSO_PROFILE(spLoginContext)->msg_url;
fail_unless(authnRequestUrl != NULL,