diff options
author | Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> | 2013-04-02 17:07:54 +0200 |
---|---|---|
committer | Lorenzo Gil Sanchez <lorenzo.gil.sanchez@gmail.com> | 2013-04-02 17:07:54 +0200 |
commit | 2ae12290b0cffe61e981f1ce94d5187f5d66aef8 (patch) | |
tree | c2b61e735f185c29f8f9474942654f1195279094 /tests/sp_1_conf.py | |
parent | ca6afd92fc6730ba17a78de6cb0cef808a8d6d18 (diff) | |
download | pysaml2-2ae12290b0cffe61e981f1ce94d5187f5d66aef8.tar.gz |
Allow running the tests from the pysaml2 root directory.
This improves previous work for running the tests via the
command "python setup.py test" from a fresh clone.
This can be very useful to integrate pysaml2 in a continuous
integration system such as Jenkins or Travis.
Diffstat (limited to 'tests/sp_1_conf.py')
-rw-r--r-- | tests/sp_1_conf.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/sp_1_conf.py b/tests/sp_1_conf.py index 7173fb5c..aee542c5 100644 --- a/tests/sp_1_conf.py +++ b/tests/sp_1_conf.py @@ -1,8 +1,5 @@ -try: - from saml2.sigver import get_xmlsec_binary - xmlsec_path = get_xmlsec_binary(["/opt/local/bin"]) -except ImportError: - xmlsec_path = '/usr/bin/xmlsec1' +from pathutils import full_path, xmlsec_path + CONFIG = { "entityid" : "urn:mace:example.com:saml:roland:sp", @@ -19,11 +16,11 @@ CONFIG = { } }, "debug" : 1, - "key_file" : "test.key", - "cert_file" : "test.pem", + "key_file" : full_path("test.key"), + "cert_file" : full_path("test.pem"), "xmlsec_binary" : xmlsec_path, "metadata": { - "local": ["idp.xml", "vo_metadata.xml"], + "local": [full_path("idp.xml"), full_path("vo_metadata.xml")], }, "virtual_organization" : { "urn:mace:example.com:it:tek":{ @@ -31,9 +28,9 @@ CONFIG = { "common_identifier": "umuselin", } }, - "subject_data": "subject_data.db", + "subject_data": full_path("subject_data.db"), "accepted_time_diff": 60, - "attribute_map_dir" : "attributemaps", + "attribute_map_dir" : full_path("attributemaps"), "organization": { "name": ("AB Exempel", "se"), "display_name": ("AB Exempel", "se"), |