()
| 1951 | |
| 1952 | #[test] |
| 1953 | fn test_agent_identity_omitted_when_unset() { |
| 1954 | // skip_serializing_if: an unset selection leaves no key behind, |
| 1955 | // so hand-edited configs stay clean. |
| 1956 | let toml_str = toml::to_string_pretty(&GlobalConfig::default()).unwrap(); |
| 1957 | assert!(!toml_str.contains("agent_identity")); |
| 1958 | } |
| 1959 | |
| 1960 | #[test] |
| 1961 | fn test_active_server_agent_identity_prefers_default_profile() { |