[edge] ACME: end-to-end test against Pebble next to a Domi-cert host

This commit is contained in:
2026-11-07 15:06:40 +01:00
parent e7fa5f57ec
commit 6a7aafc859
2 changed files with 222 additions and 1 deletions
+4 -1
View File
@@ -61,6 +61,8 @@ pub struct EdgeSpec<'a> {
pub secrets: Vec<(String, Vec<u8>)>,
pub log_level: &'a str,
pub extra_args: Vec<String>,
/// Fixed HTTP port (e.g. one Pebble was told to validate against).
pub http_port: Option<u16>,
}
impl Default for EdgeSpec<'_> {
@@ -71,6 +73,7 @@ impl Default for EdgeSpec<'_> {
secrets: Vec::new(),
log_level: "info",
extra_args: Vec::new(),
http_port: None,
}
}
}
@@ -114,7 +117,7 @@ pub fn spawn(spec: EdgeSpec<'_>) -> Edge {
std::fs::write(dir.join(&format!("creds/{name}")), value).unwrap();
}
let http = local(free_port());
let http = local(spec.http_port.unwrap_or_else(free_port));
let https = local(free_port());
let opts = CompileOptions {
http_listen: http,