Skip to content

Commit

Permalink
SHIBUI-2393
Browse files Browse the repository at this point in the history
test fixes
  • Loading branch information
chasegawa committed Nov 15, 2022
1 parent 4a76f97 commit 4037ba7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public ResponseEntity<?> getAllNeedingApproval() throws ForbiddenException {
* @throws ForbiddenException This call is used for the admin needs action list, therefore the user must be an admin
*/
@Transactional
@GetMapping(value = "/EntityDescriptor/disabledSources")
@GetMapping(value = "/DynamicRegistrations/disabledSources")
public ResponseEntity<?> getDisabledMetadataSources() throws ForbiddenException {
return ResponseEntity.ok(dynamicRegistrationService.getDisabledDynamicRegistrations());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import edu.internet2.tier.shibboleth.admin.ui.security.model.Approvers
import edu.internet2.tier.shibboleth.admin.ui.security.model.Group
import edu.internet2.tier.shibboleth.admin.ui.security.model.Role
import edu.internet2.tier.shibboleth.admin.ui.security.model.User
import edu.internet2.tier.shibboleth.admin.ui.security.repository.DynamicRegistrationInfoRepository
import edu.internet2.tier.shibboleth.admin.ui.service.JPAEntityDescriptorServiceImpl
import edu.internet2.tier.shibboleth.admin.ui.util.WithMockAdmin
import org.springframework.beans.factory.annotation.Autowired
Expand All @@ -19,6 +20,9 @@ import org.springframework.transaction.annotation.Transactional
class ShibUiPermissionDelegateTests extends AbstractBaseDataJpaTest {
ShibUiPermissionDelegate delegate

@Autowired
DynamicRegistrationInfoRepository dynamicRegistrationInfoRepository

@Autowired
JPAEntityDescriptorServiceImpl jpaEntityDescriptorService

Expand All @@ -28,7 +32,7 @@ class ShibUiPermissionDelegateTests extends AbstractBaseDataJpaTest {

@Transactional
def setup() {
delegate = new ShibUiPermissionDelegate(entityDescriptorRepository, userService)
delegate = new ShibUiPermissionDelegate(dynamicRegistrationInfoRepository, entityDescriptorRepository, userService)
createDevUsersAndGroups()
}

Expand Down

0 comments on commit 4037ba7

Please sign in to comment.