From a669f9f70d3a46934de59bf95988a5b5df5a9a58 Mon Sep 17 00:00:00 2001 From: mightycox Date: Tue, 29 Oct 2024 16:42:19 -0700 Subject: [PATCH] GRAD2-3018 - Updates scope name to match grad pattern --- .../gradstudent/controller/CommonControllerIntegrationTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/controller/CommonControllerIntegrationTest.java b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/controller/CommonControllerIntegrationTest.java index a1b22178..538edff9 100644 --- a/api/src/test/java/ca/bc/gov/educ/api/gradstudent/controller/CommonControllerIntegrationTest.java +++ b/api/src/test/java/ca/bc/gov/educ/api/gradstudent/controller/CommonControllerIntegrationTest.java @@ -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"));