public class TestSpnegoAuthentication extends BaseTest
DrillSpnegoLoginService| Constructor and Description |
|---|
TestSpnegoAuthentication() |
| Modifier and Type | Method and Description |
|---|---|
static void |
cleanTest() |
static void |
setupTest() |
void |
testConfigBackwardCompatibility()
Validate when none of the security mechanism is specified in the
ExecConstants.HTTP_AUTHENTICATION_MECHANISMS, FORM security handler is still configured correctly when
authentication is enabled along with PAM authenticator module. |
void |
testDrillSpnegoLoginService()
Validate successful
DrillSpnegoLoginService.login(String, Object, javax.servlet.ServletRequest)
when provided with client token for a configured service principal. |
void |
testFORMEnabledWithPlainDisabled()
Validate failure in creating FORM security handler when PAM authenticator is absent.
|
void |
testOnlyFORMEnabled()
Validate if FORM security handler is created successfully when only form is configured as auth mechanism
|
void |
testOnlySPNEGOEnabled()
Validate only SPNEGO security handler is configured properly when enabled via configuration
|
void |
testSPNEGOAndFORMEnabled()
Both SPNEGO and FORM mechanism is enabled for WebServer in configuration.
|
public void testSPNEGOAndFORMEnabled()
throws Exception
Exceptionpublic void testOnlyFORMEnabled()
throws Exception
Exceptionpublic void testFORMEnabledWithPlainDisabled()
throws Exception
PlainFactory.getAuthenticator()Exceptionpublic void testOnlySPNEGOEnabled()
throws Exception
Exceptionpublic void testConfigBackwardCompatibility()
throws Exception
ExecConstants.HTTP_AUTHENTICATION_MECHANISMS, FORM security handler is still configured correctly when
authentication is enabled along with PAM authenticator module.Exceptionpublic void testDrillSpnegoLoginService()
throws Exception
DrillSpnegoLoginService.login(String, Object, javax.servlet.ServletRequest)
when provided with client token for a configured service principal.ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.