#16 board: test bug fix
This commit is contained in:
@@ -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
|
||||
|
||||
---
|
||||
|
||||
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user