public class ClientAuthorizationTestBase extends DistributedTestCase
| Modifier and Type | Class and Description |
|---|---|
static class |
ClientAuthorizationTestBase.AuthzCqListener
Implements the
CqListener interface and counts the number of
different operations and also queues up the received updates to precise
checking of each update. |
static class |
ClientAuthorizationTestBase.OperationWithAction
This class encapsulates an
OperationContext.OperationCode with associated flags, the
client to perform the operation, and the number of operations to perform. |
static class |
ClientAuthorizationTestBase.OpFlags
This class specifies flags that can be used to alter the behaviour of
operations being performed by the
doOp function. |
protected static class |
ClientAuthorizationTestBase.TestAuthzCredentialGenerator
Contains a
AuthzCredentialGenerator and implements the
ClientAuthorizationTestBase.TestCredentialGenerator interface. |
static interface |
ClientAuthorizationTestBase.TestCredentialGenerator
Simple interface to generate credentials with authorization based on key
indices also.
|
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
protected static VM |
client1 |
protected static VM |
client2 |
protected static String[] |
clientExpectedExceptions |
protected static String |
regionName |
protected static VM |
server1 |
protected static VM |
server2 |
protected static String[] |
serverExpectedExceptions |
protected static String |
subregionName |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
ClientAuthorizationTestBase(String name)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
protected static Properties |
buildProperties(String authenticator,
String accessor,
boolean isAccessorPP,
Properties extraAuthProps,
Properties extraAuthzProps) |
static void |
createCacheClient(Object authInit,
Object authProps,
Object javaProps,
Integer[] ports,
Integer numConnections,
Boolean setupDynamicRegionFactory,
Integer expectedResult) |
static void |
createCacheServer(Integer mcastPort,
Integer serverPort,
Object authProps,
Object javaProps) |
static Integer |
createCacheServer(Integer mcastPort,
Object authProps,
Object javaProps) |
static void |
doOp(Byte opCode,
int[] indices,
Integer flagsI,
Integer expectedResult) |
protected void |
executeOpBlock(List opBlock,
Integer port1,
Integer port2,
String authInit,
Properties extraAuthProps,
Properties extraAuthzProps,
ClientAuthorizationTestBase.TestCredentialGenerator gen,
Random rnd) |
protected List |
getAllGeneratorCombos() |
protected static com.gemstone.gemfire.cache.Region |
getRegion() |
protected static com.gemstone.gemfire.cache.Region |
getSubregion() |
protected static String |
indicesToString(int[] indices) |
protected void |
runOpsWithFailover(ClientAuthorizationTestBase.OperationWithAction[] opCodes,
String testName) |
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, toStringprotected static VM server1
protected static VM server2
protected static VM client1
protected static VM client2
protected static final String regionName
protected static final String subregionName
protected static final String[] serverExpectedExceptions
protected static final String[] clientExpectedExceptions
public ClientAuthorizationTestBase(String name)
protected static Properties buildProperties(String authenticator, String accessor, boolean isAccessorPP, Properties extraAuthProps, Properties extraAuthzProps)
public static Integer createCacheServer(Integer mcastPort, Object authProps, Object javaProps)
public static void createCacheServer(Integer mcastPort, Integer serverPort, Object authProps, Object javaProps)
public static void createCacheClient(Object authInit, Object authProps, Object javaProps, Integer[] ports, Integer numConnections, Boolean setupDynamicRegionFactory, Integer expectedResult)
protected static com.gemstone.gemfire.cache.Region getRegion()
protected static com.gemstone.gemfire.cache.Region getSubregion()
protected static String indicesToString(int[] indices)
protected void executeOpBlock(List opBlock, Integer port1, Integer port2, String authInit, Properties extraAuthProps, Properties extraAuthzProps, ClientAuthorizationTestBase.TestCredentialGenerator gen, Random rnd)
protected List getAllGeneratorCombos()
protected void runOpsWithFailover(ClientAuthorizationTestBase.OperationWithAction[] opCodes, String testName)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.