diff options
Diffstat (limited to 'tests/idp_sp_conf.py')
-rw-r--r-- | tests/idp_sp_conf.py | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/tests/idp_sp_conf.py b/tests/idp_sp_conf.py index d8dee282..e4da5e68 100644 --- a/tests/idp_sp_conf.py +++ b/tests/idp_sp_conf.py @@ -6,11 +6,7 @@ from saml2.saml import NAME_FORMAT_URI BASE = "http://localhost:8088/" -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:idp", @@ -39,7 +35,7 @@ CONFIG = { # } } }, - "subject_data": "subject_data.db", + "subject_data": full_path("subject_data.db"), }, "sp": { "endpoints":{ @@ -51,13 +47,13 @@ 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": ["metadata.xml", "vo_metadata.xml"], + "local": [full_path("metadata.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")], |