fix(agents): recognize native Kingbase module

This commit is contained in:
t8y2
2026-07-24 11:32:00 +08:00
parent 3fa3a5b663
commit 7923a25837
2 changed files with 4 additions and 2 deletions
+1
View File
@@ -14,6 +14,7 @@ DEFAULT_AGENT_JRE_KEY = "21"
NON_JDBC_AGENT_MODULES = {"mongodb", "etcd", "zookeeper", "kafka", "rocketmq", "rabbitmq"}
NATIVE_ONLY_AGENT_MODULES = {
"oracle": "drivers/oracle-go",
"kingbase": "drivers/kingbase-go",
"xugu": "drivers/xugu",
}
JDBC_ARCHITECTURE_ALLOWLIST = {
+3 -2
View File
@@ -136,9 +136,10 @@ class ValidateAgentsTest(unittest.TestCase):
"include(*(infrastructureModules + driverModules))\n",
encoding="utf-8",
)
(root / "drivers/oracle-go").mkdir(parents=True)
for driver in ("oracle-go", "kingbase-go", "xugu"):
(root / "drivers" / driver).mkdir(parents=True)
(root / "versions.json").write_text(
json.dumps({"h2": "0.1.0", "oracle": "0.1.0"}),
json.dumps({"h2": "0.1.0", "oracle": "0.1.0", "kingbase": "0.1.0", "xugu": "0.1.0"}),
encoding="utf-8",
)