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(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 |
closeCache()
close the cache
|
static void |
closeTheSite(String[] expectedExceptions) |
static void |
createTheSite(Properties props,
Object javaProps,
String site,
String hub,
Integer hubEP,
String gateway,
Integer gatewayEP,
String[] expectedExceptions) |
static void |
doNDestroys(Integer n,
Integer offset) |
static void |
doNPuts(Integer n,
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(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(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testOneSiteValidOtherInvalidCredentials()
public void testBothSiteValidAuthzCredentials()
public void testOneSiteValidOtherInvalidAuthzCredentials()
public void testBothSiteInvalidAuthzCredentials()
public void testValidInvalidDestroyAuthzCredentials()
public static void closeTheSite(String[] expectedExceptions)
public static void createTheSite(Properties props, Object javaProps, String site, String hub, Integer hubEP, String gateway, Integer gatewayEP, String[] expectedExceptions)
public static void verifyNInCache(Integer n)
protected static Properties buildProperties(String authenticator, String accessor, boolean isAccessorPP, Properties extraAuthProps, Properties extraAuthzProps)
public void tearDown2()
throws Exception
tearDown2 in class DistributedTestCaseExceptionpublic static void closeCache()
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.