summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Tests: add macros to test for string equalityBenjamin Dauvergne2010-03-271-0/+12
|
* Tests: in SAML 2.0 tests, use more check_ macrosBenjamin Dauvergne2010-03-271-68/+46
|
* Tests: add macros check_equals and check_not_equalsBenjamin Dauvergne2010-03-271-0/+14
|
* ID-WSF 2.0: reorganize EPR minting, add a process_request method to disco ↵Benjamin Dauvergne2010-02-221-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | service * data_service.c: remove dependency on discovery.h * discovery.{c,h}: - add a lasso_idwsf2_discovery_process_request_msg to extract request data before validate request (SvcMDID, SvcMD or RequestService). - store SvcMDID in a private field, add a setter for it. - SvcMDID is now used for building response to MDAssociationQuery and parsing request for MDQuery, MDDelete, MDAssociationAdd and MDAssociationDelete. * idwsf2_helper.{c,h}: - change security mechanism argument of lasso_wsa_endpoint_reference_add_security_token from a NULL terminated string array to a GList. * saml2_login.{c,h}: - add a lasso_server_create_assertion_as_idwsf2_security_token for minting assertion for ID-WSF 2.0 security, to be used in Discovery bootstap EPR creation and EPR minting for Discovery service Query responses. - add a lasso_saml2_assertion_get_discovery_bootstrap_epr, and rewirte lasso_login_idwsf2_get_discovery_bootstrap_epr to use it. - make lasso_login_idwsf2_add_discovery_bootstrap_epr accept a list of security mechanisms, not just one. * tests/idwsf2_tests.c: - adapt to new argument type of lasso_login_idwsf2_add_discovery_bootstrap_epr.
* Fix idp5-saml2 metadatasBenjamin Dauvergne2010-02-221-11/+22
| | | | | | * tests/data/idp5-saml2/metadata.xml: we do not have the private key for the encryption public key, so I copied the signing public key.
* Tests integration: force C localeBenjamin Dauvergne2010-02-171-0/+1
| | | | | | * tests/integration/saml2/__init__.py: authentic now use 'system locale' by default, so force C locale to get english IHM string to make twill happy.
* Tests: in login_tests_saml2.c, add test for ↵Benjamin Dauvergne2010-02-171-0/+10
| | | | lasso_saml2_assertion_validate_conditions
* SAML 2.0: when verifying query signature, do not presume order of field and ↵Benjamin Dauvergne2010-02-102-1/+49
| | | | | | | | | | | | | | separator * lasso/xml/tools.c: in lasso_saml2_verify_query_signature, extract needed field and order them appropriately before computing digest, expect ';' as well as '&' as separator. * tests/random_test.c: add non-regression tests for query signature validation. * tests/Makefile.am: make tests link agains static version of liblasso, to get access to private functions.
* Propagate change of name for LASSO_PP_ definesBenjamin Dauvergne2010-02-101-8/+8
|
* Core: Finish support for all XMLDsig key formatsBenjamin Dauvergne2010-02-043-1/+38
| | | | | | | | | | | | | | | * lasso/xml/tools.c: xmlsec is not able to load a certificate public key without checking it against trusted root certificate, so we must work around and load the key by hand. lasso_xmlsec_load_private_key_from_buffer is made more robust in the same (loading of the key was extracted inside _lasso_xmlsec_load_key_from_buffer) and now can load certificates and keys directly embedded inside KeyValue nodes (in total opposition to the XMLDsig specification but...), with or without PEM headers. * tests/metadata/Makefile.am tests/metadata/metadata_06.xml tests/metadata_tests.c: add test case for RSAKeyValue public keys.
* Tests: add more checking to dump generation code in login_tests.cBenjamin Dauvergne2010-02-041-5/+9
|
* Tests: adapt server constructor settings to recent changesBenjamin Dauvergne2010-02-041-2/+7
|
* Tests: in valgrind suppressions file add more GLib suppressionsBenjamin Dauvergne2010-02-041-0/+117
|
* Tests: in basic_tests.c, re-enable parsing of LassoWsuTimestamp objectsBenjamin Dauvergne2010-02-041-5/+1
|
* Fix leaksBenjamin Dauvergne2010-02-042-0/+2
| | | | | | | | | | | * lasso/id-wsf-2.0/profile.c: release private data object. * lasso/saml-2.0/login.c: free NameID content after construction. * lasso/xml/tools.c: free algorithm attribute content in lasso_node_decrypt_xmlnode. * lasso/xml/xml.c: release cutom_element->nodename in destructor. remove useless finalize method. * tests/basic_tests.c: release xmldoc after use. * tests/random_tests.c: free resut of lasso_node_dump.
* Tests: export sp2-la do dist file for dist with id-wsf enabledBenjamin Dauvergne2010-01-281-1/+1
|
* fix typoBenjamin Dauvergne2010-01-181-1/+0
|
* Merge EXTRA_DIST declarations in tests/Makefile.amBenjamin Dauvergne2010-01-181-3/+2
|
* Add tests/valgrind to dist tarballsBenjamin Dauvergne2010-01-181-0/+2
|
* Tests integration: remove save_html hooks, after fed termination logout ↵Benjamin Dauvergne2010-01-142-6/+7
| | | | button should still be there
* Tests SAML2: use & test encryptionBenjamin Dauvergne2010-01-121-11/+16
|
* Tests: fix inclusion of id-wsf 2.0 testsBenjamin Dauvergne2010-01-121-5/+7
|
* Tests: add idwsf2_tests.c, call from tests.c, update Makefile.amBenjamin Dauvergne2010-01-044-2/+291
|
* Tests: in tests/login_tests.c, change path of header utils.hBenjamin Dauvergne2010-01-041-1/+1
|
* Tests: in basic_tests.c, fix, do not overwrite known elements mappingsBenjamin Dauvergne2010-01-041-4/+5
| | | | | | | | | * tests/basic_tests.c: when testing functionality of lasso registries which map namespace elements to lasso objects, do not use liberty namespace because it interacts with other tests -- deserialization of lib:Assertion node was broken by this test -- when running them in CK_FORK=no mode. Changed namespace LASSO_LIB_HREF, for "coin" which is less dangerous.
* Tests: in basic_tests.c, check LassoSaml2EncryptedElement handlingBenjamin Dauvergne2010-01-041-0/+32
|
* in tests/tests.h, Add checks for true and false conditionsBenjamin Dauvergne2009-12-081-4/+10
|
* Add SP initiated logout test to SAML 2.0 regression testsBenjamin Dauvergne2009-12-013-1/+85
| | | | | | | | | * tests/login_tests_saml2.c: add logout to first SAML 2.0 login regression test. * tests/tests.h: add macros to simplify checking of return value with check macros (encapsulate fail_unless macro to check for NULL/non-NULL values and good rc value (0) or expected bad value).
* Tests: fix __FILE__ -> __file__Benjamin Dauvergne2009-10-301-1/+1
| | | | | * tests/integration/saml2/__init__.py: path to the current python file is __file__ not __FILE__.
* Tests: add a test of NameIDFormat extractionBenjamin Dauvergne2009-09-292-0/+24
| | | | | | | | - tests/basic_test.c: add test11_get_default_name_id_format which parse a metadata file and try to extract the default name id format. - tests/data/sp5-saml2/metadata.xml: add NameIDFormat node for testing.
* Tests: add more assertion to random testBenjamin Dauvergne2009-09-111-3/+44
| | | | | * tests/random_tests.c: add more assertion testing for various return values or field values.
* XML: Fix seg-fault bug introduced in commit 4108Benjamin Dauvergne2009-09-111-1/+1676
| | | | | | | | | * lasso/xml/xml.c: lasso_node_get_xmlnode_for_any_type is broken, if no original_xmlnode is present, return just cur. Also add all missing cases for the state of the pair (cur, orignal_xmlnode). * tests/basic_tests.c: add a non-regression test, testing all dump/restore functions.
* Test: fix Makefile.am to work with 'out of source' build directoryBenjamin Dauvergne2009-09-111-3/+3
| | | | | * tests/Makefile.am: rpath must refer to the build directory, not the source directory.
* Tests: add configuration file loading to integration testBenjamin Dauvergne2009-08-272-13/+52
| | | | | | | | | | | | * tests/integration/README: * tests/integration/saml2/__init__.py: If ~/.config/lasso_integration.conf exists, load it to find path to authentic and lcs. Add support for three environement variables: - LASSO_BUILDDIR, to specify an out of source build directory to test, - NO_SILENT, to allow authentic and lcs outputs, - VALGRIND, to check memory leaks using valgrind.
* Tests: in integration test do not set the PYTHONPATHBenjamin Dauvergne2009-08-261-1/+0
| | | | | | | * tests/integration/saml2/__init__.py: to permit using build directory different from the src directory, do not force the PYTHONPATH to be relative to src dir to find lasso python module.
* Tests: do not hardcode PYTHONPATH in the valgrind wrapperBenjamin Dauvergne2009-08-261-1/+1
| | | | * tests/integration/valgrind-wrapper.sh: remove PYTHONPATH setting.
* Tests: distribute integration testsBenjamin Dauvergne2009-08-261-1/+1
| | | | | * tests/Makefile.am: add integration directory to the distdir.
* Tests: Add data files to EXTRA_DISTBenjamin Dauvergne2009-08-261-1/+1
| | | | | * tests/data/Makefile.am: data file for tests2 were missing (to pass distcheck).
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-267-17/+17
| | | | | | | | | | | | | * 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.
* Tests: allow tests2 to pass distcheckBenjamin Dauvergne2009-08-262-8/+7
| | | | | | | | * tests/Makefile.am add an SRCDIR symbol. remove unused include paths. * tests/tests2.c: use SRCDIR to find data files.
* Tests: remove internal content from data filesBenjamin Dauvergne2009-08-261-6/+4
| | | | | | | * tests/data/response-3: this dump of a SAML message contains elements and attribute outside the SAML schema, implementation detail from Lasso. They broke execution of tests/tests2.
* Tests: Add a fourth data loading testBenjamin Dauvergne2009-08-262-0/+60
| | | | | * tests/data/response-4: test content * tests/tests2.c: add loading of the new file.
* Add valgrind support to integration testsBenjamin Dauvergne2009-04-302-6/+41
| | | | | | * tests/integration/saml2/__init__.py: if /usr/bin/valgrind exist, use script valgrind-wrapper.sh to launch tests, it stores log files in {authentic,lcs}_$ISODATE_pid$PID.log.
* Fix leaks in testsBenjamin Dauvergne2009-04-304-41/+54
| | | | | | | | | * 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.
* Add a script to format suppression fileBenjamin Dauvergne2009-04-301-0/+43
| | | | | | * tests/format-suppressions.py: this is the script used to generate valgrind/lasso.supp and valgrind/glib.supp.
* Add a stress test for serializing/deserializing codeBenjamin Dauvergne2009-04-305-2/+201
| | | | | | | | | | | * Makefile.am: add targets * tests2.c: this simple makes lots of serializing, deserializing. * data/response-1: * data/response-2: * data/response-3: data test files
* Add new valgrind memleak suppression filesBenjamin Dauvergne2009-04-302-0/+468
| | | | | | | | | | * tests/valgrind/glib.supp: suppress all "static" allocation by glib, usually for the type system. * tests/valgrind/lasso.supp: suppress allocations from lasso that we cannot actually remove, they are all from "called only once" code, so it should not really be a problem for embedded codes.
* Increase wait time for integration testBenjamin Dauvergne2009-04-271-1/+1
| | | | | * tests/integration/saml2/__init__.py: wait 5 seconds for dameons to start.
* Test: Remove spurious debugging printfBenjamin Dauvergne2009-04-271-2/+0
| | | | | * tests/login_tests_saml2.c: remove debug code.
* Tests: Add test parsing a Ping Federate assertion.Benjamin Dauvergne2009-04-221-0/+19
| | | | | * tests/basic_tests.c: load data/response-1 and try to parse it.