summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Tests: Add a SAML2 login testBenjamin Dauvergne2009-04-223-1/+467
| | | | | | | * tests/login_tests_saml2.c: add a C login test for SAML 2. * tests/Makefile.am: add the new test to dependencies.
* Core: add an header file for backward compatibilityBenjamin Dauvergne2009-04-141-0/+1
| | | | | | | | | | | * 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
* Tests&Core: add g_strcmp0 if glib is oldBenjamin Dauvergne2009-04-021-0/+1
| | | | | | | | * 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
* Test: add missing release of objects and memoryBenjamin Dauvergne2009-03-275-12/+65
| | | | | | | | | * 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.
* ID-FF 1.2 Tests: Add test for relaystateBenjamin Dauvergne2009-03-271-2/+18
| | | | | | * tests/login_tests.c: - (test02_serviceProviderLogin) add assertion concerning the relaying of the RelayState parameter during an SP initiated SSO.
* Test: Add test for testing new InResponseTo checking codeBenjamin Dauvergne2009-03-031-1/+17
| | | | | | | * 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.
* 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 test case for loading server completely from memoryBenjamin Dauvergne2008-11-021-0/+167
| | | | | | | | * 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.
* fixed xml indentationDamien Laniel2008-10-011-49/+49
|
* * Remove ending blanksBenjamin Dauvergne2008-09-124-11/+11
|
* * 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.
* Fix regression when loading a LassoServer from dump.Benjamin Dauvergne2008-09-041-2/+2
| | | | | Fix an error with -rpath setting in last commit, -rpath must always be absolute paths.
* Add -rpath to LDFLAGS variable to use the builded lasso and not the local one.Benjamin Dauvergne2008-08-261-0/+2
|
* 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.