|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjunit.framework.Assert
junit.framework.TestCase
net.sourceforge.jwebunit.WebTestCase
com.atlassian.jira.webtests.WebTestCaseWrapper
com.atlassian.jira.webtests.AbstractAtlassianWebTestCase
com.atlassian.jira.webtests.JIRAWebTest
com.atlassian.jira.webtests.ztests.issue.TestIssueSecurityWithGroupsAndRoles
public class TestIssueSecurityWithGroupsAndRoles
Tests that modifications to group or role membership will flush the cache by checking that the security level field has the correct values reflected.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.atlassian.jira.webtests.JIRAWebTest |
---|
JIRAWebTest.ParameterEnterer |
Field Summary |
---|
Fields inherited from class com.atlassian.jira.webtests.JIRAWebTest |
---|
administration, assertions, backdoor, BULK_TRANSITION_ELEMENT_NAME, environmentData, FIELD_SCOPE_GLOBAL, form, issueTableAssertions, issueTableClient, JDK_1_5_VERSION, locator, log, navigation, page, PAGE_ENTERPRISE_FIELD_CONFIGURATIONS, PAGE_ISSUE_TYPE_SCREEN_SCHEMES, PAGE_NOT_STANDARD_VIEW_FIELD_SCREEN_SCHEMES, PAGE_USER_BROWSER, parse, text |
Fields inherited from class net.sourceforge.jwebunit.WebTestCase |
---|
tester |
Constructor Summary | |
---|---|
TestIssueSecurityWithGroupsAndRoles(String name)
|
Method Summary | |
---|---|
void |
setUp()
|
void |
testAddingAndRemovingGroupRolesFromProjectFlushesIssueSecurityCache()
Check if group is added or removed from a role, the issue security level cache is flushed |
void |
testAddingAndRemovingSecurityLevelFlushesCache()
|
void |
testAddingAndRemovingSecuritySchemeFromProject()
Check that if the associated security scheme of a project is unassociated, that the security levels are no longer visible visible |
void |
testAddingAndRemovingUserFromGroupFlushesSecurityCache()
|
void |
testAddingAndRemovingUserFromRolesFlushesIssueSecurityCache()
Check if user is added or removed from a role, the issue security level cache is flushed |
void |
testGroupToRoleMappingSchemeToolFlushesCache()
|
void |
testNewProjectsWithDefaultRolesHaveCorrectSecurityLevel1()
Check that newly created projects have default roles setup by checking admin can see the security level and users can only see None |
void |
testNewProjectsWithDefaultRolesHaveCorrectSecurityLevel2()
same as testNewProjectsWithDefaultRolesHaveCorrectSecurityLevel1() but instead of associating the
security scheme with the project after its created, we do it during the creation |
void |
testRemovingGroupFlushesIssueSecurityCache()
Check if a group is removed from jira, the issue security level cache is flushed |
void |
testRemovingRoleFlushesIssueSecurityCache()
Check if a role is removed from jira, the issue security level cache is flushed |
void |
testRenamingSecuritySchemeFlushesCache()
Check updating the security scheme does not affect the security level options. |
void |
testSwappingSecuritySchemeFlushesCache()
Swap the security scheme with a new scheme and check that the security levels are updated |
Methods inherited from class com.atlassian.jira.webtests.WebTestCaseWrapper |
---|
assertElementNotPresent, assertElementNotPresentBy, assertElementPresent, assertElementPresentBy, assertOptionValueNotPresent, assertOptionValuePresent, assertTextInTable, assertTextNotPresent, assertTextPresent, clickCancelButton, log, log, log, logSection, raiseRuntimeException, selectMultiOption, selectMultiOptionByValue, selectOption, submit |
Methods inherited from class net.sourceforge.jwebunit.WebTestCase |
---|
assertButtonNotPresent, assertButtonPresent, assertCheckboxNotSelected, assertCheckboxSelected, assertCookiePresent, assertCookieValueEquals, assertFormElementEmpty, assertFormElementEquals, assertFormElementNotPresent, assertFormElementNotPresentWithLabel, assertFormElementPresent, assertFormElementPresentWithLabel, assertFormNotPresent, assertFormNotPresent, assertFormPresent, assertFormPresent, assertFramePresent, assertKeyInTable, assertKeyNotInTable, assertKeyNotPresent, assertKeyPresent, assertKeysInTable, assertLinkNotPresent, assertLinkNotPresentWithImage, assertLinkNotPresentWithText, assertLinkNotPresentWithText, assertLinkPresent, assertLinkPresentWithImage, assertLinkPresentWithText, assertLinkPresentWithText, assertOptionEquals, assertOptionsEqual, assertOptionsNotEqual, assertOptionValuesEqual, assertOptionValuesNotEqual, assertRadioOptionNotPresent, assertRadioOptionNotSelected, assertRadioOptionPresent, assertRadioOptionSelected, assertSubmitButtonNotPresent, assertSubmitButtonPresent, assertSubmitButtonValue, assertTableEquals, assertTableEquals, assertTableNotPresent, assertTablePresent, assertTableRowsEqual, assertTableRowsEqual, assertTextInElement, assertTextInTable, assertTextNotInElement, assertTextNotInTable, assertTextNotInTable, assertTitleEquals, assertTitleEqualsKey, assertWindowPresent, beginAt, checkCheckbox, checkCheckbox, clickButton, clickLink, clickLinkWithImage, clickLinkWithText, clickLinkWithText, clickLinkWithTextAfterText, dumpCookies, dumpCookies, dumpResponse, dumpTable, dumpTable, getDialog, getMessage, getTestContext, gotoFrame, gotoRootWindow, gotoWindow, reset, setFormElement, setFormElementWithLabel, setWorkingForm, submit, uncheckCheckbox, uncheckCheckbox |
Methods inherited from class junit.framework.TestCase |
---|
countTestCases, createResult, getName, run, run, 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, failNotEquals, failNotSame, failSame, format |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public TestIssueSecurityWithGroupsAndRoles(String name)
Method Detail |
---|
public void setUp()
setUp
in class JIRAWebTest
public void testAddingAndRemovingUserFromGroupFlushesSecurityCache()
public void testAddingAndRemovingUserFromRolesFlushesIssueSecurityCache()
public void testAddingAndRemovingGroupRolesFromProjectFlushesIssueSecurityCache()
public void testRemovingRoleFlushesIssueSecurityCache()
public void testRemovingGroupFlushesIssueSecurityCache()
public void testNewProjectsWithDefaultRolesHaveCorrectSecurityLevel1()
public void testNewProjectsWithDefaultRolesHaveCorrectSecurityLevel2()
testNewProjectsWithDefaultRolesHaveCorrectSecurityLevel1()
but instead of associating the
security scheme with the project after its created, we do it during the creation
public void testRenamingSecuritySchemeFlushesCache()
public void testAddingAndRemovingSecuritySchemeFromProject()
public void testSwappingSecuritySchemeFlushesCache()
public void testAddingAndRemovingSecurityLevelFlushesCache()
public void testGroupToRoleMappingSchemeToolFlushesCache()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |