Implement Android Home activity and HTTPS synchronization (#97)
This commit is contained in:
1 parent
8c9341f214
commit
5c933a99a3
29 files changed
+2008
-110
No files matched your search
@@ -274,11 +274,30 @@ fn totp_cache_reuses_ciphertext_hashes_and_removes_deleted_entries() -> TestResu
|
||||
);
|
||||
|
||||
repository.remove_entry(&EntryPath::parse("otp/alice")?)?;
|
||||
assert!(
|
||||
service
|
||||
.cached_page(&BTreeSet::new(), &cache)
|
||||
.expect("created cache")
|
||||
.rows()
|
||||
.iter()
|
||||
.all(|row| row.path() != "otp/alice")
|
||||
);
|
||||
let deleted = MobileTotpOperation::default();
|
||||
let mut deleted_secrets = CountingSecrets::all(&fixture);
|
||||
let deleted_page =
|
||||
service.discover(&BTreeSet::new(), &mut deleted_secrets, &cache, &deleted)?;
|
||||
assert_eq!(deleted_secrets.requests, 0);
|
||||
write_plaintext(&repository, &keys, "team-a", b"changed encrypted entry\n")?;
|
||||
let retained = service
|
||||
.cached_page(&BTreeSet::new(), &cache)
|
||||
.expect("created cache");
|
||||
assert!(retained.rows().iter().all(|row| row.path() != "team-a"));
|
||||
assert!(
|
||||
retained
|
||||
.rows()
|
||||
.iter()
|
||||
.any(|row| row.path() == "team-a/shared")
|
||||
);
|
||||
assert!(
|
||||
deleted_page
|
||||
.rows()
|
||||
|
||||
Reference in new issue
Block a user