| 1715 | |
| 1716 | #[test] |
| 1717 | fn test_default_workspaces_skipped_when_empty() { |
| 1718 | let config = ServerConfig { |
| 1719 | url: Some("https://atomic.storage".to_string()), |
| 1720 | default_org: Some("alice".to_string()), |
| 1721 | default_workspaces: BTreeMap::new(), |
| 1722 | identity: None, |
| 1723 | agent_identity: None, |
| 1724 | single_tenant: false, |
| 1725 | }; |
| 1726 | let toml_str = toml::to_string_pretty(&config).unwrap(); |
| 1727 | assert!(!toml_str.contains("default_workspaces")); |
| 1728 | } |
| 1729 | |
| 1730 | #[test] |
| 1731 | fn test_default_workspaces_roundtrip() { |