-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 2023.10
-
Component/s: Authentication, SAML
-
Sprint:nxplatform #108
-
Story Points:2
Another occurence of the random formatting issue happening when rounding seconds without trailing zeroes in assertions.
Seen in:
- SAMLAuthenticatorTest#testLoginPrompt addressed in https://jira.nuxeo.com/browse/NXP-32119
- SAMLAuthenticatorWithKeyManagerTest#testLoginPrompt addressed in https://jira.nuxeo.com/browse/NXP-32295
Checking other tests seems necessary to make sure it's done once and for all.
Sample stack:
[2024-02-22T11:08:13.289Z] [ERROR] Tests run: 9, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 9.656 s <<< FAILURE! - in org.nuxeo.ecm.platform.auth.saml.SAMLAuthenticatorTest [2024-02-22T11:08:13.289Z] [ERROR] testAuthRequest(org.nuxeo.ecm.platform.auth.saml.SAMLAuthenticatorTest) Time elapsed: 0.614 s <<< FAILURE! [2024-02-22T11:08:13.289Z] org.junit.ComparisonFailure: [2024-02-22T11:08:13.289Z] expected:<..."2024-02-22T11:08:06[]Z" Version="2.0"> [2024-02-22T11:08:13.289Z] ...> but was:<..."2024-02-22T11:08:06[.000]Z" Version="2.0"> [2024-02-22T11:08:13.289Z] ...> [2024-02-22T11:08:13.289Z] at org.junit.Assert.assertEquals(Assert.java:117) [2024-02-22T11:08:13.289Z] at org.junit.Assert.assertEquals(Assert.java:146) [2024-02-22T11:08:13.289Z] at org.nuxeo.ecm.platform.auth.saml.SAMLFeature.assertSAMLMessage(SAMLFeature.java:96) [2024-02-22T11:08:13.289Z] at org.nuxeo.ecm.platform.auth.saml.SAMLAuthenticatorTest.testAuthRequest(SAMLAuthenticatorTest.java:132)