|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
com.atlassian.crowd.acceptance.utils.CrowdWebTestCase
com.atlassian.crowd.acceptance.tests.console.CrowdAcceptanceTestCase
com.atlassian.crowd.acceptance.tests.console.plugin.saml.SAMLAuthTest
public class SAMLAuthTest
This tests the SAML Authentication interaction but does not rigorously examine the actual response message sent back to Google. Please see the TestSAMLMessageManagerImpl for response testing. In place of the Google server, we use the 500.jsp page as our "mock Google" response recipient and use GET requests as our "mock Google" request generator. Both SSO and sign-in-after-login workflows are tested.
| Field Summary |
|---|
| Fields inherited from class com.atlassian.crowd.acceptance.tests.console.CrowdAcceptanceTestCase |
|---|
ADMIN_EMAIL, ADMIN_FULL_NAME, ADMIN_GROUP, ADMIN_PW, ADMIN_USER, CONSOLE_PORT, CONTEXT_PATH, DEVELOPER_LICENSE_KEY, EXPIRED_MAINTENANCE_KEY, HOST, HOST_PATH, logger, specProperties, UNLIMITED_LICENSE_KEY, URL_HOME, WAR_PATH, WORKGROUP_LICENSE_KEY |
| Fields inherited from class com.atlassian.crowd.acceptance.utils.CrowdWebTestCase |
|---|
tester |
| Constructor Summary | |
|---|---|
SAMLAuthTest()
|
|
| Method Summary | |
|---|---|
void |
assertTextPresent(String text)
Assert that supplied text is present. |
protected void |
ensureKeysPresent()
|
protected void |
ensureNoKeysPresent()
|
protected void |
forgeGoogleRequest()
|
protected void |
forgeInvalidGoogleRequest()
|
void |
setUp()
|
void |
testAuthSuccessAfterLogin()
|
void |
testAuthSuccessSSO()
|
void |
testAuthWithGarbageRequest()
|
void |
testAuthWithNoKeysSetup()
|
protected void |
verifySAMLResponse()
|
| Methods inherited from class junit.framework.TestCase |
|---|
countTestCases, createResult, getName, run, run, runTest, setName, toString |
| Methods inherited from class junit.framework.Assert |
|---|
assertEquals, 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, fail, fail |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SAMLAuthTest()
| Method Detail |
|---|
public void setUp()
throws Exception
setUp in class CrowdAcceptanceTestCaseException
protected void forgeGoogleRequest()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected void forgeInvalidGoogleRequest()
protected void ensureNoKeysPresent()
protected void ensureKeysPresent()
public void testAuthWithNoKeysSetup()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic void testAuthWithGarbageRequest()
public void testAuthSuccessSSO()
throws UnsupportedEncodingException
UnsupportedEncodingException
public void testAuthSuccessAfterLogin()
throws UnsupportedEncodingException
UnsupportedEncodingExceptionprotected void verifySAMLResponse()
public void assertTextPresent(String text)
CrowdWebTestCase
assertTextPresent in class CrowdWebTestCase
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||