Skip to content

Commit

Permalink
chore: ci 테스트3 h2 DB 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
donggi-lee-bit committed Feb 8, 2024
1 parent dbe428e commit 31ac5d9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ dependencies {
testImplementation 'io.rest-assured:rest-assured'

// test containers
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:mysql'
// testImplementation 'org.testcontainers:junit-jupiter'
// testImplementation 'org.testcontainers:mysql'

// api docs
testImplementation 'org.springframework.restdocs:spring-restdocs-restassured'
Expand Down
10 changes: 6 additions & 4 deletions src/main/resources/application-db.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,16 +68,18 @@ spring:

jpa:
show-sql: false
database-platform: MYSQL
# database-platform: MYSQL
hibernate:
ddl-auto: create
properties:
hibernate:
default_batch_fetch_size: 100
format_sql: true
show_sql: true
dialect: org.hibernate.dialect.MySQL8Dialect
# dialect: org.hibernate.dialect.MySQL8Dialect

datasource:
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
url: jdbc:tc:mysql:8://testDB
driver-class-name: org.h2.Driver
url: jdbc:h2:mem:golraba-db;DATABASE_TO_UPPER=FALSE;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE;NON_KEYWORDS=USER
username: sa
password:

0 comments on commit 31ac5d9

Please sign in to comment.