Package io.trino.tests.product.jdbc
Class TestLdapTrinoJdbc
- java.lang.Object
-
- io.trino.tempto.ProductTest
-
- io.trino.tests.product.jdbc.BaseLdapJdbcTest
-
- io.trino.tests.product.jdbc.TestLdapTrinoJdbc
-
- All Implemented Interfaces:
io.trino.tempto.RequirementsProvider
public class TestLdapTrinoJdbc extends BaseLdapJdbcTest
-
-
Field Summary
-
Fields inherited from class io.trino.tests.product.jdbc.BaseLdapJdbcTest
ldapTruststorePassword, ldapTruststorePath, ldapUserName, ldapUserPassword, NATION_SELECT_ALL_QUERY, TIMEOUT
-
-
Constructor Summary
Constructors Constructor Description TestLdapTrinoJdbc()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidexpectQueryToFail(String user, String password, String message)protected StringgetLdapUrlFormat()voidshouldFailForIncorrectTrustStore()voidshouldFailForUserWithColon()voidshouldFailQueryForEmptyUser()voidshouldFailQueryForFailedBind()voidshouldFailQueryForLdapUserInChildGroup()voidshouldFailQueryForLdapUserInParentGroup()voidshouldFailQueryForLdapWithoutPassword()voidshouldFailQueryForLdapWithoutSsl()voidshouldFailQueryForOrphanLdapUser()voidshouldFailQueryForWrongLdapPassword()voidshouldFailQueryForWrongLdapUser()voidshouldRunQueryForAnotherUserWithOnlyFileAuthenticator()voidshouldRunQueryWithAlternativeBind()voidshouldRunQueryWithFileAuthenticator()voidshouldRunQueryWithLdap()-
Methods inherited from class io.trino.tests.product.jdbc.BaseLdapJdbcTest
executeLdapQuery, getLdapUrl, getRequirements, prestoServer
-
-
-
-
Method Detail
-
getLdapUrlFormat
protected String getLdapUrlFormat()
- Specified by:
getLdapUrlFormatin classBaseLdapJdbcTest
-
shouldRunQueryWithLdap
public void shouldRunQueryWithLdap() throws SQLException- Throws:
SQLException
-
shouldRunQueryWithAlternativeBind
public void shouldRunQueryWithAlternativeBind() throws SQLException- Throws:
SQLException
-
shouldFailQueryForLdapUserInChildGroup
public void shouldFailQueryForLdapUserInChildGroup()
-
shouldFailQueryForLdapUserInParentGroup
public void shouldFailQueryForLdapUserInParentGroup()
-
shouldFailQueryForOrphanLdapUser
public void shouldFailQueryForOrphanLdapUser()
-
shouldFailQueryForFailedBind
public void shouldFailQueryForFailedBind()
-
shouldFailQueryForWrongLdapPassword
public void shouldFailQueryForWrongLdapPassword()
-
shouldFailQueryForWrongLdapUser
public void shouldFailQueryForWrongLdapUser()
-
shouldFailQueryForEmptyUser
public void shouldFailQueryForEmptyUser()
-
shouldFailQueryForLdapWithoutPassword
public void shouldFailQueryForLdapWithoutPassword()
-
shouldFailQueryForLdapWithoutSsl
public void shouldFailQueryForLdapWithoutSsl()
-
shouldFailForIncorrectTrustStore
public void shouldFailForIncorrectTrustStore()
-
shouldFailForUserWithColon
public void shouldFailForUserWithColon()
-
shouldRunQueryWithFileAuthenticator
public void shouldRunQueryWithFileAuthenticator() throws SQLException- Throws:
SQLException
-
shouldRunQueryForAnotherUserWithOnlyFileAuthenticator
public void shouldRunQueryForAnotherUserWithOnlyFileAuthenticator() throws SQLException- Throws:
SQLException
-
expectQueryToFail
protected void expectQueryToFail(String user, String password, String message)
- Overrides:
expectQueryToFailin classBaseLdapJdbcTest
-
-