Skip to content

Commit

Permalink
feat: Added SingleLogoutService check even with http url (not in prod…
Browse files Browse the repository at this point in the history
…uctio) - fixes #52
  • Loading branch information
peppelinux committed Jun 18, 2021
1 parent a9a5cb9 commit bfb75b5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/spid_sp_test/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,15 @@ def test_SingleLogoutService(self):
'MUST be a valid HTTPS URL - AV n. 1 and n. 3',
**error_kwargs
)
elif attr == 'Location':
self._assertIsValidHttpUrl(
a,
f'The {attr} attribute '
'in SingleLogoutService element '
'MUST be a valid HTTP URL - AV n. 1 and n. 3',
**error_kwargs
)

return self.is_ok(f'{self.__class__.__name__}.test_SingleLogoutService')

def test_AssertionConsumerService(self):
Expand Down

0 comments on commit bfb75b5

Please sign in to comment.