public class P2PAuthenticationDUnitTest extends DistributedTestCase
DistributedTestCase.ExpectedException, DistributedTestCase.WaitCriterion, DistributedTestCase.WaitCriterion2| Modifier and Type | Field and Description |
|---|---|
static String |
PASSWORD |
static String |
USER_NAME |
logPerTest, reconnect, system, testName| Constructor and Description |
|---|
P2PAuthenticationDUnitTest(String name) |
| Modifier and Type | Method and Description |
|---|---|
static void |
createDS(Properties props,
Object javaProps) |
void |
disabled_testP2PViewChangeReject()
The strategy is to test view change reject by having two different
authenticators on different VMs.
|
void |
setUp()
Sets up the test (noop).
|
void |
testIllegalPropertyCombos()
Check that mcast-port setting for discovery or with locator are
incompatible with security
|
void |
testP2PAuthenticationWithBothValidAndInValidCredentials() |
void |
testP2PAuthenticationWithInvalidAuthenticator() |
void |
testP2PAuthenticationWithInvalidAuthInitialize() |
void |
testP2PAuthenticationWithNoCredentials() |
void |
testP2PAuthenticationWithValidCredentials() |
void |
testP2PLargeCredentialSucceeds()
The strategy is to test credential size greater than UDP datagram size.
|
static void |
verifyMembers(Integer numExpectedMembers) |
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, 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 String USER_NAME
public static final String PASSWORD
public P2PAuthenticationDUnitTest(String name)
public void setUp()
throws Exception
DistributedTestCasesetUp in class DistributedTestCaseExceptionpublic void testIllegalPropertyCombos()
throws Exception
Exceptionpublic void testP2PAuthenticationWithInvalidAuthInitialize()
throws Exception
Exceptionpublic void testP2PAuthenticationWithInvalidAuthenticator()
throws Exception
Exceptionpublic void testP2PAuthenticationWithNoCredentials()
throws Exception
Exceptionpublic void testP2PAuthenticationWithValidCredentials()
throws Exception
Exceptionpublic void testP2PAuthenticationWithBothValidAndInValidCredentials()
throws Exception
Exceptionpublic void disabled_testP2PViewChangeReject()
throws Exception
Exceptionpublic void testP2PLargeCredentialSucceeds()
throws Exception
Exception# 38570.
Here locator will accept the credentials from peer2 and the large credential
from the first peer. Number of members in the DS
should be fourpublic static void createDS(Properties props, Object javaProps)
public static void verifyMembers(Integer numExpectedMembers)
Copyright © 2010-2015 Pivotal Software, Inc. All rights reserved.