fetch cache pp imporved
This commit is contained in:
@@ -2,7 +2,7 @@ use std::collections::HashMap;
|
||||
|
||||
use rpki::audit::{DiscoveredFrom, PublicationPointAudit};
|
||||
use rpki::report::Warning;
|
||||
use rpki::storage::{PackFile, PackTime, VerifiedPublicationPointPack};
|
||||
use rpki::storage::{FetchCachePpPack, PackFile, PackTime};
|
||||
use rpki::validation::manifest::PublicationPointSource;
|
||||
use rpki::validation::objects::{ObjectsOutput, ObjectsStats};
|
||||
use rpki::validation::tree::{
|
||||
@@ -43,11 +43,12 @@ impl PublicationPointRunner for MockRunner {
|
||||
}
|
||||
}
|
||||
|
||||
fn empty_pack(manifest_uri: &str, pp_uri: &str) -> VerifiedPublicationPointPack {
|
||||
VerifiedPublicationPointPack {
|
||||
fn empty_pack(manifest_uri: &str, pp_uri: &str) -> FetchCachePpPack {
|
||||
FetchCachePpPack {
|
||||
format_version: 1,
|
||||
publication_point_rsync_uri: pp_uri.to_string(),
|
||||
manifest_rsync_uri: manifest_uri.to_string(),
|
||||
manifest_number_be: vec![1],
|
||||
this_update: PackTime {
|
||||
rfc3339_utc: "2026-01-01T00:00:00Z".to_string(),
|
||||
},
|
||||
@@ -129,7 +130,7 @@ fn tree_enqueues_children_only_for_fresh_publication_points() {
|
||||
.with(
|
||||
child1_manifest,
|
||||
PublicationPointRunResult {
|
||||
source: PublicationPointSource::VerifiedCache,
|
||||
source: PublicationPointSource::FetchCachePp,
|
||||
pack: empty_pack(child1_manifest, "rsync://example.test/repo/child1/"),
|
||||
warnings: vec![Warning::new("child1 warning")],
|
||||
objects: ObjectsOutput {
|
||||
|
||||
Reference in New Issue
Block a user