[고도화] 민감 정보의 환경변수 치환 후 테스트 실패 현상 수정 #103
Merged
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.
환경변수를 이용해 application.yaml 안에 있던 민감 정보를 치환하여 보안성을 높였으나
일부 스프링 부트 테스트가 실패한다.
@SpringBootTest는 초기 테스트 환경을 구성하면서 프로퍼티 파일의 설정을 참고하기 때문에
환경변수가 주입되지 않은 테스트 환경에서 의도하지 않은 동작을 보이며 실패할 수 있다.
이를 수정하여 테스트가 실패하지 않도록 하자.
Reference