Principal search index (closes #1368)

This commit is contained in:
mdecimus
2025-04-16 13:07:22 +02:00
parent c5596fb656
commit 3bd255eb09
9 changed files with 245 additions and 104 deletions

View File

@@ -618,6 +618,28 @@ async fn internal_directory() {
.collect::<Vec<_>>(),
vec!["list"]
);
assert_eq!(
store
.list_principals("example.org".into(), None, &[], true, 0, 0)
.await
.unwrap()
.items
.into_iter()
.map(|p| p.name)
.collect::<Vec<_>>(),
vec!["example.org", "jane", "john.doe", "list"]
);
assert_eq!(
store
.list_principals("johnny doe".into(), None, &[], true, 0, 0)
.await
.unwrap()
.items
.into_iter()
.map(|p| p.name)
.collect::<Vec<_>>(),
vec!["john.doe"]
);
// Write records on John's and Jane's accounts
let mut document_id = u32::MAX;

View File

@@ -362,6 +362,7 @@ impl DirectoryTest {
true,
)
.await;
config.assert_no_errors();
// Enable catch-all and subaddressing