#16 board: test bug fix
This commit is contained in:
@@ -8,15 +8,15 @@ logging:
|
|||||||
org.hibernate.type.descriptor.sql.BasicBinder: trace
|
org.hibernate.type.descriptor.sql.BasicBinder: trace
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
application:
|
# application:
|
||||||
name: board
|
# name: board
|
||||||
cloud:
|
# cloud:
|
||||||
vault:
|
# vault:
|
||||||
scheme: http
|
# scheme: http
|
||||||
authentication: token
|
# authentication: token
|
||||||
token: ${VAULT_TOKEN}
|
# token: ${VAULT_TOKEN}
|
||||||
config:
|
# config:
|
||||||
import: vault://
|
# import: vault://
|
||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
url: ${LOCAL_DB_URL}
|
url: ${LOCAL_DB_URL}
|
||||||
@@ -62,11 +62,11 @@ spring:
|
|||||||
---
|
---
|
||||||
|
|
||||||
spring:
|
spring:
|
||||||
config.activate.on-profile: testdb
|
config.activate.on-profile: test
|
||||||
# datasource:
|
datasource:
|
||||||
# url: jdbc:h2:mem:board;mode=mysql
|
url: jdbc:h2:mem:board;mode=mysql
|
||||||
# driver-class-name: org.h2.Driver
|
driver-class-name: org.h2.Driver
|
||||||
# sql.init.mode: always
|
sql.init.mode: always
|
||||||
# test.database.replace: none
|
# test.database.replace: none
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|||||||
@@ -2,7 +2,9 @@ package com.example.board;
|
|||||||
|
|
||||||
import org.junit.jupiter.api.Test;
|
import org.junit.jupiter.api.Test;
|
||||||
import org.springframework.boot.test.context.SpringBootTest;
|
import org.springframework.boot.test.context.SpringBootTest;
|
||||||
|
import org.springframework.test.context.ActiveProfiles;
|
||||||
|
|
||||||
|
@ActiveProfiles("test")
|
||||||
@SpringBootTest
|
@SpringBootTest
|
||||||
class BoardApplicationTests {
|
class BoardApplicationTests {
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user