Skip to content

Commit

Permalink
GRAD2-3018 - Updates scope name to match grad pattern
Browse files Browse the repository at this point in the history
  • Loading branch information
mightycox committed Oct 29, 2024
1 parent 3ff82cb commit a669f9f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void setUp() {

@Test
void testGetAllStudentGradeCodes_ShouldReturnCodes() throws Exception {
final GrantedAuthority grantedAuthority = () -> "SCOPE_READ_STUDENT_GRADE_CODES";
final GrantedAuthority grantedAuthority = () -> "SCOPE_READ_GRAD_STUDENT_GRADE_CODES";
final SecurityMockMvcRequestPostProcessors.OidcLoginRequestPostProcessor mockAuthority = oidcLogin().authorities(grantedAuthority);

this.mockMvc.perform(get(EducGradStudentApiConstants.GRAD_STUDENT_API_ROOT_MAPPING + EducGradStudentApiConstants.GET_ALL_STUDENT_GRADE_CODES).with(mockAuthority)).andDo(print()).andExpect(status().isOk()).andExpect(jsonPath("$.length()").value(4)).andExpect(jsonPath("$[0].studentGradeCode").value("07"));
Expand Down

0 comments on commit a669f9f

Please sign in to comment.