Skip to content

Embedded Redis 도입#84

Merged
coke98 merged 3 commits intodevelopfrom
refact/#83_embedded-redis
Jun 14, 2025
Merged

Embedded Redis 도입#84
coke98 merged 3 commits intodevelopfrom
refact/#83_embedded-redis

Conversation

@coke98
Copy link
Collaborator

@coke98 coke98 commented Jun 8, 2025

🤨 Motivation

🔑 Key Changes

  • build.gradle에 it.ozimov:embedded-redis 테스트 의존성 추가
  • 테스트 application.yml에 Redis 설정 추가
  • EmbeddedRedisConfig를 통해 테스트 프로필에서 Redis 서버를 자동으로 시작 및 종료

🙏 To Reviewers

  • 테스트시 @ActiveProfiles("test")를 넣어 놓은 클래스에 대해 임베디드 레디스 사용이되도록 하였습니당

- 테스트시 임베디드 레디스를 사용하도록 설정

ref: #83
@coke98 coke98 self-assigned this Jun 8, 2025
@coke98 coke98 added the enhancement New feature or request label Jun 8, 2025
@coke98 coke98 requested a review from onegqueen June 8, 2025 06:04
@coke98 coke98 closed this Jun 8, 2025
@coke98 coke98 reopened this Jun 8, 2025
static void redisProperties(DynamicPropertyRegistry registry) {
registry.add("spring.data.redis.port", () -> redisPort);
}

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

레디스를 쓰는 테스트가 여러 클래스 일경우 레디스가 여러번 실행되는데, 동적으로 포트할당을 해주지 않으면 충돌이나서 런타임중 포트 주입 과정을 추가했습니다.

@coke98 coke98 merged commit 6db1e18 into develop Jun 14, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments