fix(test): update GBase tree shape assertions and skip MQ in capability checks
This commit is contained in:
@@ -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 {:?}",
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user