feat(cache): add built-in InterSystems Caché agent driver

Closes #7972
This commit is contained in:
t8y2 committed 2026-09-04 23:40:07 +08:00
1 parent 6bdfd72809
commit 8b8c0b8075
19 files changed
+716 -5

No files matched your search

+11
View File
@@ -124,6 +124,17 @@ mod tests {
assert_eq!(driver_store_entries().filter(|(key, _)| *key == "hive").count(), 1);
}
#[test]
fn cache_profile_uses_dedicated_agent_under_iris() {
assert_eq!(agent_key(&DatabaseType::Iris, None), Some("iris"));
assert_eq!(agent_key(&DatabaseType::Iris, Some("iris")), Some("iris"));
assert_eq!(agent_key(&DatabaseType::Iris, Some("cache")), Some("cache"));
assert_eq!(label_for_key("cache"), Some("InterSystems Caché"));
// The Caché agent ships its own shaded CacheDB driver, so it needs its
// own driver store entry for install/upgrade/uninstall.
assert!(driver_store_entries().any(|(key, label)| key == "cache" && label == "InterSystems Caché"));
}
#[test]
fn manifest_agent_keys_match_catalog_defaults() {
for entry in database_manifest::entries().iter().filter(|entry| entry.agent_key.is_some()) {