use of alluxio.table.common.udb.UdbConfiguration in project alluxio by Alluxio.
the class GlueDatabaseTest method createNullName.
@Test
public void createNullName() {
mExpection.expect(IllegalArgumentException.class);
UdbContext udbContext = new UdbContext(null, null, "glue", null, null, DB_NAME);
assertEquals(DB_NAME, GlueDatabase.create(udbContext, new UdbConfiguration(ImmutableMap.of())).getName());
}
use of alluxio.table.common.udb.UdbConfiguration in project alluxio by Alluxio.
the class HiveDatabaseTest method createEmptyName.
@Test
public void createEmptyName() {
mExpection.expect(IllegalArgumentException.class);
UdbContext udbContext = new UdbContext(null, null, "hive", "thrift://not_running:9083", "", DB_NAME);
assertEquals(DB_NAME, HiveDatabase.create(udbContext, new UdbConfiguration(ImmutableMap.of())).getName());
}
use of alluxio.table.common.udb.UdbConfiguration in project alluxio by Alluxio.
the class HiveDatabaseTest method createEmptyConnectionUri.
@Test
public void createEmptyConnectionUri() {
mExpection.expect(IllegalArgumentException.class);
UdbContext udbContext = new UdbContext(null, null, "hive", "", DB_NAME, DB_NAME);
assertEquals(DB_NAME, HiveDatabase.create(udbContext, new UdbConfiguration(ImmutableMap.of())).getName());
}
use of alluxio.table.common.udb.UdbConfiguration in project alluxio by Alluxio.
the class HiveDatabaseTest method createNullName.
@Test
public void createNullName() {
mExpection.expect(IllegalArgumentException.class);
UdbContext udbContext = new UdbContext(null, null, "hive", "thrift://not_running:9083", null, DB_NAME);
assertEquals(DB_NAME, HiveDatabase.create(udbContext, new UdbConfiguration(ImmutableMap.of())).getName());
}
use of alluxio.table.common.udb.UdbConfiguration in project alluxio by Alluxio.
the class HiveDatabaseTest method before.
@Before
public void before() {
mUdbContext = new UdbContext(null, null, "hive", "thrift://not_running:9083", DB_NAME, DB_NAME);
mUdbConf = new UdbConfiguration(CONF);
}
Aggregations