io.trino.tests.product.TrinoTemptoPlugin Maven / Gradle / Ivy
The newest version!
/*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package io.trino.tests.product;
import com.google.common.collect.ImmutableList;
import io.trino.tempto.TemptoPlugin;
import io.trino.tempto.fulfillment.RequirementFulfiller;
import io.trino.tempto.fulfillment.table.TableDefinition;
import io.trino.tempto.fulfillment.table.TableManager;
import io.trino.tempto.fulfillment.table.kafka.KafkaTableManager;
import io.trino.tempto.initialization.SuiteModuleProvider;
import io.trino.tempto.internal.fulfillment.ldap.LdapObjectFulfiller;
import io.trino.tempto.internal.fulfillment.ldap.LdapObjectModuleProvider;
import io.trino.tests.product.hive.HiveVersionProvider;
import java.util.List;
import static io.trino.tests.product.hive.AllSimpleTypesTableDefinitions.ALL_HIVE_SIMPLE_TYPES_AVRO;
import static io.trino.tests.product.hive.AllSimpleTypesTableDefinitions.ALL_HIVE_SIMPLE_TYPES_ORC;
import static io.trino.tests.product.hive.AllSimpleTypesTableDefinitions.ALL_HIVE_SIMPLE_TYPES_PARQUET;
import static io.trino.tests.product.hive.AllSimpleTypesTableDefinitions.ALL_HIVE_SIMPLE_TYPES_RCFILE;
import static io.trino.tests.product.hive.AllSimpleTypesTableDefinitions.ALL_HIVE_SIMPLE_TYPES_TEXTFILE;
import static io.trino.tests.product.hive.TestHiveBucketedTables.BUCKETED_NATION;
import static io.trino.tests.product.hive.TestHiveBucketedTables.BUCKETED_NATION_PREPARED;
import static io.trino.tests.product.hive.TestHiveBucketedTables.BUCKETED_PARTITIONED_NATION;
import static io.trino.tests.product.hive.TestHiveBucketedTables.BUCKETED_SORTED_NATION;
public class TrinoTemptoPlugin
implements TemptoPlugin
{
@Override
public List> getFulfillers()
{
return ImmutableList.of(LdapObjectFulfiller.class);
}
@Override
public List> getSuiteModules()
{
return ImmutableList.of(
LdapObjectModuleProvider.class,
HiveVersionProvider.ModuleProvider.class);
}
@SuppressWarnings("rawtypes")
@Override
public List> getTableManagers()
{
return ImmutableList.of(KafkaTableManager.class);
}
@Override
public List getTables()
{
return ImmutableList.of(
ALL_HIVE_SIMPLE_TYPES_TEXTFILE,
ALL_HIVE_SIMPLE_TYPES_RCFILE,
ALL_HIVE_SIMPLE_TYPES_AVRO,
ALL_HIVE_SIMPLE_TYPES_ORC,
ALL_HIVE_SIMPLE_TYPES_PARQUET,
BUCKETED_NATION,
BUCKETED_PARTITIONED_NATION,
BUCKETED_NATION_PREPARED,
BUCKETED_SORTED_NATION);
}
}