use of com.bakdata.conquery.models.config.XodusStoreFactory in project conquery by bakdata.
the class TestConquery method configurePathsAndLogging.
@SneakyThrows
public static void configurePathsAndLogging(ConqueryConfig config, File tmpDir) {
config.setFailOnError(true);
XodusStoreFactory storageConfig = new XodusStoreFactory();
storageConfig.setDirectory(tmpDir.toPath());
config.setStorage(storageConfig);
config.getStandalone().setNumberOfShardNodes(2);
// configure logging
config.setLoggingFactory(new TestLoggingFactory());
config.getCluster().setEntityBucketSize(3);
}
use of com.bakdata.conquery.models.config.XodusStoreFactory in project conquery by bakdata.
the class ApiTokenRealmTest method overrideConfig.
@Override
public ConqueryConfig overrideConfig(ConqueryConfig conf, final File workDir) {
XodusStoreFactory storageConfig = (XodusStoreFactory) conf.getStorage();
final Path storageDir = workDir.toPath().resolve(storageConfig.getDirectory().resolve(getClass().getSimpleName()));
return conf.withStorage(storageConfig.withDirectory(storageDir)).withAuthenticationRealms(ImmutableList.<AuthenticationRealmFactory>builder().addAll(conf.getAuthenticationRealms()).add(new ApiTokenRealmFactory(storageDir, new XodusConfig())).build());
}
Aggregations