Add cached TOTP search (#77)
This commit is contained in:
@@ -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