#16 board: test bug fix

This commit is contained in:
haerong22
2023-01-27 01:22:12 +09:00
parent 5f28a4c1fb
commit 889d78a654
2 changed files with 16 additions and 14 deletions

View File

@@ -8,15 +8,15 @@ logging:
org.hibernate.type.descriptor.sql.BasicBinder: trace
spring:
application:
name: board
cloud:
vault:
scheme: http
authentication: token
token: ${VAULT_TOKEN}
config:
import: vault://
# application:
# name: board
# cloud:
# vault:
# scheme: http
# authentication: token
# token: ${VAULT_TOKEN}
# config:
# import: vault://
datasource:
url: ${LOCAL_DB_URL}
@@ -62,11 +62,11 @@ spring:
---
spring:
config.activate.on-profile: testdb
# datasource:
# url: jdbc:h2:mem:board;mode=mysql
# driver-class-name: org.h2.Driver
# sql.init.mode: always
config.activate.on-profile: test
datasource:
url: jdbc:h2:mem:board;mode=mysql
driver-class-name: org.h2.Driver
sql.init.mode: always
# test.database.replace: none
---

View File

@@ -2,7 +2,9 @@ package com.example.board;
import org.junit.jupiter.api.Test;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.ActiveProfiles;
@ActiveProfiles("test")
@SpringBootTest
class BoardApplicationTests {