()
| 542 | #[test] |
| 543 | #[serial] |
| 544 | fn agent_mismatch_rejected() { |
| 545 | let home = tempfile::tempdir().unwrap(); |
| 546 | std::env::set_var("ATOMIC_INTEGRATIONS_HOME", home.path()); |
| 547 | let (pkg, _dst) = fake_package("real-agent"); |
| 548 | let mut o = opts(false); |
| 549 | o.expect_agent = Some("other-agent".to_string()); |
| 550 | let err = install_from_dir(pkg.path(), &o).unwrap_err(); |
| 551 | assert!(err.to_string().contains("is for agent 'real-agent'")); |
| 552 | std::env::remove_var("ATOMIC_INTEGRATIONS_HOME"); |
| 553 | } |
| 554 | |
| 555 | #[test] |
| 556 | #[serial] |
nothing calls this directly
no test coverage detected