[edge] ACME: end-to-end test against Pebble next to a Domi-cert host
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user