#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 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
--- ---

View File

@@ -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 {