Skip to content

Commit

Permalink
Merge pull request #69 from Stumeet/dev
Browse files Browse the repository at this point in the history
🐛 [STMT-146] 로그아웃 API 테스트시 Redis 컨테이너를 띄우도록 변경 (#68)
  • Loading branch information
zxcv9203 authored Feb 29, 2024
2 parents fde7f49 + 67e52ce commit eb0ad45
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,12 @@
import org.junit.jupiter.api.Nested;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.testcontainers.service.connection.ServiceConnection;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.restdocs.payload.JsonFieldType;
import org.springframework.transaction.annotation.Transactional;
import org.testcontainers.containers.GenericContainer;
import org.testcontainers.junit.jupiter.Container;

import static org.springframework.restdocs.headers.HeaderDocumentation.headerWithName;
import static org.springframework.restdocs.headers.HeaderDocumentation.requestHeaders;
Expand All @@ -29,6 +32,11 @@
@Transactional
public class LogoutFilterTest extends ApiTest {

@Container
@ServiceConnection
private static GenericContainer<?> REDIS_CONTAINER = new GenericContainer<>(REDIS_CONTAINER_VERSION)
.withExposedPorts(6379);

@Autowired
private JpaMemberRepository jpaMemberRepository;

Expand Down

0 comments on commit eb0ad45

Please sign in to comment.