public class SecurityTestUtil extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static int |
AUTHFAIL_EXCEPTION |
static int |
AUTHREQ_EXCEPTION |
static int |
CONNREFUSED_EXCEPTION |
protected static String[] |
keys |
static int |
NO_AVAILABLE_SERVERS |
static int |
NO_EXCEPTION |
static int |
NOFORCE_AUTHREQ_EXCEPTION |
static int |
NOTAUTHZ_EXCEPTION |
protected static String[] |
nvalues |
static int |
OTHER_EXCEPTION |
protected static String |
regionName |
protected static String[] |
values |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
SecurityTestUtil(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
addExpectedExceptions(String[] expectedExceptions,
com.gemstone.gemfire.LogWriter logger) |
static void |
clearStaticSSLContext() |
static void |
closeCache() |
static void |
closeCache(Boolean keepAlive) |
static Properties |
concatProperties(Properties[] propsList) |
static void |
createCacheClient(String authInitModule,
Properties authProps,
Properties javaProps,
Integer[] ports,
Integer numConnections,
Boolean setupDynamicRegionFactory,
Integer expectedResult) |
static void |
createCacheClient(String authInitModule,
Properties authProps,
Properties javaProps,
Integer[] ports,
Integer numConnections,
Boolean setupDynamicRegionFactory,
String multiUserMode,
Boolean subscriptionEnabled,
Integer expectedResult) |
static void |
createCacheClient(String authInitModule,
Properties authProps,
Properties javaProps,
Integer[] ports,
Integer numConnections,
Boolean setupDynamicRegionFactory,
String multiUserMode,
Integer expectedResult) |
static void |
createCacheClient(String authInitModule,
Properties authProps,
Properties javaProps,
Integer[] ports,
Object numConnections,
Integer expectedResult) |
static void |
createCacheClient(String authInitModule,
Properties authProps,
Properties javaProps,
Integer[] ports,
Object numConnections,
String multiUserMode,
Integer expectedResult) |
static void |
createCacheClientForMultiUserMode(Integer numOfUsers,
String authInitModule,
Properties[] authProps,
Properties javaProps,
Integer[] ports,
Integer numConnections,
Boolean setupDynamicRegionFactory,
Integer expectedResult) |
static void |
createCacheClientForMultiUserMode(Integer numOfUsers,
String authInitModule,
Properties[] authProps,
Properties javaProps,
Integer[] ports,
Integer numConnections,
Boolean setupDynamicRegionFactory,
String durableClientId,
Integer expectedResult) |
static Integer |
createCacheServer(Properties authProps,
Object javaProps,
Integer dsPort,
String locatorString,
Integer serverPort,
Boolean setupDynamicRegionFactory,
Integer expectedResult) |
static Integer |
createCacheServer(Properties authProps,
Object javaProps,
Integer dsPort,
String locatorString,
Integer serverPort,
Integer expectedResult) |
static void |
createProxyCache(Integer[] userIndices,
Properties[] props) |
com.gemstone.gemfire.distributed.DistributedSystem |
createSystem(Properties sysProps,
Properties javaProps) |
static void |
doGets(Integer num) |
static void |
doGets(Integer num,
Integer expectedResult) |
static void |
doLocalGets(Integer num) |
static void |
doMultiUserContainsKeys(Integer num,
Integer numOfUsers,
Integer[] expectedResults,
Boolean[] results) |
static void |
doMultiUserDestroys(Integer num,
Integer numOfUsers,
Integer[] expectedResults) |
static void |
doMultiUserFE(Integer numOfUsers,
com.gemstone.gemfire.cache.execute.Function function,
Integer[] expectedResults,
Object[] results,
Boolean isFailoverCase) |
static void |
doMultiUserGetAll(Integer numOfUsers,
Integer[] expectedResults) |
static void |
doMultiUserGets(Integer num,
Integer numOfUsers,
Integer[] expectedResults) |
static void |
doMultiUserInvalidates(Integer num,
Integer numOfUsers,
Integer[] expectedResults) |
static void |
doMultiUserPuts(Integer num,
Integer numOfUsers,
Integer[] expectedResults) |
static void |
doMultiUserQueries(Integer numOfUsers,
Integer[] expectedResults,
Integer valueSize) |
static void |
doMultiUserQueryExecute(Integer numOfUsers,
Integer[] expectedResults,
Integer result) |
static void |
doMultiUserRegionDestroys(Integer numOfUsers,
Integer[] expectedResults) |
static void |
doNGets(Integer num) |
static void |
doNGets(Integer num,
Integer expectedResult) |
static void |
doNLocalGets(Integer num) |
static void |
doNPuts(Integer num) |
static void |
doNPuts(Integer num,
Integer expectedResult) |
static void |
doProxyCacheClose() |
static void |
doPuts(Integer num) |
static void |
doPuts(Integer num,
Integer expectedResult) |
static void |
doSimpleGet(String expectedResult) |
static void |
doSimplePut(String expectedResult) |
static List |
getAllGenerators()
get all the CredentialsGenerators
|
static com.gemstone.gemfire.cache.Cache |
getCache() |
static Object |
getLocalValue(com.gemstone.gemfire.cache.Region region,
Object key) |
static Integer |
getLocatorPort() |
static String |
getLocatorString()
Note that this clears the string after returning for convenience in reusing
for other tests.
|
static Integer |
getMcastPort() |
static void |
initDynamicRegionFactory() |
static void |
registerExpectedExceptions(String[] expectedExceptions) |
static void |
removeExpectedExceptions(String[] expectedExceptions,
com.gemstone.gemfire.LogWriter logger) |
static void |
restartCacheServers() |
static void |
setJavaProps(Properties javaProps) |
static void |
startLocator(String name,
Integer port,
Object extraProps,
Object javaProps,
String[] expectedExceptions) |
static void |
stopCacheServers() |
static void |
stopLocator(Integer port,
String[] expectedExceptions) |
static void |
waitForCondition(Callable cond) |
static void |
waitForCondition(Callable cond,
int sleepMillis,
int numTries) |
addExpectedException, addExpectedException, addHydraProperties, attachDebugger, checkBBFlag, cleanupAllVms, clearBBFlag, crashDistributedSystem, crashDistributedSystem, createLogWriter, disconnectAllFromDS, disconnectFromDS, dumpAllStacks, dumpMyThreads, dumpStack, dumpStack, dumpStack, dumpStackTrace, fail, getAllDistributedSystemProperties, getDistributedSystemProperties, getDUnitLocatorAddress, getDUnitLocatorPort, getDUnitLocatorString, getDUnitLogLevel, getIPLiteral, getLogWriter, getLonerSystem, getMcastSystem, getMcastSystem, getRepeatTimeoutMs, getServerHostName, getSystem, getSystem, getTestClass, getTestName, getUniqueName, getVMCount, incBBFlag, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVM, invokeInEveryVMRepeatingIfNecessary, invokeInLocator, invokeRepeatingIfNecessary, isConnectedToDS, join, noteTiming, pause, pause, perVMSetUp, realTearDown, setDiskStoreForGateway, setSystem, setTestName, setUp, staticPause, tearDown, tearDown2, unregisterAllDataSerializersFromAllVms, unregisterDataSerializerInThisVM, unregisterInstantiatorsInThisVM, waitForBBFlag, waitForCriterion, waitMutexassertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertEquals, assertFalse, assertFalse, assertNotNull, assertNotNull, assertNotSame, assertNotSame, assertNull, assertNull, assertSame, assertSame, assertTrue, assertTrue, countTestCases, createResult, fail, fail, failNotEquals, failNotSame, failSame, format, getName, run, run, runBare, runTest, setName, toStringpublic static final int NO_EXCEPTION
public static final int AUTHREQ_EXCEPTION
public static final int AUTHFAIL_EXCEPTION
public static final int CONNREFUSED_EXCEPTION
public static final int NOTAUTHZ_EXCEPTION
public static final int OTHER_EXCEPTION
public static final int NO_AVAILABLE_SERVERS
public static final int NOFORCE_AUTHREQ_EXCEPTION
protected static final String regionName
protected static final String[] keys
protected static final String[] values
protected static final String[] nvalues
public SecurityTestUtil(String name)
public static void addExpectedExceptions(String[] expectedExceptions, com.gemstone.gemfire.LogWriter logger)
public static void removeExpectedExceptions(String[] expectedExceptions, com.gemstone.gemfire.LogWriter logger)
public static void setJavaProps(Properties javaProps)
public com.gemstone.gemfire.distributed.DistributedSystem createSystem(Properties sysProps, Properties javaProps)
public static void initDynamicRegionFactory()
public static Integer getLocatorPort()
public static String getLocatorString()
public static Integer getMcastPort()
public static Properties concatProperties(Properties[] propsList)
public static void registerExpectedExceptions(String[] expectedExceptions)
public static Integer createCacheServer(Properties authProps, Object javaProps, Integer dsPort, String locatorString, Integer serverPort, Integer expectedResult)
public static Integer createCacheServer(Properties authProps, Object javaProps, Integer dsPort, String locatorString, Integer serverPort, Boolean setupDynamicRegionFactory, Integer expectedResult)
public static void createCacheClient(String authInitModule, Properties authProps, Properties javaProps, Integer[] ports, Object numConnections, Integer expectedResult)
public static void createCacheClient(String authInitModule, Properties authProps, Properties javaProps, Integer[] ports, Object numConnections, String multiUserMode, Integer expectedResult)
public static void createCacheClient(String authInitModule, Properties authProps, Properties javaProps, Integer[] ports, Integer numConnections, Boolean setupDynamicRegionFactory, Integer expectedResult)
public static void createCacheClient(String authInitModule, Properties authProps, Properties javaProps, Integer[] ports, Integer numConnections, Boolean setupDynamicRegionFactory, String multiUserMode, Integer expectedResult)
public static void createCacheClient(String authInitModule, Properties authProps, Properties javaProps, Integer[] ports, Integer numConnections, Boolean setupDynamicRegionFactory, String multiUserMode, Boolean subscriptionEnabled, Integer expectedResult)
public static void createCacheClientForMultiUserMode(Integer numOfUsers, String authInitModule, Properties[] authProps, Properties javaProps, Integer[] ports, Integer numConnections, Boolean setupDynamicRegionFactory, Integer expectedResult)
public static void createCacheClientForMultiUserMode(Integer numOfUsers, String authInitModule, Properties[] authProps, Properties javaProps, Integer[] ports, Integer numConnections, Boolean setupDynamicRegionFactory, String durableClientId, Integer expectedResult)
public static void createProxyCache(Integer[] userIndices, Properties[] props)
public static void stopCacheServers()
public static void restartCacheServers()
public static void startLocator(String name, Integer port, Object extraProps, Object javaProps, String[] expectedExceptions)
public static List getAllGenerators()
public static com.gemstone.gemfire.cache.Cache getCache()
public static void waitForCondition(Callable cond)
public static void waitForCondition(Callable cond, int sleepMillis, int numTries)
public static Object getLocalValue(com.gemstone.gemfire.cache.Region region, Object key)
public static void doProxyCacheClose()
public static void doPuts(Integer num)
public static void doMultiUserPuts(Integer num, Integer numOfUsers, Integer[] expectedResults)
public static void doGets(Integer num)
public static void doMultiUserGetAll(Integer numOfUsers, Integer[] expectedResults)
public static void doMultiUserGets(Integer num, Integer numOfUsers, Integer[] expectedResults)
public static void doMultiUserRegionDestroys(Integer numOfUsers, Integer[] expectedResults)
public static void doMultiUserDestroys(Integer num, Integer numOfUsers, Integer[] expectedResults)
public static void doMultiUserInvalidates(Integer num, Integer numOfUsers, Integer[] expectedResults)
public static void doMultiUserContainsKeys(Integer num, Integer numOfUsers, Integer[] expectedResults, Boolean[] results)
public static void doMultiUserQueries(Integer numOfUsers, Integer[] expectedResults, Integer valueSize)
public static void doMultiUserFE(Integer numOfUsers, com.gemstone.gemfire.cache.execute.Function function, Integer[] expectedResults, Object[] results, Boolean isFailoverCase)
public static void doMultiUserQueryExecute(Integer numOfUsers, Integer[] expectedResults, Integer result)
public static void doLocalGets(Integer num)
public static void doNPuts(Integer num)
public static void doNGets(Integer num)
public static void doNLocalGets(Integer num)
public static void doSimpleGet(String expectedResult)
public static void doSimplePut(String expectedResult)
public static void clearStaticSSLContext()
public static void closeCache()
public static void closeCache(Boolean keepAlive)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.