use of io.cdap.cdap.data.security.DefaultSecretStore in project cdap by caskdata.
the class SqlDefaultSecretStoreTest method setup.
@BeforeClass
public static void setup() throws Exception {
CConfiguration cConf = CConfiguration.create();
pg = PostgresInstantiator.createAndStart(cConf, TEMP_FOLDER.newFolder());
Injector injector = Guice.createInjector(new ConfigModule(cConf), new LocalLocationModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new StorageModule(), new AbstractModule() {
@Override
protected void configure() {
bind(MetricsCollectionService.class).to(NoOpMetricsCollectionService.class).in(Scopes.SINGLETON);
}
});
store = new DefaultSecretStore(injector.getInstance(TransactionRunner.class));
StoreDefinition.SecretStore.create(injector.getInstance(StructuredTableAdmin.class));
}
use of io.cdap.cdap.data.security.DefaultSecretStore in project cdap by caskdata.
the class NoSqlDefaultSecretStoreTest method setup.
@BeforeClass
public static void setup() {
Injector injector = AppFabricTestHelper.getInjector(CConfiguration.create());
TransactionRunner transactionRunner = injector.getInstance(TransactionRunner.class);
store = new DefaultSecretStore(transactionRunner);
}
Aggregations