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/idp_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/idp_conf.py')
-rw-r--r-- | tests/idp_conf.py | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/tests/idp_conf.py b/tests/idp_conf.py index 22258878..a0e3a867 100644 --- a/tests/idp_conf.py +++ b/tests/idp_conf.py @@ -2,11 +2,7 @@ from saml2 import BINDING_SOAP, BINDING_HTTP_REDIRECT, BINDING_HTTP_POST from saml2.saml import NAMEID_FORMAT_PERSISTENT from saml2.saml import NAME_FORMAT_URI -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 BASE = "http://localhost:8088" @@ -37,19 +33,20 @@ CONFIG = { # } } }, - "subject_data": "subject_data.db", + "subject_data": full_path("subject_data.db"), #"domain": "umu.se", #"name_qualifier": "" }, }, "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": ["metadata_sp_1.xml", "vo_metadata.xml"], + "local": [full_path("metadata_sp_1.xml"), + full_path("vo_metadata.xml")], }, - "attribute_map_dir" : "attributemaps", + "attribute_map_dir" : full_path("attributemaps"), "organization": { "name": "Exempel AB", "display_name": [("Exempel AB","se"),("Example Co.","en")], |