[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:
@@ -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