Skip to content

Commit

Permalink
Merge pull request #245 from kakao-tech-campus-2nd-step3/sanghee0820-…
Browse files Browse the repository at this point in the history
…patch-1

[test] Admin 페이지 허용으로 인해  displayname 변경
  • Loading branch information
sanghee0820 authored Nov 15, 2024
2 parents 18e2748 + 6059577 commit 7a154d1
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ class SecurityConfigTest {
private MockMvc mockMvc;

@Test
@DisplayName("모두 허용으로 인해 실패하는 테스트 입니다.")
@WithMockUser(roles = "USER")
void testAdminEndpoints() throws Exception {
mockMvc.perform(get("/admin/video"))
Expand All @@ -37,6 +38,7 @@ void testAdminEndpoints() throws Exception {
}

@Test
@DisplayName("모두 허용으로 인해 실패하는 테스트 입니다.")
@WithAnonymousUser
void testAnonymousEndpoints() throws Exception {
mockMvc.perform(get("/admin/video"))
Expand Down

0 comments on commit 7a154d1

Please sign in to comment.