|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object junit.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, 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(java.lang.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 java.lang.Exception
setUp
in class CrowdAcceptanceTestCase
java.lang.Exception
protected void forgeGoogleRequest() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
protected void forgeInvalidGoogleRequest()
protected void ensureNoKeysPresent()
protected void ensureKeysPresent()
public void testAuthWithNoKeysSetup() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void testAuthWithGarbageRequest()
public void testAuthSuccessSSO() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
public void testAuthSuccessAfterLogin() throws java.io.UnsupportedEncodingException
java.io.UnsupportedEncodingException
protected void verifySAMLResponse()
public void assertTextPresent(java.lang.String text)
CrowdWebTestCase
assertTextPresent
in class CrowdWebTestCase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |