public abstract class ClientAuthorizationTestCase
extends org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
Modifier and Type | Class and Description |
---|---|
protected static class |
ClientAuthorizationTestCase.OperationWithAction
This class encapsulates an
OperationContext.OperationCode with associated flags, the client to perform
the operation, and the number of operations to perform. |
protected static class |
ClientAuthorizationTestCase.OpFlags
This class specifies flags that can be used to alter the behaviour of operations being
performed by the
doOp function. |
protected static class |
ClientAuthorizationTestCase.TestAuthzCredentialGenerator
Contains a
AuthzCredentialGenerator and implements the ClientAuthorizationTestCase.TestCredentialGenerator
interface. |
protected static interface |
ClientAuthorizationTestCase.TestCredentialGenerator
Simple interface to generate credentials with authorization based on key indices also.
|
Modifier and Type | Field and Description |
---|---|
protected static org.apache.geode.test.dunit.VM |
client1 |
protected static org.apache.geode.test.dunit.VM |
client2 |
java.lang.String |
clientVersion |
protected static java.lang.String |
regionName |
protected static org.apache.geode.test.dunit.VM |
server1 |
protected static org.apache.geode.test.dunit.VM |
server2 |
protected static java.lang.String |
SUBREGION_NAME |
Constructor and Description |
---|
ClientAuthorizationTestCase() |
Modifier and Type | Method and Description |
---|---|
protected static java.util.Properties |
buildProperties(java.lang.String authenticator,
java.lang.String accessor,
boolean isAccessorPP,
java.util.Properties extraAuthProps,
java.util.Properties extraAuthzProps) |
protected java.lang.String[] |
clientIgnoredExceptions() |
protected static int |
createCacheServer(int serverPort,
java.util.Properties authProps,
java.util.Properties javaProps) |
protected static java.lang.Integer |
createCacheServer(java.util.Properties authProps,
java.util.Properties javaProps) |
protected static void |
doOp(OperationContext.OperationCode op,
int[] indices,
int flagsI,
int expectedResult) |
protected void |
executeOpBlock(java.util.List<ClientAuthorizationTestCase.OperationWithAction> opBlock,
int port1,
int port2,
java.lang.String authInit,
java.util.Properties extraAuthProps,
java.util.Properties extraAuthzProps,
ClientAuthorizationTestCase.TestCredentialGenerator credentialGenerator,
java.util.Random random) |
protected java.util.List<AuthzCredentialGenerator> |
getDummyGeneratorCombos() |
protected static Region |
getRegion() |
protected static Region |
getSubregion() |
protected AuthzCredentialGenerator |
getXmlAuthzGenerator() |
protected static java.lang.String |
indicesToString(int[] indices) |
void |
postSetUp() |
protected void |
postSetUpClientAuthorizationTestBase() |
void |
postTearDown() |
protected void |
postTearDownClientAuthorizationTestBase() |
void |
preSetUp() |
protected void |
preSetUpClientAuthorizationTestBase() |
void |
preTearDown() |
protected void |
preTearDownClientAuthorizationTestBase() |
protected void |
runOpsWithFailOver(ClientAuthorizationTestCase.OperationWithAction[] opCodes,
java.lang.String testName) |
protected java.lang.String[] |
serverIgnoredExceptions() |
basicGetSystem, cleanDiskDirs, cleanupAllVms, deleteBACKUPDiskStoreFile, destroyRegions, disconnectAllFromDS, disconnectFromDS, getBlackboard, getDistributedSystemProperties, getLonerSystem, getName, getSystem, getSystem, getSystemStatic, getTestClass, getTestMethodName, getUniqueName, initializeBlackboard, initializeDistributedTestCase, isConnectedToDS, nullSystem, postTearDownAssertions, preTearDownAssertions, setSystem, setUpDistributedTestCase, tearDownDistributedTestCase
protected static org.apache.geode.test.dunit.VM server1
protected static org.apache.geode.test.dunit.VM server2
protected static org.apache.geode.test.dunit.VM client1
protected static org.apache.geode.test.dunit.VM client2
public java.lang.String clientVersion
protected static final java.lang.String regionName
protected static final java.lang.String SUBREGION_NAME
public final void preSetUp() throws java.lang.Exception
preSetUp
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
preSetUp
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
java.lang.Exception
public final void postSetUp() throws java.lang.Exception
postSetUp
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
postSetUp
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
java.lang.Exception
protected java.lang.String[] serverIgnoredExceptions()
protected java.lang.String[] clientIgnoredExceptions()
protected void preSetUpClientAuthorizationTestBase() throws java.lang.Exception
java.lang.Exception
protected void postSetUpClientAuthorizationTestBase() throws java.lang.Exception
java.lang.Exception
public final void preTearDown() throws java.lang.Exception
preTearDown
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
preTearDown
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
java.lang.Exception
public final void postTearDown() throws java.lang.Exception
postTearDown
in interface org.apache.geode.test.dunit.internal.DistributedTestFixture
postTearDown
in class org.apache.geode.test.dunit.internal.JUnit4DistributedTestCase
java.lang.Exception
protected void preTearDownClientAuthorizationTestBase() throws java.lang.Exception
java.lang.Exception
protected void postTearDownClientAuthorizationTestBase() throws java.lang.Exception
java.lang.Exception
protected static java.util.Properties buildProperties(java.lang.String authenticator, java.lang.String accessor, boolean isAccessorPP, java.util.Properties extraAuthProps, java.util.Properties extraAuthzProps)
protected static java.lang.Integer createCacheServer(java.util.Properties authProps, java.util.Properties javaProps)
protected static int createCacheServer(int serverPort, java.util.Properties authProps, java.util.Properties javaProps)
protected static Region getRegion()
protected static Region getSubregion()
protected static java.lang.String indicesToString(int[] indices)
protected static void doOp(OperationContext.OperationCode op, int[] indices, int flagsI, int expectedResult) throws java.lang.InterruptedException
java.lang.InterruptedException
protected void executeOpBlock(java.util.List<ClientAuthorizationTestCase.OperationWithAction> opBlock, int port1, int port2, java.lang.String authInit, java.util.Properties extraAuthProps, java.util.Properties extraAuthzProps, ClientAuthorizationTestCase.TestCredentialGenerator credentialGenerator, java.util.Random random) throws java.lang.InterruptedException
java.lang.InterruptedException
protected AuthzCredentialGenerator getXmlAuthzGenerator()
protected java.util.List<AuthzCredentialGenerator> getDummyGeneratorCombos()
protected void runOpsWithFailOver(ClientAuthorizationTestCase.OperationWithAction[] opCodes, java.lang.String testName) throws java.lang.InterruptedException
java.lang.InterruptedException