20260428 daemon运行化和delta复用warning修复
This commit is contained in:
@@ -318,9 +318,11 @@ fn apnic_root_repo_sync_failure_reuses_current_instance_vcir() {
|
||||
|
||||
assert_eq!(pp.source, PublicationPointSource::VcirCurrentInstance);
|
||||
assert!(
|
||||
pp.warnings.iter().any(|w| w
|
||||
.message
|
||||
.contains("using latest validated result for current CA instance")),
|
||||
"expected current-instance VCIR reuse warning"
|
||||
pp.warnings.iter().all(|w| {
|
||||
!w.message
|
||||
.contains("using latest validated result for current CA instance")
|
||||
&& !w.message.contains("manifest failed fetch")
|
||||
}),
|
||||
"successful current-instance VCIR reuse should not emit fallback bookkeeping warnings"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -298,10 +298,18 @@ fn manifest_hash_mismatch_reuses_current_instance_vcir_when_enabled() {
|
||||
.expect("second run reuses current-instance VCIR");
|
||||
assert_eq!(second.source, PublicationPointSource::VcirCurrentInstance);
|
||||
assert!(
|
||||
second.warnings.iter().any(|w| w
|
||||
.message
|
||||
.contains("using latest validated result for current CA instance")),
|
||||
"expected current-instance VCIR reuse warning"
|
||||
second
|
||||
.warnings
|
||||
.iter()
|
||||
.any(|w| w.message.contains("manifest file hash mismatch")),
|
||||
"expected warning for real fresh manifest validation failure"
|
||||
);
|
||||
assert!(
|
||||
second.warnings.iter().all(|w| {
|
||||
!w.message
|
||||
.contains("using latest validated result for current CA instance")
|
||||
}),
|
||||
"successful current-instance VCIR reuse should not emit fallback bookkeeping warning"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@@ -247,10 +247,12 @@ fn repo_sync_failed_can_reuse_current_instance_vcir_when_present() {
|
||||
.expect("repo sync failure should reuse current-instance VCIR");
|
||||
assert_eq!(second.source, PublicationPointSource::VcirCurrentInstance);
|
||||
assert!(
|
||||
second.warnings.iter().any(|w| w
|
||||
.message
|
||||
.contains("using latest validated result for current CA instance")),
|
||||
"expected current-instance VCIR reuse warning"
|
||||
second.warnings.iter().all(|w| {
|
||||
!w.message
|
||||
.contains("using latest validated result for current CA instance")
|
||||
&& !w.message.contains("manifest failed fetch")
|
||||
}),
|
||||
"successful current-instance VCIR reuse should not emit fallback bookkeeping warnings"
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user