Skip to content

Commit

Permalink
Merge pull request #367 from ghkdqhrbals/feature/chat-record-offset
Browse files Browse the repository at this point in the history
[dev] JwtTokenValidator 테스트에 추가
  • Loading branch information
ghkdqhrbals authored Jan 5, 2024
2 parents b974acc + 926eef7 commit 370ea86
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
import chatting.chat.web.filter.UserContextInterceptor;
import chatting.chat.web.sessionCluster.redis.UserRedisSession;
import chatting.chat.web.sessionCluster.redis.UserRedisSessionRepository;
import chatting.chat.web.token.JwtTokenValidator;
import com.example.commondto.error.CustomException;
import jakarta.servlet.http.Cookie;
import java.time.LocalDate;
Expand All @@ -43,7 +44,7 @@
@ExtendWith({SpringExtension.class})
@WebMvcTest(ParticipantController.class)
@ActiveProfiles("testAPI")
@Import(GlobalExceptionHandler.class)
@Import({GlobalExceptionHandler.class, JwtTokenValidator.class})
@Slf4j
class ParticipantControllerTest {
@Autowired
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

import chatting.chat.web.error.GlobalExceptionHandler;
import chatting.chat.web.filter.UserContext;
import chatting.chat.web.token.JwtTokenValidator;
import com.example.commondto.error.CustomException;
import com.example.commondto.error.ErrorCode;
import lombok.extern.slf4j.Slf4j;
Expand Down Expand Up @@ -42,7 +43,7 @@
@ExtendWith({SpringExtension.class})
@WebMvcTest(UserController.class)
@ActiveProfiles("testAPI")
@Import(GlobalExceptionHandler.class)
@Import({GlobalExceptionHandler.class, JwtTokenValidator.class})
@Slf4j
public class UserControllerTest {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
token:
expiration_time: 300000 # 30 seconds
refresh_expiration_time: 86400000 # 24 hours
secret: 'Ym9lNzFmZHdGVm5Rb2pIYU1wS3JmZz09'


spring:
profiles:
active: test
Expand Down

0 comments on commit 370ea86

Please sign in to comment.