public class WanAuthorizationDUnitTest extends ClientAuthorizationTestBase
ClientAuthorizationTestBase.AuthzCqListener, ClientAuthorizationTestBase.OperationWithAction, ClientAuthorizationTestBase.OpFlags, ClientAuthorizationTestBase.TestAuthzCredentialGenerator, ClientAuthorizationTestBase.TestCredentialGeneratorDistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2client1, client2, clientExpectedExceptions, regionName, server1, server2, serverExpectedExceptions, subregionNamelogPerTest, reconnect, system, testName| Constructor and Description |
|---|
WanAuthorizationDUnitTest(java.lang.String name)
constructor
|
| 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) |
static void |
closeCache()
close the cache
|
static void |
closeTheSite(java.lang.String[] expectedExceptions) |
static void |
createTheSite(java.util.Properties props,
java.lang.Object javaProps,
java.lang.String site,
java.lang.String hub,
java.lang.Integer hubEP,
java.lang.String gateway,
java.lang.Integer gatewayEP,
java.lang.String[] expectedExceptions) |
static void |
doNDestroys(java.lang.Integer n,
java.lang.Integer offset) |
static void |
doNPuts(java.lang.Integer n,
java.lang.Integer offset) |
void |
setUp()
Sets up the test (noop).
|
void |
tearDown2()
close the clients and teh servers
|
void |
testBothSiteInvalidAuthzCredentials() |
void |
testBothSiteValidAuthzCredentials() |
void |
testOneSiteValidOtherInvalidAuthzCredentials() |
void |
testOneSiteValidOtherInvalidCredentials() |
void |
testValidInvalidDestroyAuthzCredentials() |
static void |
verifyNInCache(java.lang.Integer n) |
createCacheClient, createCacheServer, createCacheServer, doOp, executeOpBlock, getAllGeneratorCombos, getRegion, getSubregion, indicesToString, runOpsWithFailoveraddExpectedException, 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, staticPause, tearDown, 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 WanAuthorizationDUnitTest(java.lang.String name)
public void setUp()
throws java.lang.Exception
DistributedTestCasesetUp in class DistributedTestCasejava.lang.Exceptionpublic void testOneSiteValidOtherInvalidCredentials()
public void testBothSiteValidAuthzCredentials()
public void testOneSiteValidOtherInvalidAuthzCredentials()
public void testBothSiteInvalidAuthzCredentials()
public void testValidInvalidDestroyAuthzCredentials()
public static void closeTheSite(java.lang.String[] expectedExceptions)
public static void createTheSite(java.util.Properties props,
java.lang.Object javaProps,
java.lang.String site,
java.lang.String hub,
java.lang.Integer hubEP,
java.lang.String gateway,
java.lang.Integer gatewayEP,
java.lang.String[] expectedExceptions)
public static void doNPuts(java.lang.Integer n,
java.lang.Integer offset)
public static void doNDestroys(java.lang.Integer n,
java.lang.Integer offset)
public static void verifyNInCache(java.lang.Integer n)
protected static java.util.Properties buildProperties(java.lang.String authenticator,
java.lang.String accessor,
boolean isAccessorPP,
java.util.Properties extraAuthProps,
java.util.Properties extraAuthzProps)
public void tearDown2()
throws java.lang.Exception
tearDown2 in class DistributedTestCasejava.lang.Exceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.