public class TestRoleResource extends BaseJiraFuncTest
assertions, backdoor, environmentData, initClass, navigation, tester, testRule
Constructor and Description |
---|
TestRoleResource() |
getAssertions, getBackdoor, getEnvironmentData, getTester
public void setUpTest()
public void testGetAllRoles()
public void testAnonymousGet()
public void testNormalUserGet()
public void testGetSelfForEachRole() throws IOException, SAXException, JSONException
IOException
SAXException
JSONException
public void testGetNonExistingRole() throws IOException, SAXException
IOException
SAXException
public void testCreateRoleWorks()
public void testCreatingWithExistingNameYieldsConflict()
public void testNoAccessForAnonymousForCreateRole()
public void testNoAccessForNormalUserForCreateRole()
public void testBadRequestForCreateRoleWithoutName()
public void testRenameRoleWorks()
public void testPartialUpdateRoleNeedsNameOrDescription()
public void testFullUpdateRoleNeedsNameAndDescription()
public void testDeleteRoleWorks()
public void testDeleteWorksWithLinkedSchemesAndSwapQueryParam()
public void testDeleteFailsWithLinkedSchemesWithoutSwapQueryParam()
public void testDeleteFailsWithProtectedCommentsWithoutSwapQueryParam()
public void testDeleteWorksWithProtectedCommentsWithSwapQueryParam()
public void testDeleteWorksAndDoesNotModifyGroupRestrictions()
public void testDeleteFailsWhenRoleUsedInWorkflowWithoutSwapQueryParam()
public void testDeleteWorksWhenRoleUsedInWorkflowWithSwapQueryParam()
public void getDefaultActorsOfNewRoleReturnsEmpty()
public void getDefaultActorsOfNonExistingRoleReturnsNotFound()
public void addDefaultActorsToNewRoleWorks()
public void addDefaultActorsRequiresUserOrGroup()
public void addNonExistentActorFails()
public void addNonExistentActorFailsAndLeavesDefaultActorsAsIs()
public void deleteDefaultActorsFromNewRoleWorks()
public void deleteDefaultActorsRequiresUserOrGroup()
public void deleteDefaultActorsFailsWhenGivenBothUserAndGroup()
Copyright © 2002-2019 Atlassian. All Rights Reserved.