Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[고도화] 민감 정보의 환경변수 치환 후 테스트 실패 현상 수정 #89

Merged
merged 1 commit into from
Jan 24, 2023

Conversation

lmw7414
Copy link
Owner

@lmw7414 lmw7414 commented Jan 24, 2023

This Closes #87

DB 접근 정보가 환경변수 문법으로 치환되었는데
`@SpringBootTest`가 이를 그대로 읽으면서
올바른 jdbc url 포맷이 아니므로 실패를 유발함

이에 적당히 인메모리 테스트 db인 h2 경로를
새로 만든 테스트 전용 `test` 프로파일에 지정해주고,
테스트 실행 시 이 프로파일을 바라보게 하여
문제 해결
@lmw7414 lmw7414 merged commit d4086b2 into main Jan 24, 2023
@lmw7414 lmw7414 deleted the feature/#87-bug branch January 24, 2023 06:24
@lmw7414 lmw7414 self-assigned this Jan 24, 2023
@lmw7414 lmw7414 added the bug Something isn't working label Jan 24, 2023
@lmw7414 lmw7414 added this to the 게시판 서비스 만들기 milestone Jan 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[고도화] 민감 정보의 환경변수 치환 후 테스트 실패 현상 수정
1 participant