Skip to content

[test] pb-71 s3 예약하기 통합테스트 - #155

Merged
geonusp merged 23 commits into
mainfrom
test/PB-71-s3-reservation-create-it
Jan 26, 2026
Merged

geonusp merged 23 commits into
mainfrom
test/PB-71-s3-reservation-create-it

Conversation

@PHJ2000

@PHJ2000 PHJ2000 commented Jan 20, 2026 •

Copy link
Copy Markdown
Collaborator

🧪 Test PR

🔗 Jira Issue (필수)

PR 제목: [test] pb-71 s3 예약하기 통합테스트
브랜치: test/PB-71-s3-reservation-create-it


✅ Close Issue (필수)


🧾 한눈에 요약 (필수)

무엇을 테스트했나?

  • 예약 생성/조회/취소 전체 API 흐름과 오류 계약(ProblemDetail), 동시성 중복 방지

왜 필요한가? (버그 방지/신뢰성/회귀 대응)

  • 중복 예약/시간 오류/인증 실패/리소스 없음 등 핵심 회귀를 조기에 차단
  • 동시성에서 DB UNIQUE 충돌이 400으로 내려오는 문제를 409 계약으로 통일

범위(스코프)

  • Included: 예약 생성/취소/목록 조회, 에러 케이스, 동시성 중복
  • Not included: 캘린더 반영/알림, 예약 상태 변경(거절 등), 페이징/필터

🧪 테스트 설계/범위 (필수)

  • Unit
  • Integration
  • E2E
  • UI/UX
  • Performance
  • 기타:

대상 모듈/기능

  • ReservationController, ReservationService, ReservationRepository
  • SecurityConfig, GlobalExceptionHandler

시나리오 요약

  1. 정상 예약 생성 + 응답 필드 검증
  2. 과거 시간/중복/해변 없음/인증 없음/입력 오류/UUID 오류/이벤트ID 경계/취소/목록/동시성

✅ 테스트 / 검증 (필수)

로컬

  • Command: .\gradlew.bat test --tests com.beachcheck.integration.ReservationControllerIntegrationTest
  • Result: SUCCESS

CI

  • 링크/결과: (자동 첨부되면 생략)

Smoke / 수동 검증

  • 시나리오:
  • 결과:

테스트 공백(있다면 이유 필수)

  • 캘린더 반영/알림은 백엔드 구현 범위 밖이라 제외

📈 품질/신뢰성 (권장)

  • 커버리지 변화: 미측정
  • 플래키/불안정 테스트 여부: 없음
  • 테스트 데이터/픽스처 변경: ProblemDetail 검증 헬퍼, 예약 요청 바디 헬퍼 추가

🌐 영향 범위 (필수)

  • 런타임 코드 변경 없음 (테스트만 변경)
  • 런타임 코드 변경 있음 (요약: 예약 중복 UNIQUE 충돌을 409로 매핑, 보안 경로 정리)
  • DB 스키마/마이그레이션 변경 없음
  • DB 스키마/마이그레이션 변경 있음 (요약: )
  • CI/빌드 파이프라인 변경 없음
  • CI/빌드 파이프라인 변경 있음 (요약: )

⚠️ 리스크 & 롤백 (필수)

리스크

  • 예약 중복 매핑 로직이 DB 제약명에 의존(변경 시 409 계약 흔들릴 수 있음)

롤백

  • 단순 revert로 가능
  • 테스트 비활성/스킵 필요 (대상: )

🧭 리뷰 가이드 (필수)

  • 꼭 봐야 하는 테스트/로직: 동시성 예약(P2-01), ProblemDetail 검증 헬퍼, UNIQUE 충돌 409 매핑
  • 트레이드오프/대안: 동시성은 서비스 레벨 테스트로 분리할 수도 있으나 현재는 컨트롤러 통합으로 유지
  • 성능/안정성 영향: 테스트 시간 증가(동시성 케이스 추가), 런타임 영향은 409 매핑 분기만 추가

@PHJ2000
PHJ2000 requested a review from geonusp January 20, 2026 07:52
@PHJ2000 PHJ2000 self-assigned this Jan 20, 2026
@PHJ2000 PHJ2000 added the test label Jan 20, 2026
@coderabbitai

coderabbitai Bot commented Jan 20, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on this repository.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Comment thread src/test/resources/application-test.yml Resolved
@geonusp
geonusp merged commit c7f3a40 into main Jan 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[test] PB-71 s3 예약 생성 통합테스트 추가

2 participants