Skip to content

Commit

Permalink
PI-1495 - update endpoint url
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-britton-moj committed Sep 27, 2023
1 parent 8409819 commit e4f9b76
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LimitedAccessIntegrationTest {
@Test
fun `limited access controls are correctly returned`() {
val res = mockMvc.perform(
MockMvcRequestBuilders.post("/user/${UserGenerator.LIMITED_ACCESS_USER.username}/access-controls")
MockMvcRequestBuilders.post("/user/${UserGenerator.LIMITED_ACCESS_USER.username}/access")
.withOAuth2Token(wireMockserver)
.contentType(MediaType.APPLICATION_JSON)
.content(
Expand Down Expand Up @@ -98,7 +98,7 @@ class LimitedAccessIntegrationTest {
@Test
fun `limited access controls do not prevent legitimate access`() {
val res = mockMvc.perform(
MockMvcRequestBuilders.post("/user/${UserGenerator.AUDIT_USER.username}/access-controls")
MockMvcRequestBuilders.post("/user/${UserGenerator.AUDIT_USER.username}/access")
.withOAuth2Token(wireMockserver)
.contentType(MediaType.APPLICATION_JSON)
.content(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class UserResource(private val userAccessService: UserAccessService) {
has a restriction in place
"""
)
@RequestMapping("/{username}/access-controls", method = [RequestMethod.GET, RequestMethod.POST])
@RequestMapping("/{username}/access", method = [RequestMethod.GET, RequestMethod.POST])
fun userAccessCheck(
@PathVariable username: String,
@Size(min = 1, max = 500, message = "Please provide between 1 and 500 crns") @RequestBody crns: List<String>
Expand Down

0 comments on commit e4f9b76

Please sign in to comment.