-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #258 from ootd-zip/test/config
test: 테스트 환경 설정
- Loading branch information
Showing
5 changed files
with
48 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
package zip.ootd.ootdzip; | ||
|
||
import org.springframework.boot.test.context.SpringBootTest; | ||
import org.springframework.transaction.annotation.Transactional; | ||
import org.springframework.test.context.ActiveProfiles; | ||
|
||
@Transactional | ||
@SpringBootTest | ||
@ActiveProfiles("test") | ||
public abstract class IntegrationTestSupport { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
spring: | ||
config: | ||
activate: | ||
on-profile: test | ||
jpa: | ||
hibernate: | ||
ddl-auto: create-drop | ||
show-sql: true | ||
format_sql: true # sql 보기 편하게 출력 | ||
use_sql_comments: true | ||
datasource: | ||
url: jdbc:h2:mem:ootdzip | ||
username: sa | ||
password: 1234 | ||
driver-class-name: org.h2.Driver | ||
profiles: | ||
include: secret | ||
data: | ||
redis: | ||
host: 127.0.0.1 | ||
port: 6379 | ||
timeout: 10 | ||
|
||
client: | ||
base-url: https://dev.ootdzip.com | ||
dev-url: http://localhost:3000 | ||
|
||
|
||
logging: #로그 레벨을 정하는 것 | ||
level: | ||
org.hibernate.SQL: debug #JPA 하이버네이트가 생성하는 SQL 로그 | ||
org.hibernate.orm.jdbc.bind: debug # 스프링 3.0 이후 변경됨 | ||
zip.ootd.ootdzip.oauth.OAuth2AuthenticationFailureHandler: debug # 로그인 실패 시 로그 | ||
|
||
# Token config | ||
authorization: | ||
issuer: https://dev.ootdzip.com | ||
audience: https://dev-ootdzip.com | ||
access-token-time-to-live: 5184000 # 30 minutes | ||
refresh-token-time-to-live: 5184000 # 60 days |
This file was deleted.
Oops, something went wrong.