ZinnaChoi / Study-Management

온라인 스터디 관리 시스템: 부재 일정 캘린더, 토론 게시판 및 알림 기능 제공
8 stars 0 forks source link

[Fix Request] Redis 설정 수정 요청 #61

Closed ZinnaChoi closed 9 months ago

ZinnaChoi commented 9 months ago

안녕하세요 @MeMyself-And-I !

다름이 아니라, main에서 전체 controller test를 실행 시, logout method만 test에 실패합니다 image

redis에 container 이름 추가와 함께 restart 되지 않는 이슈를 확인해주세요

발생한 에러 로그 첨부드립니다

ByteArrayOutputStream@82 "{"sendDate":"20240202174822336","systemId":"STUDY_0001","retCode":500,"retMsg":"내부 오류 발생","token":""}"
java.lang.AssertionError: JSON path "$.retCode" expected:[200] but was:[500]
 at org.springframework.test.util.AssertionErrors.fail([AssertionErrors.java:59](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.util.AssertionErrors.fail(AssertionErrors.java%3A59)%22%2C%22Study-Management%22%5D))
 at org.springframework.test.util.AssertionErrors.assertEquals([AssertionErrors.java:122](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.util.AssertionErrors.assertEquals(AssertionErrors.java%3A122)%22%2C%22Study-Management%22%5D))
 at org.springframework.test.util.JsonPathExpectationsHelper.assertValue([JsonPathExpectationsHelper.java:123](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.util.JsonPathExpectationsHelper.assertValue(JsonPathExpectationsHelper.java%3A123)%22%2C%22Study-Management%22%5D))
 at org.springframework.test.web.servlet.result.JsonPathResultMatchers.lambda$value$2([JsonPathResultMatchers.java:111](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.web.servlet.result.JsonPathResultMatchers.lambda%24value%242(JsonPathResultMatchers.java%3A111)%22%2C%22Study-Management%22%5D))
 at org.springframework.test.web.servlet.MockMvc$1.andExpect([MockMvc.java:214](command:_java.test.openStackTrace?%5B%22%5Ctat%20org.springframework.test.web.servlet.MockMvc%241.andExpect(MockMvc.java%3A214)%22%2C%22Study-Management%22%5D))
 at mogakco.StudyManagement.util.TestUtil.checkExpectedVal([TestUtil.java:75](command:_java.test.openStackTrace?%5B%22%5Ctat%20mogakco.StudyManagement.util.TestUtil.checkExpectedVal(TestUtil.java%3A75)%22%2C%22Study-Management%22%5D))
 at mogakco.StudyManagement.util.TestUtil.performRequest([TestUtil.java:46](command:_java.test.openStackTrace?%5B%22%5Ctat%20mogakco.StudyManagement.util.TestUtil.performRequest(TestUtil.java%3A46)%22%2C%22Study-Management%22%5D))
 at mogakco.StudyManagement.controller.MemberControllerTest.logoutSuccess([MemberControllerTest.java:120](command:_java.test.openStackTrace?%5B%22%5Ctat%20mogakco.StudyManagement.controller.MemberControllerTest.logoutSuccess(MemberControllerTest.java%3A120)%22%2C%22Study-Management%22%5D))
 at java.base/java.util.ArrayList.forEach([ArrayList.java:1511](command:_java.test.openStackTrace?%5B%22%5Ctat%20java.base%2Fjava.util.ArrayList.forEach(ArrayList.java%3A1511)%22%2C%22Study-Management%22%5D))
 at java.base/java.util.ArrayList.forEach([ArrayList.java:1511](command:_java.test.openStackTrace?%5B%22%5Ctat%20java.base%2Fjava.util.ArrayList.forEach(ArrayList.java%3A1511)%22%2C%22Study-Management%22%5D))

확인 후 수정 부탁드립니다

MeMyself-And-I commented 9 months ago

restart 옵션 및 redis 볼륨 추가했습니다 같은 오류 발생하는지 확인 부탁드립니다.

https://github.com/ZinnaChoi/Study-Management/pull/63/commits/977643eb84525a2f7b0f03e371cd06f10bb8f833

ZinnaChoi commented 9 months ago

수정 사항 확인했습니다 이슈 close 처리 하겠습니다~~