public class TestDrillSpnegoAuthenticator extends BaseTest
DrillSpnegoAuthenticator| Constructor and Description |
|---|
TestDrillSpnegoAuthenticator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanTest() |
static void |
setupTest() |
void |
testAuthClientRequestForLogOut()
Test to verify that when request is sent for
WebServerConstants.LOGOUT_RESOURCE_PATH then the UserIdentity
will be removed from the session and returned authentication will be null from
DrillSpnegoAuthenticator.validateRequest(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean) |
void |
testAuthClientRequestForOtherPage()
Test to verify response when request is sent for any other resource other than
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH from authenticated session. |
void |
testAuthClientRequestForSpnegoLoginResource()
Test to verify response when request is sent for
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH from
authenticated session. |
void |
testNewSessionReqForSpnegoLogin()
Test to verify response when request is sent for
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH from
unauthenticated session. |
void |
testSpnegoLoginInvalidToken()
Test to verify authentication fails when client sends invalid SPNEGO token for the
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH resource. |
public void testNewSessionReqForSpnegoLogin()
throws Exception
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH from
unauthenticated session. Expectation is client will receive response with Negotiate header.Exceptionpublic void testAuthClientRequestForSpnegoLoginResource()
throws Exception
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH from
authenticated session. Expectation is server will find the authenticated UserIdentity.Exceptionpublic void testAuthClientRequestForOtherPage()
throws Exception
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH from authenticated session. Expectation is server will
find the authenticated UserIdentity and will not perform the authentication again for new resource.Exceptionpublic void testAuthClientRequestForLogOut()
throws Exception
WebServerConstants.LOGOUT_RESOURCE_PATH then the UserIdentity
will be removed from the session and returned authentication will be null from
DrillSpnegoAuthenticator.validateRequest(javax.servlet.ServletRequest, javax.servlet.ServletResponse, boolean)Exceptionpublic void testSpnegoLoginInvalidToken()
throws Exception
WebServerConstants.SPENGO_LOGIN_RESOURCE_PATH resource.ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.