test: add integration tests for operation log

- Add R2DBC database initialization configuration
- Fix schema-h2.sql Chinese comments issue
- Add spring-security-test dependency
- Create comprehensive integration tests for operation log
- Tests cover create, delete, and error scenarios

Closes #2
This commit is contained in:
张翔
2026-04-03 22:00:47 +08:00
parent 8e2dd9f621
commit c279b0a6e4
9 changed files with 602 additions and 25 deletions
@@ -7,7 +7,7 @@ spring:
r2dbc:
url: r2dbc:h2:mem:///testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: sa
password:
password:
pool:
initial-size: 5
max-size: 20
@@ -17,15 +17,10 @@ spring:
datasource:
url: jdbc:h2:mem:///testdb;DB_CLOSE_DELAY=-1;DB_CLOSE_ON_EXIT=FALSE
username: sa
password:
password:
driver-class-name: org.h2.Driver
flyway:
enabled: false
sql:
init:
mode: always
schema-locations: classpath:schema-h2.sql
data-locations: classpath:data-h2.sql
h2:
console:
enabled: true