summaryrefslogtreecommitdiffstats
path: root/tests/basic_tests.c
Commit message (Collapse)AuthorAgeFilesLines
* tests: fix leaksBenjamin Dauvergne2014-06-081-0/+2
|
* tests: do not reuse tc_response_new_from_xmlNode test caseBenjamin Dauvergne2014-06-071-2/+6
|
* Fix license boilerplatesSimo Sorce2013-12-031-2/+1
| | | | | | | Instad of referring to an old FSF address, point the reader to the FSF website where the latest licenses and addresses are published. Signed-off-by: Simo Sorce <simo@redhat.com>
* fix compilation errors on 64bits architecturesBenjamin Dauvergne2013-09-081-1/+1
| | | | | * sizeof(unsigned int) != sizeof(size_t) * INT_MAX != LONG_MAX
* fix warnings about unused but set variablesBenjamin Dauvergne2013-09-081-2/+1
|
* tests: comment out dump/restore checks against complex nodesBenjamin Dauvergne2013-03-201-4/+4
|
* xml: really enforce elements cardinality when parsing messagesBenjamin Dauvergne2013-01-251-1/+17
| | | | | | | | - add a new SNIPPET_MANDATORY: we could only indicate 0-1 and 0-* cardinalities, now we can also indicate 1-1 and 1-* cardinalities. - repect cadinalities when parsing an xmlNode tree into a LassoNode tree.
* [tests] add test cases for the LassoKey classBenjamin Dauvergne2012-03-171-2/+0
|
* Simplify useless complexity in include pathsBenjamin Dauvergne2011-12-161-1/+1
|
* [tests] fix tests to comply with new implementation of parsingBenjamin Dauvergne2011-12-161-13/+33
| | | | | The test around parsing of EncryptedAssertion was wrong since it was missing the XMLEnc namespace declaration.
* [tests] improve checking for log outputBenjamin Dauvergne2011-12-161-0/+8
| | | | | | | | | | | - 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.
* [core] move XMLDsig related nodes in their own sub-library, add X509Data ↵Benjamin Dauvergne2011-12-161-0/+31
| | | | | | node implementation The goal is to use the KeyInfo structure as a transport format for our cryptographic keys
* [core] add a new class LassoKeyBenjamin Dauvergne2011-12-051-0/+30
| | | | | | LassoKey currenly store a LassoSignatureContext inside a reference-counted and bindable object. It will be used to export API around key management to bindings.
* [leakcheck] fix leaks seen by the unit testsBenjamin Dauvergne2011-11-221-4/+8
| | | | | This commit also improved valgrind suppression file to hide static allocations done by the GLib type system.
* [xml saml-2.0] add a class to handle the KeyInfoConfirmationData typeBenjamin Dauvergne2011-10-131-0/+4
| | | | | | * use a direct mapping to map this class to SubjectConfirmationData node having the xsi:type attribute. * overload get_xmlNode method to add the xsi:type attribute on output.
* Disable metadata loading test with the UK federation filesBenjamin Dauvergne2011-05-271-0/+5
|
* [tests] fix broken renater metadata fileBenjamin Dauvergne2011-05-171-3/+3
| | | | | A modification was introduced which broke the signature, updating to the last version.
* [tests] move renater metadata files into the metadata/ subdirectoryBenjamin Dauvergne2011-05-161-2/+2
|
* [core] add flags parameter to lasso_server_load_metadata to tune signature ↵Benjamin Dauvergne2011-04-141-1/+10
| | | | | | | | | | | | | | | checking on metadata files The flags parameter allows to control the checking of digital signature upon EntityDescriptor and EntitiesDescriptor nodes in SAML 2.0 metadata files. The default behaviour is to check all found signatures and to inherit signature from EntitiesDescriptor to their children. By only enabling checking of EntityDescrtiptor node signatures it's also possible to only check signature at the EntityDescriptor level and so only trust individual entities and not the aggregating provider.
* [core] rename lasso_server_load_federation to lasso_server_load_metadataBenjamin Dauvergne2011-04-041-10/+7
| | | | | | | The aim of this function is now to load any metadata file, and to replace completely the use of lasso_server_add_provider. The metadata content argument is replaced by a metadata file path to more closely match other APIs.
* [core] add a loaded_entity_ids output parameter to lasso_server_load_federationBenjamin Dauvergne2011-03-301-2/+6
| | | | | It allows to know which entity has been loaded from the metadata file. It must be freed by the caller.
* [core] add a blacklisted_entity_ids parameter to lasso_server_load_federationBenjamin Dauvergne2011-03-301-1/+3
| | | | The goal is to prevent loading of provider known to have problems.
* [tests] continue improving the lasso_server_load_federation test casesBenjamin Dauvergne2011-03-291-2/+4
|
* [tests] test lasso_server_load_federationBenjamin Dauvergne2011-03-291-0/+23
| | | | | The test operates on the metadata file of the french university network Renater.
* Test: only test custom namespace if ID-WSF is enabledBenjamin Dauvergne2010-04-301-1/+2
|
* Tests: add tests for custom namespace functionsBenjamin Dauvergne2010-04-061-0/+44
|
* Propagate change of name for LASSO_PP_ definesBenjamin Dauvergne2010-02-101-8/+8
|
* Tests: in basic_tests.c, re-enable parsing of LassoWsuTimestamp objectsBenjamin Dauvergne2010-02-041-5/+1
|
* Fix leaksBenjamin Dauvergne2010-02-041-0/+1
| | | | | | | | | | | * 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: add idwsf2_tests.c, call from tests.c, update Makefile.amBenjamin Dauvergne2010-01-041-0/+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
|
* Tests: add a test of NameIDFormat extractionBenjamin Dauvergne2009-09-291-0/+23
| | | | | | | | - 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.
* 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.
* All: Rework include files handling, separated ID-WSF code from SAML2/ID-FF codeBenjamin Dauvergne2009-08-261-3/+3
| | | | | | | | | | | | | * 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.
* Fix leaks in testsBenjamin Dauvergne2009-04-301-0/+1
| | | | | | | | | * 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.
* 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.
* Test: add missing release of objects and memoryBenjamin Dauvergne2009-03-271-0/+1
| | | | | | | | | * 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.
* All: Fix missing field initializer problemsBenjamin Dauvergne2009-01-241-0/+1
| | | | | | * lots of files: Explicitely set all field of initialized structures, in order to remove -Wno-missing-field-initilizers from needed compiler options when using -Wall -Wextra.
* * Add support of lasso_registry to lasso_node_new_from_xmlNode.Benjamin Dauvergne2008-09-121-0/+31
| | | | | | * Add full support for xsi:type, with lookup of the QName namespace, will only work if lib: namespace is correctly declared in the dumped XML fragment. * Add a test for the new functionnality in lasso_node_new_from_xmlNode.
* Add a new error code, with the REGISTRY prefix and use it in registry functionBenjamin Dauvergne2008-09-041-3/+7
| | | | | | returning an error code. Fix a typo when retrieving a quark string in the registry modulke. Improve tests for functional mapping.
* Add functional mappings and test code that goest with it.Benjamin Dauvergne2008-08-261-9/+40
|
* Add test of the two public registry functions,Benjamin Dauvergne2008-08-261-0/+20
| | | | lasso_registry_default_add_mapping, lasso_registry_default_get_mapping.
* updated Copyright dates in all filesDamien Laniel2007-05-301-1/+1
|
* added testcase for bug #407Frederic Peters2005-02-041-0/+25
|
* Updated Copyright and authors.Emmanuel Raviart2005-01-221-3/+3
|
* added stupid tests to annoy developers.Frederic Peters2004-07-291-0/+75