Skip to content

Commit

Permalink
Chore | #4 | @lcomment | 테스트 환경 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
lcomment committed May 3, 2024
1 parent ffc9ab5 commit 123aaf6
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 30 deletions.
5 changes: 5 additions & 0 deletions cakk-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ dependencies {
testImplementation('com.tngtech.archunit:archunit-junit5:1.1.0')
testImplementation('org.springframework.boot:spring-boot-starter-test')
testImplementation('org.springframework.security:spring-security-test')
testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter:1.0.16")

// test container
testImplementation "org.testcontainers:junit-jupiter:1.19.7"
testImplementation "org.testcontainers:mysql:1.19.7"

// slack 설정
implementation 'net.gpedro.integrations.slack:slack-webhook:1.4.0'
Expand Down
25 changes: 25 additions & 0 deletions cakk-api/src/test/resources/application-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
spring:
datasource:
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
url: jdbc:tc:mysql:8.0:///cakk

jpa:
hibernate:
ddl-auto: create
show-sql: true

storage:
datasource:
core:
jdbc-url: jdbc:tc:mysql:8.0:///cakk
username: username
password: password
driver-class-name: org.testcontainers.jdbc.ContainerDatabaseDriver
data-source-properties:
rewriteBatchedStatements: true

jwt:
secret: testestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestestest
expiration:
access-token: 1814400000
refresh-token: 2592000000
30 changes: 0 additions & 30 deletions cakk-domain/src/main/resources/db-local.yml

This file was deleted.

0 comments on commit 123aaf6

Please sign in to comment.