Branch: refs/heads/master
Home:
https://github.com/tribe29/checkmk
Commit: 27e04d11b02656702aaa7ceffce21e8b9d53f206
https://github.com/tribe29/checkmk/commit/27e04d11b02656702aaa7ceffce21e8b9…
Author: Lisa Pichler <lisa.pichler(a)tribe29.com>
Date: 2022-12-30 (Fri, 30 Dec 2022)
Changed paths:
M tests/unit/cmk/gui/userdb/saml2/conftest.py
M tests/unit/cmk/gui/userdb/saml2/test_connector.py
M tests/unit/cmk/gui/userdb/saml2/test_interface.py
A tests/unit/cmk/gui/userdb/saml2/xml_files/authentication_request.xml
A tests/unit/cmk/gui/userdb/saml2/xml_files/authentication_request_response.xml
A tests/unit/cmk/gui/userdb/saml2/xml_files/checkmk_service_provider_metadata.xml
A tests/unit/cmk/gui/userdb/saml2/xml_files/identity_provider_metadata.xml
Log Message:
-----------
SAML2 unit tests: refactor & introduce external xml files
* XML file content resides in its own file, which is easier to read and
format
* introduce more static values: more straightforward and easier to test
the upcoming commits
* rework the way the authentication request is validated
** split out RelayState parameter validation to its own test
** apply regex only for dynamic elements (simplifies regex pattern
definition)
Change-Id: I912bac051626ad9f9b244618b5ca7c6df028aff9