Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-32345

Fix random on SAMLAuthenticatorTest.testAuthRequest and co

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2023.10
    • Component/s: Authentication, SAML

      Description

      Another occurence of the random formatting issue happening when rounding seconds without trailing zeroes in assertions.
      Seen in:

      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)
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: