Add cached TOTP search (#77)
This commit is contained in:
1 parent
1ce7b7814b
commit
87f9e7be98
7 files changed
+156
-7
No files matched your search
@@ -233,6 +233,23 @@ fn totp_cache_reuses_ciphertext_hashes_and_removes_deleted_entries() -> TestResu
|
||||
.rows(),
|
||||
page.rows()
|
||||
);
|
||||
assert_eq!(
|
||||
service
|
||||
.search_cached_page(&BTreeSet::new(), &cache, " TEAM-A ")
|
||||
.expect("created cache")
|
||||
.rows()
|
||||
.iter()
|
||||
.map(|row| row.path())
|
||||
.collect::<Vec<_>>(),
|
||||
["team-a/shared", "team-a"]
|
||||
);
|
||||
assert!(
|
||||
service
|
||||
.search_cached_page(&BTreeSet::new(), &cache, "missing")
|
||||
.expect("created cache")
|
||||
.rows()
|
||||
.is_empty()
|
||||
);
|
||||
|
||||
write_plaintext(
|
||||
&repository,
|
||||
|
||||
Reference in new issue
Block a user