public final class TestPermissionSchemeResource extends BaseJiraRestTest
backdoor, initClass, initData
Constructor and Description |
---|
TestPermissionSchemeResource() |
getEnvironmentData
public void setUp()
public void defaultPermissionSchemeIsReturnedOnBlankInstance()
public void permissionsAreNotExpandedByDefaultWhenGettingSingleScheme()
public void getReturnsCorrectPermissionScheme()
public void projectAdministratorGetsOnlySchemesWhichAreAssignedToProjectsHeAdministers()
public void userCanGetPermissionSchemeIfTheyAdministerTheAssociatedProject()
public void notFoundResponseIsReturnedWhenUserDoesNotHavePermissionToViewAScheme()
public void creatingPermissionSchemeWorksCorrectly()
public void permissionsAreNotAffectedWhenUpdatingOnlyNameAndDescription()
public void entireSchemeIsUpdatedWhenPermissionListIsSpecified()
public void updatingNonExistingPermissionReturns404()
public void deletingPermissionSchemeWorksCorrectly()
public void gettingPermissionsReturnsCorrectResults()
public void creatingSinglePermissionWorksCorrectly()
public void deletingPermissionWorksCorrectly()
public void deletingNonExistentPermissionReturns400()
public void selfLinksAreCorrect()
public void anonymousGets401forAllOperations()
public void nonAdminGets403WhenEditingPermissionSchemes()
public void invalidInputIsHandledCorrectly()
public void creatingSchemeWithAlreadyExistingNameResultsInBadRequestReponse()
public void tryingToGrantPermissionToNonExistentGroupResultsInInvalidRequest()
public void creatingPermissionWhichAlreadyExistsShouldResultIn400()
public void everythingIsExpandedWhenExpandingAll()
public void onlySpecifiedTypesAreExpanded()
public void permissionsCanBeExpandedWhenGettingAllPermissionSchemes()
public void permissionsAreExpandedIfAnyExpandParameterIsSpecifiedWhenGettingAllPermissionSchemes()
public void holdersCanBeExpandedWhenCreatingNewPermissionGrant()
public void holdersCanBeExpandedWhenCreatingNewPermissionScheme()
public void shouldReturnDefaultAttribute()
public void shouldReturnNotFoundWhenAskedForNonExistingAttribute()
public void shouldUpdateAndReturnDefaultAttribute()
public void shouldInsertAndReturnAttribute()
public void shouldReturnNotFoundForGettingValueWhenSchemeDoesNotExist()
public void shouldReturnNotFoundForUpdatingValueWhenSchemeDoesNotExist()
Copyright © 2002-2022 Atlassian. All Rights Reserved.