The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.
Rust agent-orchestrationai-agentsai-assistantdesktopllmlocal-firstmcppersonal-aiprivacyrustsecond-braintauri
test: remove obsolete e2e tests for cwd jail registry
Steven Enamakel83e92a4244c9
diff --git a/tests/cwd_jail_e2e.rs b/tests/cwd_jail_e2e.rsindex 7c8d7cbe91..2fa502c5ee 100644--- a/tests/cwd_jail_e2e.rs+++ b/tests/cwd_jail_e2e.rs@@ -43,81 +43,6 @@ fn unique_tempdir(tag: &str) -> PathBuf {p}-// ── Common: runs on every platform ──────────────────────────────────--#[test]-fn registry_full_lifecycle_with_noop() {- let base = unique_tempdir("lifecycle");- let reg = JailRegistry::open(&base).unwrap();-- // Create several jails in parallel.- let a = reg.create("agent-a").unwrap();- let b = reg.create("agent-b").unwrap();- let c = reg.create("agent-c").unwrap();- assert_eq!(reg.list().len(), 3);-- // Rename + notes update timestamps.- let renamed = reg.rename(&a.id, "agent-a-renamed").unwrap();- assert_eq!(renamed.label, "agent-a-renamed");- let noted = reg- .set_notes(&a.id, Some("owner=stevent95".into()))- .unwrap();- assert_eq!(noted.notes.as_deref(), Some("owner=stevent95"));-- // Spawn through the registry into one of the jails.- let mut cmd = noop_exit_zero_cmd();- cmd.stdout(Stdio::null()).stderr(Stdio::null());- let mut child = reg.spawn_in_with(&b.id, &NoopBackend, cmd).unwrap();- let status = child.wait().unwrap();- assert!(status.success() || cfg!(windows));-- // Delete one, clear the rest.- reg.delete(&c.id).unwrap();- assert!(reg.get(&c.id).is_none());- let cleared = reg.clear().unwrap();- assert_eq!(cleared, 2);- assert!(reg.list().is_empty());-- // Reopen — empty index round-trips.- drop(reg);- let reg2 = JailRegistry::open(&base).unwrap();- assert!(reg2.list().is_empty());-- fs::remove_dir_all(&base).ok();-}--#[test]-fn jail_canonicalize_rejects_missing_root() {- let jail = Jail::new("/does/not/exist/at/all", "missing");- let err = spawn_with(&NoopBackend, &jail, noop_exit_zero_cmd()).unwrap_err();- assert_eq!(err.kind(), std::io::ErrorKind::NotFound);-}--#[test]-fn default_backend_is_named_and_available() {- let b = default_backend();- assert!(!b.name().is_empty());- // On every supported platform the auto-detected backend should be- // available — even noop returns true.- assert!(b.is_available());-}--#[test]-fn jail_builder_carries_intent_through_clone() {- // `spawn` clones the jail before canonicalize; verify a chained- // builder still produces the right shape.- let dir = unique_tempdir("builder");- let j = Jail::new(&dir, "build")- .add_read_only("/usr/lib")- .add_read_only("/usr/share")- .deny_net()- .deny_subprocess();- assert_eq!(j.read_only.len(), 2);- assert!(!j.allow_net);- assert!(!j.allow_subprocess);- fs::remove_dir_all(&dir).ok();-}-// ── Linux: Landlock real-sandbox enforcement ────────────────────────#[cfg(all(target_os = "linux", feature = "sandbox-landlock"))]