Merge "Read idp_metadata_path value from CONF.saml"
This commit is contained in:
commit
6feb6b4eb8
|
@ -339,7 +339,7 @@ class SAMLMetadataV3(_ControllerBase):
|
|||
member_name = 'metadata'
|
||||
|
||||
def get_metadata(self, context):
|
||||
metadata_path = CONF.federation.idp_metadata_path
|
||||
metadata_path = CONF.saml.idp_metadata_path
|
||||
try:
|
||||
with open(metadata_path, 'r') as metadata_handler:
|
||||
metadata = metadata_handler.read()
|
||||
|
|
|
@ -2019,7 +2019,7 @@ class IdPMetadataGenerationTests(FederationTests):
|
|||
self.get(self.METADATA_URL, expected_status=500)
|
||||
|
||||
def test_get_metadata(self):
|
||||
CONF.federation.idp_metadata_path = XMLDIR + '/idp_saml2_metadata.xml'
|
||||
CONF.saml.idp_metadata_path = XMLDIR + '/idp_saml2_metadata.xml'
|
||||
r = self.get(self.METADATA_URL, response_content_type='text/xml',
|
||||
expected_status=200)
|
||||
self.assertEqual('text/xml', r.headers.get('Content-Type'))
|
||||
|
|
Loading…
Reference in New Issue