[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:
@@ -66,6 +66,8 @@ pub struct EnvSpec {
|
||||
pub watch_secs: u64,
|
||||
pub site: String,
|
||||
pub remote: Option<String>,
|
||||
/// Appended to control.toml (extra sections such as [pki]).
|
||||
pub extra_config: String,
|
||||
}
|
||||
|
||||
impl Default for EnvSpec {
|
||||
@@ -74,6 +76,7 @@ impl Default for EnvSpec {
|
||||
watch_secs: 2,
|
||||
site: String::new(),
|
||||
remote: None,
|
||||
extra_config: String::new(),
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -202,7 +205,7 @@ caddy_credentials_dir = "{creds}"
|
||||
certs = d("certs"),
|
||||
edge_state = d("edge-state"),
|
||||
log = d("logs/access.log"),
|
||||
);
|
||||
) + &spec.extra_config;
|
||||
std::fs::write(self.dir.join("control.toml"), text).unwrap();
|
||||
}
|
||||
|
||||
@@ -254,7 +257,7 @@ caddy_credentials_dir = "{creds}"
|
||||
std::thread::sleep(Duration::from_millis(200));
|
||||
}
|
||||
|
||||
fn command(&self) -> Command {
|
||||
pub fn command(&self) -> Command {
|
||||
let mut c = Command::new(env!("CARGO_BIN_EXE_ianitor-control"));
|
||||
c.env_remove("IANITOR_TEST_CRASH_AT");
|
||||
c.env_remove("IANITOR_TEST_FAIL_WRITE");
|
||||
|
||||
Reference in New Issue
Block a user