Conversation
5964f6c to
ebc2ba6
Compare
ebc2ba6 to
4cf3253
Compare
Member
Author
|
CI 워크플로에서 gradlew check step 이후 postgres 컨테이너에 접속해 스키마, 데이터 목록을 조회하는 작업을 추가해 확인하면서 CI 테스트 환경에 잘 적용되는거 확인했습니다. #22 PR 먼저 머지한 이후에 최신 상태를 병합시킨 뒤 다시 push 하겠습니다. |
myqewr
approved these changes
Mar 17, 2025
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.
🌱 관련 이슈
📌 작업 내용 및 특이사항
🔍 참고사항
@AutoConfigureTestDatabase(replace = AutoConfigureTestDatabase.Replace.NONE)어노테이션을 추가했습니다. 이 어노테이션이 없으면, 스프링 부트는 테스트 실행 시 자동으로 내장된 인메모리 DB(H2)를 사용하려고 하기 때문에 application.yml 파일의 spring.datasource.url 및 driver-class-name 을 다른 DB 정보를 설정해도 해당 DB와 연결할 수 없다는 에러가 발생합니다 (H2 등의 인메모리 DB가 아닌 다른 DB 정보를 설정했기 때문에)이 어노테이션을 추가해서 테스트 환경에서도 애플리케이션이 실제 사용하는 DB와 연결되도록 설정했습니다.
📚 기타