refactor(harness): freeze single-agent contracts
This commit is contained in:
@@ -4,6 +4,7 @@ import com.superbiz.agent.domain.model.SessionContext;
|
||||
import com.superbiz.agent.domain.model.ToolCall;
|
||||
import org.junit.jupiter.api.BeforeEach;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.EnabledIfEnvironmentVariable;
|
||||
import org.springframework.beans.factory.annotation.Autowired;
|
||||
import org.springframework.boot.test.context.SpringBootTest;
|
||||
import org.springframework.test.context.TestPropertySource;
|
||||
@@ -20,10 +21,11 @@ import static org.junit.jupiter.api.Assertions.*;
|
||||
* RedisSessionManager 单元测试
|
||||
*/
|
||||
@SpringBootTest(webEnvironment = SpringBootTest.WebEnvironment.NONE)
|
||||
@EnabledIfEnvironmentVariable(named = "SUPERBIZ_REDIS_PASSWORD", matches = ".+")
|
||||
@TestPropertySource(properties = {
|
||||
"spring.redis.host=119.29.78.52",
|
||||
"spring.redis.port=6379",
|
||||
"spring.redis.password=!Fucker123.."
|
||||
"spring.data.redis.host=${SUPERBIZ_REDIS_HOST:119.29.78.52}",
|
||||
"spring.data.redis.port=${SUPERBIZ_REDIS_PORT:33308}",
|
||||
"spring.data.redis.password=${SUPERBIZ_REDIS_PASSWORD}"
|
||||
})
|
||||
class RedisSessionManagerTest {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user