jakartaee / authentication

Jakarta Authentication
https://eclipse.org/ee4j/jaspic
Other
24 stars 33 forks source link

ServletProfileSPITest#testSecRespCalledAfterSvcInvoc fails due to credentials not being set in Authorization header #228

Open jhanders34 opened 1 week ago

jhanders34 commented 1 week ago

Challenged tests ee.jakarta.tck.authentication.test.basic.ServletProfileSPITest#testSecRespCalledAfterSvcInvoc

TCK Version Jakarta Authentication 3.1.0

Description This test is one of them that was converted from the old tck format. The old tck test passed credentials when making the http request as seen here, but the new tck does not pass credentials.

Additional context To resolve the issue, testSecRespCalledAfterSvcInvoc can be updated as such:

   public void testSecRespCalledAfterSvcInvoc() {
       String response = readFromServerWithCredentials(
           JASPICData.AUTHSTAT_MAND_SUCCESS + "?" + "method.under.test=" + "testSecRespCalledAfterSvcInvoc", "j2ee", "j2ee");

       assertTrue(response.contains("testSecRespCalledAfterSvcInvoc() passed"));
   }

A pull request is associated with this issue that has the above change in it that can be used if this challenge is accepted.