将fetch pp cache改成使用vcir结构,跑通apnic全量同步
This commit is contained in:
@@ -6,7 +6,7 @@ fn policy_defaults_are_correct() {
|
||||
assert_eq!(p.sync_preference, SyncPreference::RrdpThenRsync);
|
||||
assert_eq!(
|
||||
p.ca_failed_fetch_policy,
|
||||
CaFailedFetchPolicy::UseFetchCachePp
|
||||
CaFailedFetchPolicy::ReuseCurrentInstanceVcir
|
||||
);
|
||||
assert_eq!(
|
||||
p.signed_object_failure_policy,
|
||||
@@ -30,6 +30,17 @@ signed_object_failure_policy = "drop_publication_point"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn policy_toml_parsing_accepts_reuse_current_instance_vcir() {
|
||||
let toml = r#"ca_failed_fetch_policy = "reuse_current_instance_vcir"
|
||||
"#;
|
||||
let p = Policy::from_toml_str(toml).expect("parse TOML policy");
|
||||
assert_eq!(
|
||||
p.ca_failed_fetch_policy,
|
||||
CaFailedFetchPolicy::ReuseCurrentInstanceVcir
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn policy_toml_parsing_uses_defaults_when_missing() {
|
||||
let p = Policy::from_toml_str("").expect("parse empty TOML policy");
|
||||
|
||||
Reference in New Issue
Block a user