diff --git a/src/test/java/gdsc/konkuk/platformcore/controller/attendance/AttendanceControllerTest.java b/src/test/java/gdsc/konkuk/platformcore/controller/attendance/AttendanceControllerTest.java index 6c60d873..3ca20290 100644 --- a/src/test/java/gdsc/konkuk/platformcore/controller/attendance/AttendanceControllerTest.java +++ b/src/test/java/gdsc/konkuk/platformcore/controller/attendance/AttendanceControllerTest.java @@ -123,7 +123,6 @@ void should_get_events_of_the_month_when_pass_year_month() throws Exception { ResourceSnippetParameters.builder() .description("특정 달의 출석 정보를 조회할 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .queryParameters( parameterWithName("year").description("년도"), parameterWithName("month").description("월")) @@ -176,7 +175,6 @@ void should_attend_when_pass_event_id_and_member_id() throws Exception { ResourceSnippetParameters.builder() .description("이벤트에 출석할 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("attendanceId").description("출석 ID")) .queryParameters(parameterWithName("qrUuid").description("QR 코드 UUID")) .responseHeaders(headerWithName("Location").description("출석 결과 페이지")) @@ -218,7 +216,6 @@ void should_register_attendance_when_pass_event_id() throws Exception { ResourceSnippetParameters.builder() .description("이벤트 출석을 등록할 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .responseHeaders(headerWithName("Location").description("등록한 출석")) .responseFields( fieldWithPath("success").description("성공 여부"), @@ -261,7 +258,6 @@ void should_get_attendance_status_when_pass_attendance_id() throws Exception { ResourceSnippetParameters.builder() .description("출석 현황을 조회할 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("attendanceId").description("출석 ID")) .responseFields( fieldWithPath("success").description("성공 여부"), @@ -304,7 +300,6 @@ void should_delete_attendance_when_pass_event_id() throws Exception { ResourceSnippetParameters.builder() .description("이벤트 출석을 삭제할 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("attendanceId").description("출석 ID")) .build()))); } @@ -345,7 +340,6 @@ void should_generate_qr_when_pass_attendance_id() throws Exception { ResourceSnippetParameters.builder() .description("QR 코드를 생성할 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("attendanceId").description("출석 ID")) .responseHeaders(headerWithName("Location").description("출석 URL")) .responseFields( @@ -388,7 +382,6 @@ void should_expire_qr_when_pass_attendance_id_and_qr_uuid() throws Exception { ResourceSnippetParameters.builder() .description("QR 코드를 만료시킬 수 있다") .tag("attendance") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("attendanceId").description("출석 ID")) .build()))); } diff --git a/src/test/java/gdsc/konkuk/platformcore/controller/email/EmailControllerTest.java b/src/test/java/gdsc/konkuk/platformcore/controller/email/EmailControllerTest.java index f01e20a4..9c0497c7 100644 --- a/src/test/java/gdsc/konkuk/platformcore/controller/email/EmailControllerTest.java +++ b/src/test/java/gdsc/konkuk/platformcore/controller/email/EmailControllerTest.java @@ -99,7 +99,6 @@ void should_success_when_send_email() throws Exception { resource(ResourceSnippetParameters.builder() .tag("email") .description("이메일 전송을 위한 작업을 등록한다.") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .requestFields( fieldWithPath("subject").type(JsonFieldType.STRING).description("이메일 제목"), fieldWithPath("content").type(JsonFieldType.STRING).description("이메일 내용"), @@ -138,7 +137,6 @@ void should_success_when_update_emailTask() throws Exception { resource(ResourceSnippetParameters.builder() .tag("email") .description("이메일 전송 작업을 수정한다.") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .requestFields( fieldWithPath("subject").type(JsonFieldType.STRING).description("수정할 이메일 제목"), fieldWithPath("content").type(JsonFieldType.STRING).description("수정할 이메일 내용"), @@ -177,7 +175,6 @@ void should_success_when_get_all_task() throws Exception { resource(ResourceSnippetParameters.builder() .tag("email") .description("모든 이메일 전송 작업을 조회한다.") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .responseFields( fieldWithPath("success").description(true), fieldWithPath("message").description("이메일 전송 작업 조회 성공"), @@ -221,7 +218,6 @@ void should_success_when_get_specific_task() throws Exception { resource(ResourceSnippetParameters.builder() .tag("email") .description("특정 이메일 상세정보를 조회한다.") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters( parameterWithName("emailId").description("취소할 이메일 작업 ID")) .responseFields( @@ -264,7 +260,6 @@ void should_success_when_cancel_registered_task() throws Exception { resource(ResourceSnippetParameters.builder() .tag("email") .description("특정 이메일 작업을 취소합니다.") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters( parameterWithName("emailId").description("취소할 이메일 작업 ID")) .build()))); diff --git a/src/test/java/gdsc/konkuk/platformcore/controller/event/EventControllerTest.java b/src/test/java/gdsc/konkuk/platformcore/controller/event/EventControllerTest.java index c519634c..01879d9a 100644 --- a/src/test/java/gdsc/konkuk/platformcore/controller/event/EventControllerTest.java +++ b/src/test/java/gdsc/konkuk/platformcore/controller/event/EventControllerTest.java @@ -104,7 +104,6 @@ void should_get_all_events_when_request() throws Exception { ResourceSnippetParameters.builder() .description("모든 이벤트를 조회할 수 있다") .tag("events") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .responseFields( fieldWithPath("success").description("성공 여부"), fieldWithPath("message").description("메시지"), @@ -147,7 +146,6 @@ void should_get_event_detail_when_pass_event_id() throws Exception { ResourceSnippetParameters.builder() .description("특정 이벤트를 상세 조회할 수 있다") .tag("events") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("eventId").description("이벤트 ID")) .responseFields( fieldWithPath("success").description("성공 여부"), @@ -212,7 +210,6 @@ void should_register_event_when_requested() throws Exception { ResourceSnippetParameters.builder() .description("이벤트를 등록할 수 있다") .tag("events") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .responseHeaders(headerWithName("Location").description("등록한 Event URI")) .requestFields( fieldWithPath("detail") @@ -295,7 +292,6 @@ void should_update_event_when_requested() throws Exception { ResourceSnippetParameters.builder() .description("이벤트를 수정할 수 있다") .tag("events") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("eventId").description("이벤트 ID")) .requestFields( fieldWithPath("newImages[]") @@ -365,7 +361,6 @@ void should_update_retrospect_when_pass_content() throws Exception { ResourceSnippetParameters.builder() .description("회고를 수정할 수 있다") .tag("events") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("eventId").description("이벤트 ID")) .requestFields(fieldWithPath("content").description("회고 내용")) .responseFields( @@ -407,7 +402,6 @@ void should_delete_event_when_pass_event_id() throws Exception { ResourceSnippetParameters.builder() .description("이벤트를 삭제할 수 있다") .tag("events") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("eventId").description("이벤트 ID")) .build()))); } diff --git a/src/test/java/gdsc/konkuk/platformcore/controller/member/MemberControllerTest.java b/src/test/java/gdsc/konkuk/platformcore/controller/member/MemberControllerTest.java index 6157ae1d..02bb6149 100644 --- a/src/test/java/gdsc/konkuk/platformcore/controller/member/MemberControllerTest.java +++ b/src/test/java/gdsc/konkuk/platformcore/controller/member/MemberControllerTest.java @@ -158,7 +158,6 @@ void should_success_when_delete_member() throws Exception { ResourceSnippetParameters.builder() .description("존재하는 회원 탈퇴") .tag("member") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .build()))); } @@ -199,7 +198,6 @@ void should_success_when_get_attendances_by_batch() throws Exception { ResourceSnippetParameters.builder() .description("특정 달의 멤버 출석 정보 조회") .tag("member") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("batch").description("조회할 멤버 기수")) .queryParameters( parameterWithName("year").description("조회할 년도"), @@ -272,7 +270,6 @@ void should_success_when_update_attendances_by_batch() throws Exception { ResourceSnippetParameters.builder() .description("특정 달의 멤버 출석 정보 수정") .tag("member") - .requestHeaders(headerWithName("Authorization").description("Bearer 토큰")) .pathParameters(parameterWithName("batch").description("수정할 멤버 기수")) .queryParameters( parameterWithName("year").description("수정할 년도"),