[control] Tests first: Domi CA flows through the API (offline-signed intermediate, domi host chains, device approval by code, one-time install, revocation, no root key) and UI sign-in that refuses a forged Remote-User (red)
This commit is contained in:
@@ -121,6 +121,9 @@ mod unix {
|
||||
},
|
||||
compile: compile_of(&edge_opts),
|
||||
compile_caddy: Some(compile_of(&caddy_opts)),
|
||||
pki: None,
|
||||
ui: None,
|
||||
engine: None,
|
||||
};
|
||||
|
||||
// Start from the site file and every host except three; then a sequence of applies
|
||||
|
||||
@@ -179,6 +179,8 @@ pub struct JsonResp {
|
||||
pub headers: Vec<(String, String)>,
|
||||
pub json: serde_json::Value,
|
||||
pub text: String,
|
||||
/// The raw body (for binary answers).
|
||||
pub body: Vec<u8>,
|
||||
}
|
||||
|
||||
impl JsonResp {
|
||||
@@ -197,6 +199,7 @@ fn json_resp(r: Resp) -> JsonResp {
|
||||
headers: r.headers,
|
||||
json: serde_json::from_str(&text).unwrap_or(serde_json::Value::Null),
|
||||
text,
|
||||
body: r.body,
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user