Skip to content

Commit

Permalink
Rename eidas tests config files
Browse files Browse the repository at this point in the history
- Renames eidas tests config files because there was a clash in paths
  loaded and it resulted to other irrelevant tests crashing (because
they loaded the eidas conf files that had different entity ids)
  • Loading branch information
ioparaskev committed Feb 10, 2020
1 parent d898713 commit 2b98447
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 7 deletions.
File renamed without changes.
File renamed without changes.
40 changes: 40 additions & 0 deletions tests/eidas/sp2.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<ns0:EntityDescriptor xmlns:ns0="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:ns1="urn:oasis:names:tc:SAML:metadata:algsupport" xmlns:ns2="http://eidas.europa.eu/saml-extensions" xmlns:ns3="urn:oasis:names:tc:SAML:metadata:attribute" xmlns:ns4="urn:oasis:names:tc:SAML:2.0:assertion" xmlns:ns6="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" entityID="urn:mace:example.com:saml:roland:sp" validUntil="2020-02-03T16:22:22Z"><ns0:Extensions><ns1:DigestMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#md5" /><ns1:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#ripemd160" /><ns1:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><ns1:DigestMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#sha224" /><ns1:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" /><ns1:DigestMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#sha384" /><ns1:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha512" /><ns1:SigningMethod Algorithm="http://www.w3.org/2000/09/xmldsig#dsa-sha1" /><ns1:SigningMethod Algorithm="http://www.w3.org/2009/xmldsig11#dsa-sha256" /><ns1:SigningMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-md5" /><ns1:SigningMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-ripemd160" /><ns1:SigningMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><ns1:SigningMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha224" /><ns1:SigningMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256" /><ns1:SigningMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha384" /><ns1:SigningMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha512" /><ns2:NodeCountry>GR</ns2:NodeCountry><ns3:EntityAttributes><ns4:Attribute Name="http://eidas.europa.eu/entity-attributes/application-identifier" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><ns4:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">CEF:eIDAS-ref:2.0</ns4:AttributeValue></ns4:Attribute><ns4:Attribute Name="http://eidas.europa.eu/entity-attributes/protocol-version" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri"><ns4:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">1.1</ns4:AttributeValue><ns4:AttributeValue xmlns:xs="http://www.w3.org/2001/XMLSchema" xsi:type="xs:string">2.2</ns4:AttributeValue></ns4:Attribute></ns3:EntityAttributes></ns0:Extensions><ns0:SPSSODescriptor AuthnRequestsSigned="false" WantAssertionsSigned="true" protocolSupportEnumeration="urn:oasis:names:tc:SAML:2.0:protocol"><ns0:KeyDescriptor use="signing"><ns6:KeyInfo><ns6:X509Data><ns6:X509Certificate>MIICsDCCAhmgAwIBAgIJAJrzqSSwmDY9MA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNV
BAYTAkFVMRMwEQYDVQQIEwpTb21lLVN0YXRlMSEwHwYDVQQKExhJbnRlcm5ldCBX
aWRnaXRzIFB0eSBMdGQwHhcNMDkxMDA2MTk0OTQxWhcNMDkxMTA1MTk0OTQxWjBF
MQswCQYDVQQGEwJBVTETMBEGA1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hBJO+vzhl0PT4aT7M0JKo5ALtS6qk4tsworW2BnwyvsG
SAinwfeWt4t/b1J3kwIDAQABMA0GCSqGSIb3DQEBCwUAA4GBAFtj7WArQQBugmh/
KQjjlfTQ5A052QeXfgTyO9vv1S6MRIi7qgiaEv49cGXnJv/TWbySkMKObPMUApjg
6z8PqcxuShew5FCTkNvwhABFPiyu0fUj3e2FEPHfsBu76jz4ugtmhUqjqhzwFY9c
tnWRkkl6J0AjM3LnHOSgjNIclDZG
</ns6:X509Certificate></ns6:X509Data></ns6:KeyInfo></ns0:KeyDescriptor><ns0:AssertionConsumerService Binding="urn:oasis:names:tc:SAML:2.0:bindings:HTTP-POST" Location="http://lingon.catalogix.se:8087/" index="1" /><ns0:AttributeConsumingService index="1"><ns0:ServiceName xml:lang="en">urn:mace:example.com:saml:roland:sp</ns0:ServiceName><ns0:ServiceDescription xml:lang="en">My own SP</ns0:ServiceDescription><ns0:RequestedAttribute FriendlyName="surName" Name="urn:oid:2.5.4.4" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="true" /><ns0:RequestedAttribute FriendlyName="givenName" Name="urn:oid:2.5.4.42" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="true" /><ns0:RequestedAttribute FriendlyName="mail" Name="urn:oid:0.9.2342.19200300.100.1.3" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="true" /><ns0:RequestedAttribute FriendlyName="title" Name="urn:oid:2.5.4.12" NameFormat="urn:oasis:names:tc:SAML:2.0:attrname-format:uri" isRequired="false" /></ns0:AttributeConsumingService></ns0:SPSSODescriptor><ns0:Organization><ns0:OrganizationName xml:lang="se">AB Exempel</ns0:OrganizationName><ns0:OrganizationDisplayName xml:lang="se">AB Exempel</ns0:OrganizationDisplayName><ns0:OrganizationURL xml:lang="en">http://www.example.org</ns0:OrganizationURL></ns0:Organization><ns0:ContactPerson contactType="technical"><ns0:GivenName>Roland</ns0:GivenName><ns0:SurName>Hedberg</ns0:SurName><ns0:EmailAddress>tech@eample.com</ns0:EmailAddress><ns0:EmailAddress>tech@example.org</ns0:EmailAddress><ns0:TelephoneNumber>+46 70 100 0000</ns0:TelephoneNumber></ns0:ContactPerson><ns0:ContactPerson contactType="support"><ns0:GivenName>Roland</ns0:GivenName><ns0:SurName>Hedberg</ns0:SurName><ns0:EmailAddress>tech@eample.com</ns0:EmailAddress><ns0:EmailAddress>tech@example.org</ns0:EmailAddress><ns0:TelephoneNumber>+46 70 100 0000</ns0:TelephoneNumber></ns0:ContactPerson></ns0:EntityDescriptor>
8 changes: 4 additions & 4 deletions tests/eidas/test_idp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,19 +6,19 @@
from saml2.client import Saml2Client
from saml2.server import Server
from saml2.config import eIDASSPConfig, eIDASIdPConfig
from eidas.idp_conf import CONFIG
from eidas.eidas_idp_conf import CONFIG
from saml2.utility.config import ConfigValidationError


class TestIdP:
def setup_class(self):
self.server = Server("idp_conf")
self.server = Server("eidas_idp_conf")

self.conf = eIDASIdPConfig()
self.conf.load_file("idp_conf")
self.conf.load_file("eidas_idp_conf")

sp_conf = eIDASSPConfig()
sp_conf.load_file("sp_conf")
sp_conf.load_file("eidas_sp_conf")

self.client = Saml2Client(sp_conf)

Expand Down
6 changes: 3 additions & 3 deletions tests/eidas/test_sp.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,16 @@
from saml2.client import Saml2Client
from saml2.server import Server
from saml2.config import eIDASSPConfig
from eidas.sp_conf import CONFIG
from eidas.eidas_sp_conf import CONFIG
from saml2.utility.config import ConfigValidationError


class TestSP:
def setup_class(self):
self.server = Server("idp_conf")
self.server = Server("eidas_idp_conf")

self.conf = eIDASSPConfig()
self.conf.load_file("sp_conf")
self.conf.load_file("eidas_sp_conf")

self.client = Saml2Client(self.conf)

Expand Down

0 comments on commit 2b98447

Please sign in to comment.