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
Frédéric Péters
f0e695f21c
--dontfork mode for the tests (so it is easier to debug segfaults)
2004-07-26 10:48:17 +00:00
Frédéric Péters
3d67b7c87a
end of test port to C; developers, please test it (or the python login_tests;
...
results should be identical). There is a problem in memory management and
*sometimes* it works.
*Sometimes* it doesn't:
(process:12643): lasso-CRITICAL **: file xml.c: line 64 (lasso_node_copy):
assertion `LASSO_IS_NODE(node)' failed
(process:12643): lasso-CRITICAL **: file xml.c: line 1024
(lasso_node_impl_add_child): assertion `LASSO_IS_NODE(child)' failed
And *sometimes* it is even worse (segfault):
Running suite(s): Login
50%: Checks: 2, Failures: 0, Errors: 1
login_tests.c:81:P:Generate Server Contexts:test01_generateServersContextDumps:Passed
login_tests.c:229:E:Login initiated by service
provider:test02_serviceProviderLogin: (after this point) Received signal 11
I believe this is caused by something in
http://buildbox.entrouvert.org/logs/20040726/lupin.0320.changelog.xml
2004-07-26 10:16:10 +00:00
Frédéric Péters
341fb52a97
further in the unit test; pain pain pain.
2004-07-26 09:00:13 +00:00
Frédéric Péters
fa20471eb7
started to copy Python second test (serviceProviderLogin) in C. 1 hour and 38
...
lines so far and I should probably move to something or I'll get angry.
2004-07-26 08:01:33 +00:00
Frédéric Péters
a3a86229f7
check 0.9 no longer has suite_free(). And our local version got
...
srunner_set_xml()
2004-07-25 20:53:24 +00:00
Frédéric Péters
1893900d09
using check < http://check.sourceforge.net/ > for the test suite
...
(--enable-tests=no if you don't want them)
2004-07-24 18:00:16 +00:00
Emmanuel Raviart
eda0f459be
This is not a C unit test, but it can miracolously become one.
2004-07-24 16:41:19 +00:00