Benjamin Dauvergne
af4c8de947
[tests] remove work-around for letting ID-FF 1.2 tests work with the thin-sessions flag activated
...
But when thin-sessions is activated we use the new way of passing artifact
message content around.
2011-12-23 11:09:47 +01:00
Benjamin Dauvergne
56d584ca69
[tests] protect the ID-FF 1.2 test cases from effect of the thin-sessions flag until it is migrated to work also with thin sessions
2011-12-22 18:22:12 +01:00
Benjamin Dauvergne
727f07b1ae
Simplify useless complexity in include paths
2011-12-16 14:17:31 +01:00
Benjamin Dauvergne
65b94cc1f5
[tests] improve checking for log output
...
- now any non expected log output is considered an error, by setting a
g_log default handler.
- block_lasso_logs()/unblock_lasso_logs() will block logging output at
the DEBUG level
- begin_check_do_log(level, message, endswith)/end_check_do_log() with
check that the only message emitted between the two macros is one
equals to "message" at the level "level", or ending (to work around
variable parts in a log message) with "message" if "endswith" is True.
2011-12-16 11:39:18 +01:00
Benjamin Dauvergne
c3467ed48c
[tests] rename login test suite, with mentions of ID-FF 1.2 and SAML 2.0
2011-12-16 11:39:18 +01:00
Benjamin Dauvergne
42ca33315d
[tests] use helper macros in id-ff test case
2011-12-05 12:03:31 +01:00
Benjamin Dauvergne
70562db09a
[tests] remove spurious output
2011-03-29 18:46:32 +02:00
Benjamin Dauvergne
ff065bf750
[tests] add test case for multiple load and dump of the same object
2011-03-01 10:58:53 +01:00
Benjamin Dauvergne
fc8c6d877e
[tests] include header for backward compatible methods on GHashTable structures
2010-11-17 13:53:07 +01:00
Benjamin Dauvergne
462c9a1cd0
[Core] replace all use of g_strcmp0 by lasso_strisequal and lasso_strisnotequal
...
Too much human errors with strcmp kind of functions. Also change name os
lasso_is_empty_string to lasso_strisempty.
2010-10-01 15:29:38 +02:00
Benjamin Dauvergne
a041a2ef81
Initialize all uninitialized rc variables
2010-04-30 09:23:01 +00:00
Benjamin Dauvergne
36c7b41fbd
Tests: add more checking to dump generation code in login_tests.c
2010-02-04 00:02:26 +00:00
Benjamin Dauvergne
27af878c2b
Tests: in tests/login_tests.c, change path of header utils.h
2010-01-04 09:14:36 +00:00
Benjamin Dauvergne
7231771856
All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF code
...
* nearly all C files: change includes for relative paths.
* lasso/id-wsf/id_wsf.h, lasso/id-wsf-2.0/id_wsf_2.h: add top level
public include files for ID-WSF 1.0 and ID-WSF 2.0.
* lasso/id-ff/server.*, lasso/id-ff/session.*, lasso/id-ff/identity.*:
remove most of the code related to ID-WSF and push into
lasso/id-wsf/id_ff_extensions.* and lasso/id-wsf-2.0/identity.c,
lasso/id-wsf-2.0/server.c, lasso/id-wsf-2.0/session.c.
* lasso/id-wsf-2.0/saml2_login.c,
lasso/id-wsf-2.0/saml2_login_private.h: same change but for ID-WSF
2.0 support in SAML2 SSO profile.
2009-08-26 15:14:32 +00:00
Benjamin Dauvergne
7e6dfb7683
Fix leaks in tests
...
* basic_tests.c:
* login_tests.c:
* login_tests_saml2.c:
* random_tests.c:
free replaced string, unref used nodes, initialize local variables
when necessary, free newly allocated strings.
2009-04-30 14:58:16 +00:00
Benjamin Dauvergne
3cd463c4a2
Core: add an header file for backward compatibility
...
* lasso/backward_comp.h:
this header will contain substitue function, defines or types for
compatibility with older versions of dependencies.
* lasso/utils.h:
remove declaration of g_strcmp0
* lasso.c:
* tests/login_tests.c:
use backward_comp.h
2009-04-14 07:51:22 +00:00
Benjamin Dauvergne
ff18983520
Tests&Core: add g_strcmp0 if glib is old
...
* lasso/utils.h:
if glib is older than 2.16, export g_strcmp0 as part of internal
headers, in order to use it in login_tests.c
* tests/login_tests.c:
include utils.h
2009-04-02 17:16:05 +00:00
Benjamin Dauvergne
70299b52ab
Test: add missing release of objects and memory
...
* tests/basic_tests.c:
* tests/login_tests.c:
* tests/metadata_tests.c:
* tests/random_tests.c:
* tests/tests.c:
add missing g_free and g_object_unref calls.
2009-03-27 15:06:25 +00:00
Benjamin Dauvergne
d85f440885
ID-FF 1.2 Tests: Add test for relaystate
...
* tests/login_tests.c:
- (test02_serviceProviderLogin) add assertion concerning the relaying
of the RelayState parameter during an SP initiated SSO.
2009-03-27 15:06:18 +00:00
Benjamin Dauvergne
b744d0be87
Test: Add test for testing new InResponseTo checking code
...
* tests/login_tests.c:
after first test of parsing the soap response message in the login
test, try to parse it a second time, after modifying the InResponseTo
id of the assertion and disabling signature checking.
2009-03-03 20:52:46 +00:00
Benjamin Dauvergne
aec50b7a93
Add test case for loading server completely from memory
...
* tests/login_test.c:
- add generateIdentityProviderContextDumpMemory that first load
metadata, private_key and certificate file using g_file_get_contents
then use the created buffers to initialize a LassoServer object.
- add test03_serviceProviderLogin that use the new function.
2008-11-02 11:49:59 +00:00
Benjamin Dauvergne
9ed0670e48
* Remove ending blanks
2008-09-12 15:06:58 +00:00
Damien Laniel
4fc6657e0c
updated Copyright dates in all files
2007-05-30 17:17:45 +00:00
Frédéric Péters
ad30e9574d
fixed memory leaks
2007-01-16 09:13:00 +00:00
Frédéric Péters
249c7f82c6
cleaning up memory allocated for tests; so valgrind logs are cleaner
2007-01-05 12:40:19 +00:00
Emmanuel Raviart
7a03e99b09
Updated Copyright and authors.
2005-01-22 15:57:56 +00:00
Frédéric Péters
ad056adf36
API change in Single Sign On profile (IdP side) to allow the developer to mess
...
with <lib:Assertion/>
Outlined in http://lists.labs.libre-entreprise.org/pipermail/lasso-devel/2004-December/001119.html
2004-12-14 19:20:20 +00:00
Frédéric Péters
4e55002eb2
updated test to new api
2004-12-14 11:01:04 +00:00
Frédéric Péters
d4de2d3b00
indentation leftovers
2004-11-25 22:59:25 +00:00
Frédéric Péters
2cab29a3c3
tests are ok
2004-11-15 11:12:24 +00:00
Frédéric Péters
0afb57c528
updated tests
2004-11-15 10:32:06 +00:00
Frédéric Péters
f13772d62d
Done with the move to structures and the removal of protocols/ (lasso branched
...
on October 2nd; occasional merges since then).
- Compatible with current souk test suites.
- Missing memory management for everything in xml/
- Missing xmlsec support for SOAP messages.
2004-10-27 09:49:13 +00:00
Emmanuel Raviart
892faf2693
Updated login C tests to new API for obtaining consent.
2004-09-30 20:55:22 +00:00
Emmanuel Raviart
54ec0c541d
Updated C tests to lasso_server_new new API.
2004-09-29 21:46:36 +00:00
Emmanuel Raviart
f1c8abcfdf
Updated to new API (but it doesn't work yet).
2004-09-22 16:58:35 +00:00
Emmanuel Raviart
76c318374d
Converted C login test to new login API.
2004-09-03 23:14:15 +00:00
Valery Febvre
5dc6f94ffd
Moved param 'http_method' of lasso_login_build_authn_request_msg() method
...
in lasso_login_init_authn_request()
BEWARE : this change breaks the API
2004-08-21 17:12:21 +00:00
Emmanuel Raviart
90f1e1f493
Added new argument to lasso_login_build_authn_request_msg.
2004-08-20 17:43:07 +00:00
Frédéric Péters
dd1a07059b
certs are not in builddir; take care of that
2004-08-19 21:11:18 +00:00
Frédéric Péters
956c94f23e
removed logout part from C test 2; it would work now.
...
But http://buildbox.entrouvert.org/logs/20040818/lupin.1820.changelog.xml
2004-08-19 09:19:58 +00:00
Frédéric Péters
10a9fd0b52
trying to fix login test 2
2004-08-14 13:04:55 +00:00
Emmanuel Raviart
cddb5d33da
Added metadata corresponding to new certificates.
...
Updated non regression tests to use these certificates and metadata.
2004-08-12 22:25:36 +00:00
Emmanuel Raviart
710b77536c
Slightly corrected C test.
2004-08-09 16:19:09 +00:00
Nicolas Clapies
638371bb15
replace load_request_msg() with process_request_msg(), process_request() with validate_request(), remove assertion of the authenticated principal in validate_request()
2004-08-03 15:27:26 +00:00
Valery Febvre
34938f2b40
update
2004-07-30 11:34:40 +00:00
Frédéric Péters
70cd9c3a7b
modularized tests; it is now possible to add more suites easily.
2004-07-28 15:54:14 +00:00
Frédéric Péters
349afc2dd6
fixed warnings
2004-07-27 11:35:26 +00:00
Emmanuel Raviart
db051a1a73
Removed obsolete logout method load_from_dump.
...
Upgraded some residual calls to login_new & logout_new.
Updated Java binding.
Java unit test works (and C too, but Python still doesn't).
2004-07-26 22:02:03 +00:00
Valery Febvre
002aab5821
*** empty log message ***
2004-07-26 18:19:16 +00:00
Frédéric Péters
20663807a8
added an XXX and a comment where I think the problem is. Developers; please
...
have a look.
2004-07-26 11:13:40 +00:00