[test/#287] 검색 도메인 테스트 추가 및 테스트 리팩토링 - #419
Open
2ghrms wants to merge 4 commits into
Open
Conversation
- meilisearch-it 프로파일 도입으로 실제 Meilisearch(TestContainers)와 Noop 리포지토리를 전환 가능하게 배선 - 검색/추천 서비스, 문서 변환, 컨트롤러 단위 테스트 및 실제 컨테이너 기반 인덱싱·검색·필터·정렬 통합 테스트 추가
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📌 연관 이슈
🌱 PR 요약
🛠작업 내용
application-test.yml에app.base-url등 누락된 프로퍼티를 채워,@SpringBootTest를 사용하는 모든 테스트의 컨텍스트 로딩이 실패하던 문제를 수정했습니다. (DatabaseCleaner가@ElementCollection조인 테이블을 truncate하지 않던 문제도 함께 수정)SearchRepositoryCustomImpl.findClothesByKeyword의 QueryDSL 프로젝션이ClothListResponse에parentCategory필드가 추가된 후 갱신되지 않아, 옷 검색 API가 항상 런타임예외를 던지던 버그 수정
SearchServiceImpl의 "안 입어본 스타일" 추천 로직이 파라미터를 반대로 넘겨 실제로는 "이미 입어본 스타일" 기록을 추천하던 버그 수정SearchServiceTest,SearchDocumentServiceTest,SearchControllerTest및meilisearch-it프로파일 기반 TestContainers 통합테스트(
SearchMeiliSearchIntegrationTest) 작성StorageUtil.toPublicObjectUrlmock 스텁 누락으로 실패하던ClothServiceTest/HistoryServiceImplTest6건 수정ClothAiController/ClothAiServiceImpl의extractClothInfo,inferHistoryStyle,detectClothes에 대한 테스트 추가@Nested시나리오 분류, 한국어 문장형 메서드명)❗리뷰어들께
SearchMeiliSearchIntegrationTest는 로컬 Docker(Testcontainers)가 필요합니다. CI에는 별도 조치가 필요 없는지 확인 필요 (Docker-in-Docker 지원 여부).application-test.yml변경으로SwaggerSecurityIntegrationTest가 더 이상local프로파일을 함께 쓰지 않습니다.