======================================================================
FAIL: testIsInValidSubjectConfirmation (tests.src.OneLogin.saml2_tests.response_test.OneLogin_Saml2_Response_Test)
Tests the is_valid method of the OneLogin_Saml2_Response class
----------------------------------------------------------------------
onelogin.saml2.errors.OneLogin_Saml2_ValidationError: Could not validate timestamp: expired. Check system clock.
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/build/source/tests/src/OneLogin/saml2_tests/response_test.py", line 1311, in testIsInValidSubjectConfirmation
response.is_valid(request_data, raise_exceptions=True)
AssertionError: "A valid SubjectConfirmation was not found on this Response" does not match "Could not validate timestamp: expired. Check system clock."
Ugly one-liner that created this patch:
find . -name '*.base64' -exec sh -c "base64 -d {} | if grep 2021-06 > /dev/null; then echo {}; base64 -d {} | sed s/2021/2099/g | base64 -w 0 | sponge {}; fi " \;
The following test inputs have
NotOnOrAfter
values that are expired:They are causing errors in tests like:
Ugly one-liner that created this patch: