Package io.prestosql.tests.jdbc
Class BaseLdapJdbcTest
- java.lang.Object
-
- io.prestosql.tempto.ProductTest
-
- io.prestosql.tests.jdbc.BaseLdapJdbcTest
-
- All Implemented Interfaces:
io.prestosql.tempto.RequirementsProvider
- Direct Known Subclasses:
TestLdapPrestoJdbc
public abstract class BaseLdapJdbcTest extends io.prestosql.tempto.ProductTest implements io.prestosql.tempto.RequirementsProvider
-
-
Field Summary
Fields Modifier and Type Field Description protected StringldapTruststorePasswordprotected StringldapTruststorePathprotected StringldapUserNameprotected StringldapUserPasswordprotected static StringNATION_SELECT_ALL_QUERYprotected static longTIMEOUT
-
Constructor Summary
Constructors Constructor Description BaseLdapJdbcTest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected io.prestosql.tempto.query.QueryResultexecuteLdapQuery(String query, String name, String password)protected voidexpectQueryToFail(String user, String password, String message)protected StringgetLdapUrl()protected abstract StringgetLdapUrlFormat()io.prestosql.tempto.RequirementgetRequirements(io.prestosql.tempto.configuration.Configuration configuration)protected StringprestoServer()
-
-
-
Field Detail
-
TIMEOUT
protected static final long TIMEOUT
- See Also:
- Constant Field Values
-
NATION_SELECT_ALL_QUERY
protected static final String NATION_SELECT_ALL_QUERY
- See Also:
- Constant Field Values
-
ldapTruststorePath
@Inject protected String ldapTruststorePath
-
ldapTruststorePassword
@Inject protected String ldapTruststorePassword
-
ldapUserName
@Inject protected String ldapUserName
-
ldapUserPassword
@Inject protected String ldapUserPassword
-
-
Method Detail
-
getRequirements
public io.prestosql.tempto.Requirement getRequirements(io.prestosql.tempto.configuration.Configuration configuration)
- Specified by:
getRequirementsin interfaceio.prestosql.tempto.RequirementsProvider
-
executeLdapQuery
protected io.prestosql.tempto.query.QueryResult executeLdapQuery(String query, String name, String password) throws SQLException
- Throws:
SQLException
-
prestoServer
protected String prestoServer()
-
getLdapUrl
protected String getLdapUrl()
-
getLdapUrlFormat
protected abstract String getLdapUrlFormat()
-
-