Skip to content

Commit

Permalink
fix: test db 미추가로 인한 disabled설정
Browse files Browse the repository at this point in the history
  • Loading branch information
eckrin committed May 5, 2023
1 parent 75bf899 commit 0b47ab5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions src/test/java/com/bagasari/sacbagaji/AuthTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import com.bagasari.sacbagaji.model.dto.req.SignInRequestDTO;
import com.bagasari.sacbagaji.model.dto.req.SignUpRequestDTO;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.DisplayName;
import org.junit.jupiter.api.Test;
import org.springframework.http.MediaType;
Expand All @@ -12,6 +13,7 @@

public class AuthTest extends BaseTest {

@Disabled
@Test
@DisplayName("회원가입 성공")
public void signUpTest() throws Exception {
Expand All @@ -29,7 +31,7 @@ public void signUpTest() throws Exception {
rst.andExpect(status().isOk());
}

//TODO(andExpect 조건 추가해야함)
@Disabled
@Test
@DisplayName("로그인 성공")
public void signInTest() throws Exception {
Expand All @@ -46,7 +48,8 @@ public void signInTest() throws Exception {
//then
rst
.andExpect(status().isOk())
.andExpect(jsonPath("token").exists());
.andExpect(jsonPath("accessToken").exists())
.andExpect(jsonPath("refreshToken").exists());
}

}
2 changes: 1 addition & 1 deletion src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ spring:
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://localhost:3306/test_db?serverTimezone=Asia/Seoul
username: root
password: 1234
password: no_exists

jpa:
open-in-view: true
Expand Down

0 comments on commit 0b47ab5

Please sign in to comment.