use of org.junit.BeforeClass in project glusterfs-hadoop by gluster.
the class HcfsUmaskTest method setup.
@BeforeClass
public static void setup() throws Exception {
HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
fs = connector.create();
}
use of org.junit.BeforeClass in project glusterfs-hadoop by gluster.
the class GlusterMultipleVolumeTest method setup.
@BeforeClass
public static void setup() throws Exception {
HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
config = connector.createConfiguration();
}
use of org.junit.BeforeClass in project glusterfs-hadoop by gluster.
the class HCFSPerformanceIOTests method setup.
@BeforeClass
public static void setup() throws Exception {
HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
fs = connector.create();
}
use of org.junit.BeforeClass in project glusterfs-hadoop by gluster.
the class HcfsFileSystemTest method setup.
@BeforeClass
public static void setup() throws Exception {
HcfsTestConnectorInterface connector = HcfsTestConnectorFactory.getHcfsTestConnector();
fs = connector.create();
}
use of org.junit.BeforeClass in project gitblit by gitblit.
the class LdapBasedUnitTest method ldapInit.
/**
* Create three different in memory DS.
*
* Each DS has a different configuration:
* The first allows anonymous binds.
* The second requires authentication for all operations. It will only allow the DIRECTORY_MANAGER account
* to search for users and groups.
* The third one is like the second, but it allows users to search for users and groups, and restricts the
* USER_MANAGER from searching for groups.
*/
@BeforeClass
public static void ldapInit() throws Exception {
InMemoryDirectoryServer ds;
InMemoryDirectoryServerConfig config = createInMemoryLdapServerConfig(AuthMode.ANONYMOUS);
config.setListenerConfigs(InMemoryListenerConfig.createLDAPConfig("anonymous"));
ds = createInMemoryLdapServer(config);
AuthMode.ANONYMOUS.setDS(ds);
AuthMode.ANONYMOUS.setLdapPort(ds.getListenPort("anonymous"));
config = createInMemoryLdapServerConfig(AuthMode.DS_MANAGER);
config.setListenerConfigs(InMemoryListenerConfig.createLDAPConfig("ds_manager"));
config.setAuthenticationRequiredOperationTypes(EnumSet.allOf(OperationType.class));
ds = createInMemoryLdapServer(config);
AuthMode.DS_MANAGER.setDS(ds);
AuthMode.DS_MANAGER.setLdapPort(ds.getListenPort("ds_manager"));
config = createInMemoryLdapServerConfig(AuthMode.USR_MANAGER);
config.setListenerConfigs(InMemoryListenerConfig.createLDAPConfig("usr_manager"));
config.setAuthenticationRequiredOperationTypes(EnumSet.allOf(OperationType.class));
ds = createInMemoryLdapServer(config);
AuthMode.USR_MANAGER.setDS(ds);
AuthMode.USR_MANAGER.setLdapPort(ds.getListenPort("usr_manager"));
}
Aggregations