Skip to content

Commit 0474c87

Browse files
committed
test: 테스트전용 프로퍼티 파일 추가
1 parent 7d53816 commit 0474c87

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Test Configuration
2+
spring.application.name=myCodingTest-test
3+
4+
# Database - H2 In-Memory
5+
spring.datasource.url=jdbc:h2:mem:testdb;MODE=MySQL;
6+
spring.datasource.username=sa
7+
spring.datasource.password=
8+
spring.datasource.driverClassName=org.h2.Driver
9+
spring.jpa.hibernate.ddl-auto=create-drop
10+
spring.jpa.properties.hibernate.format_sql=true
11+
spring.jpa.show-sql=false
12+
13+
## Database init
14+
spring.sql.init.data-locations=classpath:data.sql
15+
spring.jpa.defer-datasource-initialization=true
16+
17+
# Cookie
18+
cookie.name=test-cookie
19+
url.redirect=http://localhost:3000/
20+
url.base=http://localhost:8080
21+
22+
# Logging
23+
logging.level.org.springframework.security=WARN
24+
logging.level.org.springframework.web=WARN

0 commit comments

Comments
 (0)