public class TestUserBitSaslCompatibility extends BaseTestQuery
BaseTestQuery.ClassicTestServices, BaseTestQuery.SilentListener, BaseTestQuery.TestResultSetDrillTest.MemWatcherallocator, bits, client, config, serviceSetc, dirTestWatcher, optionManagerlogOutcome, objectMapper, REPEAT_RULE, thrownException, TIMEOUT| Constructor and Description |
|---|
TestUserBitSaslCompatibility() |
| Modifier and Type | Method and Description |
|---|---|
static void |
setup() |
void |
testDisableDrillbitAuth_EnableClientAuthKerberos()
Test showing when Drillbit is not configured for authentication whereas client explicitly requested for Kerberos
authentication then connection fails due to new check before SASL Handshake.
|
void |
testDisableDrillbitAuth_EnableClientAuthPlain()
Test showing when Drillbit is not configured for authentication whereas client explicitly requested for PLAIN
authentication then connection succeeds without authentication.
|
void |
testDisableDrillbitAuth_EnableClientEncryption()
Test showing failure before SASL handshake when Drillbit is not configured for authentication whereas client
explicitly requested for encrypted connection.
|
void |
testDisableDrillbitClientAuth()
Test showing successful handshake when authentication is disabled on Drillbit side and client also
doesn't provide any security properties in connection URL.
|
void |
testDisableDrillbitEncryption_EnableClientEncryption()
Test showing failure before SASL handshake when Drillbit is not configured for encryption whereas client explicitly
requested for encrypted connection.
|
void |
testEnableDrillbitAuth_DisableClientAuth()
Test showing failure in SASL handshake when Drillbit is configured for authentication only whereas client doesn't
provide any security properties like username/password in this case.
|
void |
testEnableDrillbitClientAuth()
Test showing successful SASL handshake when both Drillbit and client side authentication is enabled using PLAIN
mechanism.
|
void |
testEnableDrillbitClientEncryption_UsingPlain()
Below test shows the failure in Sasl layer with client and Drillbit side encryption enabled using PLAIN
mechanism.
|
void |
testEnableDrillbitEncryption_DisableClientAuth()
Test showing failure in SASL handshake when Drillbit is configured for encryption whereas client doesn't provide any
security properties like username/password in this case.
|
void |
testEnableDrillbitImpersonation_DisableClientAuth()
Test showing successful handshake when authentication is disabled but impersonation is enabled on Drillbit side
and client only provides USERNAME as a security property in connection URL.
|
alterSession, cloneDefaultTestConfigProperties, closeClient, errorMsgTestHelper, getAllocator, getDrillbitContext, getFile, getPhysicalFileFromResource, getResultString, getUserPort, logResult, newTest, parseErrorHelper, printResult, resetAllSessionOptions, resetDrillbitCount, resetSessionOption, runSQL, setColumnWidth, setColumnWidths, setSessionOption, setSessionOption, setSessionOption, setSessionOption, setupDefaultTestCluster, test, test, testBuilder, testLogicalWithResults, testNoResult, testNoResult, testPhysical, testPhysicalFromFile, testPhysicalWithResults, testPreparedStatement, testRunAndPrint, testRunAndReturn, testSql, testSqlWithResults, testWithListener, updateClient, updateClient, updateClient, updateTestCluster, updateTestClusterclear, getLocalFileSystem, mockDrillbitContext, mockUsDateFormatSymbols, mockUtcDateTimeZone, parseExpr, setupOptionManagerescapeJsonString, finishDrillTest, initDrillTestpublic static void setup()
public void testDisableDrillbitAuth_EnableClientAuthPlain()
throws Exception
Exceptionpublic void testDisableDrillbitAuth_EnableClientAuthKerberos()
throws Exception
Exceptionpublic void testDisableDrillbitAuth_EnableClientEncryption()
throws Exception
Exceptionpublic void testDisableDrillbitEncryption_EnableClientEncryption()
throws Exception
Exceptionpublic void testEnableDrillbitAuth_DisableClientAuth()
throws Exception
Exceptionpublic void testEnableDrillbitEncryption_DisableClientAuth()
throws Exception
Exceptionpublic void testEnableDrillbitClientAuth()
throws Exception
Exceptionpublic void testEnableDrillbitClientEncryption_UsingPlain()
throws Exception
Exceptionpublic void testDisableDrillbitClientAuth()
throws Exception
Exceptionpublic void testEnableDrillbitImpersonation_DisableClientAuth()
throws Exception
ExceptionCopyright © 2021 The Apache Software Foundation. All rights reserved.