@BeforeClass public static void setup() throws IOException { conf = CConfiguration.create(); conf.set(Constants.CFG_LOCAL_DATA_DIR, TMP_FOLDER.newFolder().getAbsolutePath()); Injector injector = Guice.createInjector(new ConfigModule(conf), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getNoOpModule()); authEnforcer = injector.getInstance(AuthorizationEnforcer.class); authenticationContext = injector.getInstance(AuthenticationContext.class); }
new NamespaceStoreModule().getStandaloneModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new MessagingServerRuntimeModule().getInMemoryModules(), new PreviewHttpModule().getStandaloneModules(),
new NamespaceStoreModule().getStandaloneModules(), new AuthorizationModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new MessagingServerRuntimeModule().getInMemoryModules(), new PreviewHttpModule(),
@BeforeClass public static void createInjector() throws IOException { CConfiguration cConf = CConfiguration.create(); cConf.set(Constants.CFG_LOCAL_DATA_DIR, TEMP_FOLDER.newFolder().getAbsolutePath()); Injector injector = Guice.createInjector( new ConfigModule(cConf), new DataSetsModules().getInMemoryModules(), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule() ); TransactionManager txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); ownerStore = injector.getInstance(OwnerStore.class); }
new TransactionInMemoryModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new AbstractModule() {
@BeforeClass public static void setup() throws Exception { CConfiguration conf = CConfiguration.create(); conf.set(Constants.CFG_LOCAL_DATA_DIR, tmpFolder.newFolder().getAbsolutePath()); Injector injector = Guice.createInjector( new ConfigModule(conf), new NonCustomLocationUnitTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new InMemoryDiscoveryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new DataSetsModules().getInMemoryModules(), new DataFabricLevelDBModule(), new TransactionMetricsModule()); dsFramework = injector.getInstance(DatasetFramework.class); }
new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new AbstractModule() {
@BeforeClass public static void setup() { Injector injector = Guice.createInjector( new ConfigModule(), Modules.override( new DataSetsModules().getInMemoryModules()).with(new AbstractModule() { @Override protected void configure() { // Need the distributed metadata store. bind(MetadataStore.class).to(DefaultMetadataStore.class); } }), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule() ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); storage = injector.getInstance(DatasetMetadataStorage.class); }
new AuthenticationContextModules().getMasterModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AbstractModule() { @Override
new InMemoryDiscoveryModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new TransactionInMemoryModule(),
@BeforeClass public static void setupDefaultStore() { injector = Guice.createInjector( new ConfigModule(), Modules.override( new DataSetsModules().getInMemoryModules()).with(new AbstractModule() { @Override protected void configure() { // Need the distributed metadata store. bind(MetadataStore.class).to(DefaultMetadataStore.class); } }), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new AuditModule().getInMemoryModules() ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); AbstractMetadataStoreTest.commonSetup(); }
@BeforeClass public static void setupDefaultStore() { injector = Guice.createInjector( new ConfigModule(), Modules.override( new DataSetsModules().getInMemoryModules()).with(new AbstractModule() { @Override protected void configure() { // Need the distributed metadata store. bind(MetadataStore.class).to(StorageProviderMetadataStore.class); bind(MetadataStorage.class).to(DatasetMetadataStorage.class).in(Scopes.SINGLETON); } }), new LocalLocationModule(), new TransactionInMemoryModule(), new SystemDatasetRuntimeModule().getInMemoryModules(), new NamespaceAdminTestModule(), new AuthorizationTestModule(), new AuthorizationEnforcementModule().getInMemoryModules(), new AuthenticationContextModules().getMasterModule(), new AuditModule().getInMemoryModules() ); txManager = injector.getInstance(TransactionManager.class); txManager.startAndWait(); AbstractMetadataStoreTest.commonSetup(); }