Skip to content

Commit

Permalink
fix(test): remove jwt example from restdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
goldentrash committed Nov 18, 2024
1 parent 4cb89c1 commit 46483d0
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 21 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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("월"))
Expand Down Expand Up @@ -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("출석 결과 페이지"))
Expand Down Expand Up @@ -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("성공 여부"),
Expand Down Expand Up @@ -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("성공 여부"),
Expand Down Expand Up @@ -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())));
}
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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())));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("이메일 내용"),
Expand Down Expand Up @@ -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("수정할 이메일 내용"),
Expand Down Expand Up @@ -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("이메일 전송 작업 조회 성공"),
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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())));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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("메시지"),
Expand Down Expand Up @@ -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("성공 여부"),
Expand Down Expand Up @@ -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")
Expand Down Expand Up @@ -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[]")
Expand Down Expand Up @@ -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(
Expand Down Expand Up @@ -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())));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ void should_success_when_delete_member() throws Exception {
ResourceSnippetParameters.builder()
.description("존재하는 회원 탈퇴")
.tag("member")
.requestHeaders(headerWithName("Authorization").description("Bearer 토큰"))
.build())));
}

Expand Down Expand Up @@ -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("조회할 년도"),
Expand Down Expand Up @@ -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("수정할 년도"),
Expand Down

0 comments on commit 46483d0

Please sign in to comment.