Skip to content

Commit

Permalink
Disable new tests relying on uncertain behavior of getUserPrincipal
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Rauh <nathan.rauh@us.ibm.com>
  • Loading branch information
njr-11 committed Apr 19, 2022
1 parent 0c0fb18 commit e192507
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,16 @@ public static EnterpriseArchive createDeployment() {

@ArquillianResource(ContextServiceDefinitionFromEJBServlet.class)
URL ejbContextURL;

@Test

// HttpServletRequest.getUserPrincipal behavior is unclear when accessed from another thread or the current user is changed
@Test(enabled = false)
public void testSecurityClearedContext() {
URLBuilder requestURL = URLBuilder.get().withBaseURL(jspURL).withPaths("jspTests.jsp").withTestName(testName);
runTest(requestURL);
}

@Test

// HttpServletRequest.getUserPrincipal behavior is unclear when accessed from another thread or the current user is changed
@Test(enabled = false)
public void testSecurityUnchangedContext() {
URLBuilder requestURL = URLBuilder.get().withBaseURL(jspURL).withPaths("jspTests.jsp").withTestName(testName);
runTest(requestURL);
Expand Down

0 comments on commit e192507

Please sign in to comment.