()
| 1565 | |
| 1566 | #[test] |
| 1567 | fn test_server_config_is_configured() { |
| 1568 | let config = ServerConfig { |
| 1569 | url: Some("https://atomic.storage".to_string()), |
| 1570 | default_org: Some("alice".to_string()), |
| 1571 | default_workspaces: BTreeMap::new(), |
| 1572 | identity: None, |
| 1573 | agent_identity: None, |
| 1574 | single_tenant: false, |
| 1575 | }; |
| 1576 | assert!(config.is_configured()); |
| 1577 | |
| 1578 | // Missing org → not configured |
| 1579 | let partial = ServerConfig { |
| 1580 | url: Some("https://atomic.storage".to_string()), |
| 1581 | default_org: None, |
| 1582 | default_workspaces: BTreeMap::new(), |
| 1583 | identity: None, |
| 1584 | agent_identity: None, |
| 1585 | single_tenant: false, |
| 1586 | }; |
| 1587 | assert!(!partial.is_configured()); |
| 1588 | |
| 1589 | // Missing url → not configured |
| 1590 | let partial = ServerConfig { |
| 1591 | url: None, |
| 1592 | default_org: Some("alice".to_string()), |
| 1593 | default_workspaces: BTreeMap::new(), |
| 1594 | identity: None, |
| 1595 | agent_identity: None, |
| 1596 | single_tenant: false, |
| 1597 | }; |
| 1598 | assert!(!partial.is_configured()); |
| 1599 | } |
| 1600 | |
| 1601 | #[test] |
| 1602 | fn test_server_config_org_base_url() { |
nothing calls this directly
no outgoing calls
no test coverage detected