Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-15484

Frequent test failures for JWTAuthPluginIntegrationTest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 9.0
    • 9.5
    • None
    • None

    Description

      Example:

      Build: https://ci-builds.apache.org/job/Solr/job/Solr-Check-main/1053/

      1 tests failed.
      FAILED:  org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server
      
      Error Message:
      org.junit.ComparisonFailure: Should have received 401 code expected:<[401]> but was:<[200]>
      
      Stack Trace:
      org.junit.ComparisonFailure: Should have received 401 code expected:<[401]> but was:<[200]>
       at __randomizedtesting.SeedInfo.seed([7827798BF4D91EFE:FF2798DB9165E212]:0)
       at org.junit.Assert.assertEquals(Assert.java:117)
       at org.apache.solr.security.JWTAuthPluginIntegrationTest.mockOAuth2Server(JWTAuthPluginIntegrationTest.java:143)
      ...
      

      The other test failure is

      org.apache.solr.security.JWTAuthPluginTest.initWithInvalidTrustedCertsFile
      
      Failing for the past 1 build (Since #924 )
      Took 7 ms.
      
      Error Message
      junit.framework.AssertionFailedError: Expected exception SolrException but no exception was thrown
      Stacktrace
      junit.framework.AssertionFailedError: Expected exception SolrException but no exception was thrown
      	at __randomizedtesting.SeedInfo.seed([8651FF5FA6DE29A1:91C33C9AFD0459B5]:0)
      	at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2863)
      	at org.apache.lucene.util.LuceneTestCase.expectThrows(LuceneTestCase.java:2849)
      	at org.apache.solr.security.JWTAuthPluginTest.initWithInvalidTrustedCertsFile(JWTAuthPluginTest.java:521)
      ...
      

      Attachments

        Issue Links

          Activity

            People

              janhoy Jan Høydahl
              janhoy Jan Høydahl
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3.5h
                  3.5h