SAML-Toolkits / python3-saml

MIT License
704 stars 309 forks source link

Tests fail due to expired timestamps #410

Closed hgovindkoli closed 5 months ago

hgovindkoli commented 5 months ago
======================================================================
FAIL: testIsInValidEncIssues (tests.src.OneLogin.saml2_tests.response_test.OneLogin_Saml2_Response_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-saml-1.3.0/tests/src/OneLogin/saml2_tests/response_test.py", line 1261, in testIsInValidEncIssues
    self.assertEqual('The attributes have expired, based on the SessionNotOnOrAfter of the AttributeStatement of this Response', response_6.get_error())
AssertionError: 'The attributes have expired, based on the[59 chars]onse' != 'Could not validate timestamp: expired. Ch[13 chars]ock.'
- The attributes have expired, based on the SessionNotOnOrAfter of the AttributeStatement of this Response
+ Could not validate timestamp: expired. Check system clock.

======================================================================
FAIL: testValidateTimestamps (tests.src.OneLogin.saml2_tests.response_test.OneLogin_Saml2_Response_Test)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/builddir/build/BUILD/python3-saml-1.3.0/tests/src/OneLogin/saml2_tests/response_test.py", line 713, in testValidateTimestamps
    self.assertFalse(response_5.validate_timestamps())
AssertionError: True is not false

----------------------------------------------------------------------
Ran 218 tests in 170.935s

FAILED (failures=2)
error: Bad exit status from /var/tmp/rpm-tmp.vejgDP (%check)

could you please help us on the above test errors? Version: python3-saml-1.3.0

hgovindkoli commented 5 months ago

@pitbulk can you please review this?

pitbulk commented 5 months ago

Fixed here: https://github.com/SAML-Toolkits/python3-saml/pull/412