SignonAuthSession *auth_session = signon_identity_create_session(idty,
"nonexisting",
&err);
-
fail_unless (auth_session != NULL, "Cannot create AuthSession object");
g_clear_error(&err);
identity = signon_identity_new_from_db (1, NULL);
fail_unless (identity != NULL, "Cannot create Identity object");
auth_session = signon_auth_session_new (identity,
- "nonexisting-method",
+ "ssotest",
&error);
fail_unless (auth_session != NULL, "Cannot create AuthSession object");
fail_unless (error == NULL);
signon_auth_session_process_async (auth_session,
session_data,
- "mech1",
+ "mechx",
NULL,
test_auth_session_process_failure_cb,
&error);
g_main_loop_run (main_loop);
fail_unless (error != NULL);
fail_unless (error->domain == SIGNON_ERROR);
- fail_unless (error->code == SIGNON_ERROR_METHOD_NOT_KNOWN);
+ fail_unless (error->code == SIGNON_ERROR_MECHANISM_NOT_AVAILABLE);
g_object_unref (auth_session);
g_object_unref (identity);