diff options
author | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-09-09 08:28:49 +0200 |
---|---|---|
committer | Roland Hedberg <roland.hedberg@adm.umu.se> | 2014-09-09 08:28:49 +0200 |
commit | f3917a46a728dcad6cf5045aec4ece91a8ccc73f (patch) | |
tree | 9c24893c0d3e1537d2929d627ec1b1b12e5f3015 /tests | |
parent | 5127e7e5bbfeafd3a58c3d80d6214f469b511be9 (diff) | |
download | pysaml2-f3917a46a728dcad6cf5045aec4ece91a8ccc73f.tar.gz |
On Copyright statement in one place.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/ds_data.py | 13 | ||||
-rw-r--r-- | tests/md_data.py | 13 | ||||
-rw-r--r-- | tests/saml2_data.py | 13 | ||||
-rw-r--r-- | tests/samlp_data.py | 13 | ||||
-rw-r--r-- | tests/server_conf_syslog.py | 40 | ||||
-rw-r--r-- | tests/sp_slo_redirect_conf.py | 41 | ||||
-rw-r--r-- | tests/test_00_xmldsig.py | 13 | ||||
-rw-r--r-- | tests/test_02_saml.py | 13 | ||||
-rw-r--r-- | tests/test_04_samlp.py | 13 | ||||
-rw-r--r-- | tests/test_05_md.py | 13 |
10 files changed, 42 insertions, 143 deletions
diff --git a/tests/ds_data.py b/tests/ds_data.py index 71743852..243d955e 100644 --- a/tests/ds_data.py +++ b/tests/ds_data.py @@ -1,18 +1,5 @@ #!/usr/bin/env python # -# Copyright (C) 2007 SIOS Technology, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Test data for ds""" diff --git a/tests/md_data.py b/tests/md_data.py index d5176b5a..1a18ce6d 100644 --- a/tests/md_data.py +++ b/tests/md_data.py @@ -1,18 +1,5 @@ #!/usr/bin/env python # -# Copyright (C) 2007 SIOS Technology, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Test data for md""" diff --git a/tests/saml2_data.py b/tests/saml2_data.py index a5f98416..fe650e7b 100644 --- a/tests/saml2_data.py +++ b/tests/saml2_data.py @@ -1,18 +1,5 @@ #!/usr/bin/env python # -# Copyright (C) 2007 SIOS Technology, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Test data for saml2""" diff --git a/tests/samlp_data.py b/tests/samlp_data.py index 22ce0a82..f458d15c 100644 --- a/tests/samlp_data.py +++ b/tests/samlp_data.py @@ -1,18 +1,5 @@ #!/usr/bin/env python # -# Copyright (C) 2007 SIOS Technology, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Test data for saml2""" diff --git a/tests/server_conf_syslog.py b/tests/server_conf_syslog.py index 72e6a748..4dc6a85b 100644 --- a/tests/server_conf_syslog.py +++ b/tests/server_conf_syslog.py @@ -3,48 +3,50 @@ __author__ = 'rolandh' from pathutils import full_path -CONFIG={ - "entityid" : "urn:mace:example.com:saml:roland:sp", - "name" : "urn:mace:example.com:saml:roland:sp", +CONFIG = { + "entityid": "urn:mace:example.com:saml:roland:sp", + "name": "urn:mace:example.com:saml:roland:sp", "description": "My own SP", "service": { "sp": { - "endpoints":{ - "assertion_consumer_service": ["http://lingon.catalogix.se:8087/"], + "endpoints": { + "assertion_consumer_service": [ + "http://lingon.catalogix.se:8087/"], }, "required_attributes": ["surName", "givenName", "mail"], "optional_attributes": ["title"], "idp": ["urn:mace:example.com:saml:roland:idp"], } }, - "debug" : 1, - "key_file" : full_path("test.key"), - "cert_file" : full_path("test.pem"), - #"xmlsec_binary" : None, + "debug": 1, + "key_file": full_path("test.key"), + "cert_file": full_path("test.pem"), + # "xmlsec_binary" : None, "metadata": { "local": [full_path("idp.xml"), full_path("vo_metadata.xml")], }, - "virtual_organization" : { - "urn:mace:example.com:it:tek":{ - "nameid_format" : "urn:oid:1.3.6.1.4.1.1466.115.121.1.15-NameID", + "virtual_organization": { + "urn:mace:example.com:it:tek": { + "nameid_format": "urn:oid:1.3.6.1.4.1.1466.115.121.1.15-NameID", "common_identifier": "umuselin", } }, "subject_data": full_path("subject_data.db"), "accepted_time_diff": 60, - "attribute_map_dir" : full_path("attributemaps"), + "attribute_map_dir": full_path("attributemaps"), "organization": { "name": ("AB Exempel", "se"), "display_name": ("AB Exempel", "se"), "url": "http://www.example.org", }, "contact_person": [{ - "given_name": "Roland", - "sur_name": "Hedberg", - "telephone_number": "+46 70 100 0000", - "email_address": ["tech@eample.com", "tech@example.org"], - "contact_type": "technical" - }, + "given_name": "Roland", + "sur_name": "Hedberg", + "telephone_number": "+46 70 100 0000", + "email_address": ["tech@eample.com", + "tech@example.org"], + "contact_type": "technical" + }, ], "logger": { "syslog": { diff --git a/tests/sp_slo_redirect_conf.py b/tests/sp_slo_redirect_conf.py index 7856c11e..97751dae 100644 --- a/tests/sp_slo_redirect_conf.py +++ b/tests/sp_slo_redirect_conf.py @@ -6,16 +6,16 @@ from pathutils import full_path HOME = "http://lingon.catalogix.se:8087/" CONFIG = { - "entityid" : "urn:mace:example.com:saml:roland:sp", - "name" : "urn:mace:example.com:saml:roland:sp", + "entityid": "urn:mace:example.com:saml:roland:sp", + "name": "urn:mace:example.com:saml:roland:sp", "description": "My own SP", "service": { "sp": { - "endpoints":{ + "endpoints": { "assertion_consumer_service": [ - (HOME, BINDING_HTTP_REDIRECT)], - "single_logout_service" : [ - (HOME+"slo",BINDING_HTTP_REDIRECT)], + (HOME, BINDING_HTTP_REDIRECT)], + "single_logout_service": [ + (HOME + "slo", BINDING_HTTP_REDIRECT)], }, "required_attributes": ["surName", "givenName", "mail"], "optional_attributes": ["title"], @@ -23,32 +23,33 @@ CONFIG = { "subject_data": full_path("subject_data.db"), } }, - "debug" : 1, - "key_file" : full_path("test.key"), - "cert_file" : full_path("test.pem"), - "xmlsec_binary" : None, + "debug": 1, + "key_file": full_path("test.key"), + "cert_file": full_path("test.pem"), + "xmlsec_binary": None, "metadata": { "local": [full_path("idp_slo_redirect.xml")], }, - "virtual_organization" : { - "urn:mace:example.com:it:tek":{ - "nameid_format" : "urn:oid:1.3.6.1.4.1.1466.115.121.1.15-NameID", + "virtual_organization": { + "urn:mace:example.com:it:tek": { + "nameid_format": "urn:oid:1.3.6.1.4.1.1466.115.121.1.15-NameID", "common_identifier": "umuselin", } }, "accepted_time_diff": 60, - "attribute_map_dir" : full_path("attributemaps"), + "attribute_map_dir": full_path("attributemaps"), "organization": { "name": ("AB Exempel", "se"), "display_name": ("AB Exempel", "se"), "url": "http://www.example.org", }, "contact_person": [{ - "given_name": "Roland", - "sur_name": "Hedberg", - "telephone_number": "+46 70 100 0000", - "email_address": ["tech@eample.com", "tech@example.org"], - "contact_type": "technical" - }, + "given_name": "Roland", + "sur_name": "Hedberg", + "telephone_number": "+46 70 100 0000", + "email_address": ["tech@eample.com", + "tech@example.org"], + "contact_type": "technical" + }, ] } diff --git a/tests/test_00_xmldsig.py b/tests/test_00_xmldsig.py index 8ebd6ef8..8b40e9db 100644 --- a/tests/test_00_xmldsig.py +++ b/tests/test_00_xmldsig.py @@ -1,18 +1,5 @@ #!/usr/bin/env python # -# Copyright (C) 2007 SIOS Technology, Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Tests for xmldsig""" diff --git a/tests/test_02_saml.py b/tests/test_02_saml.py index fdc362b4..41beabee 100644 --- a/tests/test_02_saml.py +++ b/tests/test_02_saml.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2010 Umeå University. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Tests for saml2.saml""" diff --git a/tests/test_04_samlp.py b/tests/test_04_samlp.py index 2cfd59b7..dae76535 100644 --- a/tests/test_04_samlp.py +++ b/tests/test_04_samlp.py @@ -1,19 +1,6 @@ #!/usr/bin/env pythony # -*- coding: utf-8 -*- # -# Copyright (C) 2009 Umeå University. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Tests for saml2.samlp""" diff --git a/tests/test_05_md.py b/tests/test_05_md.py index f0a8ef03..c02d668d 100644 --- a/tests/test_05_md.py +++ b/tests/test_05_md.py @@ -1,19 +1,6 @@ #!/usr/bin/env python # -*- coding: utf-8 -*- # -# Copyright (C) 2009 Umeå University. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. """Tests for saml2.md""" |