fix(test): update GBase tree shape assertions and skip MQ in capability checks

This commit is contained in:
t8y2
2026-06-18 11:54:38 +08:00
parent 8e5eac9eab
commit e926adde42
2 changed files with 6 additions and 2 deletions
@@ -202,6 +202,10 @@ fn driver_manifest_matches_core_database_capabilities() {
let support_levels = ["connect", "browse", "understand", "operate"];
for driver in &manifest.drivers {
// MQ is a message queue, not a database — skip database capability checks
if driver.db_type == DatabaseType::MessageQueue {
continue;
}
assert!(
support_levels.contains(&driver.support_level.as_str()),
"invalid support level for {:?}",
+2 -2
View File
@@ -65,8 +65,8 @@ test("GBase profiles use their compatible object tree shapes", () => {
const gbase8s = { db_type: "gbase" as const, driver_profile: "gbase8s" };
assert.equal(connectionUsesDatabaseObjectTreeMode(gbase8a), false);
assert.equal(connectionObjectTreeQuerySchema(gbase8a, "testdb", undefined), "");
assert.equal(connectionObjectTreeNodeSchema(gbase8a, "testdb", undefined), undefined);
assert.equal(connectionObjectTreeQuerySchema(gbase8a, "testdb", undefined), "testdb");
assert.equal(connectionObjectTreeNodeSchema(gbase8a, "testdb", undefined), "testdb");
assert.equal(connectionUsesDatabaseObjectTreeMode(gbase8s), false);
assert.equal(connectionObjectTreeQuerySchema(gbase8s, "testdb", "gbasedbt"), "gbasedbt");
assert.equal(connectionObjectTreeNodeSchema(gbase8s, "testdb", "gbasedbt"), "gbasedbt");