20260711 修正ROA缓存projection存储测试
This commit is contained in:
parent
da6e2e515d
commit
363e69d11d
@ -1231,7 +1231,10 @@ fn vcir_roundtrip_and_validation_failures_are_reported() {
|
||||
let store = RocksStore::open(td.path()).expect("open rocksdb");
|
||||
|
||||
let vcir = sample_vcir("rsync://example.test/repo/current.mft");
|
||||
store.put_vcir(&vcir).expect("put vcir");
|
||||
let roa_context = roa_cache_projection_context(&vcir);
|
||||
store
|
||||
.put_vcir_with_projections(&vcir, Some(&roa_context), None)
|
||||
.expect("put vcir");
|
||||
let got = store
|
||||
.get_vcir(&vcir.manifest_rsync_uri)
|
||||
.expect("get vcir")
|
||||
@ -1471,8 +1474,13 @@ fn replace_vcir_and_manifest_replay_meta_replaces_current_entry() {
|
||||
previous.summary.local_vrp_count = 1;
|
||||
previous.summary.local_aspa_count = 0;
|
||||
previous.summary.local_router_key_count = 0;
|
||||
let previous_roa_context = roa_cache_projection_context(&previous);
|
||||
let previous_timing = store
|
||||
.replace_vcir_and_manifest_replay_meta(&previous)
|
||||
.replace_vcir_manifest_replay_meta_and_projections(
|
||||
&previous,
|
||||
Some(&previous_roa_context),
|
||||
None,
|
||||
)
|
||||
.expect("store previous vcir");
|
||||
assert!(previous_timing.vcir_value_bytes > 0);
|
||||
assert!(previous_timing.replay_meta_value_bytes > 0);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user