Test report blocked bridges: Check for missing reachability credential
This commit is contained in:
parent
188c8b20f6
commit
12524cd1e8
|
@ -350,6 +350,15 @@ mod tests {
|
|||
assert_eq!(resp_str, "OK");
|
||||
|
||||
// We should not be able to level up
|
||||
let (id, key) = bridge_table::from_scalar(cred.bucket).unwrap();
|
||||
let mut binding = th.context.ba.lock().unwrap();
|
||||
binding.advance_days(1);
|
||||
let encbuckets = binding.enc_bridge_table();
|
||||
let bucket =
|
||||
bridge_table::BridgeTable::decrypt_bucket(id, &key, encbuckets.get(&id).unwrap())
|
||||
.unwrap();
|
||||
drop(binding);
|
||||
assert!(bucket.1.is_none());
|
||||
assert!(level_up(&mut th, &cred).await.is_err());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue