()
| 1600 | |
| 1601 | #[test] |
| 1602 | fn test_server_config_org_base_url() { |
| 1603 | let config = ServerConfig { |
| 1604 | url: Some("https://atomic.storage".to_string()), |
| 1605 | default_org: Some("alice".to_string()), |
| 1606 | default_workspaces: BTreeMap::new(), |
| 1607 | identity: None, |
| 1608 | agent_identity: None, |
| 1609 | single_tenant: false, |
| 1610 | }; |
| 1611 | assert_eq!( |
| 1612 | config.org_base_url("alice"), |
| 1613 | Some("https://alice.atomic.storage".to_string()) |
| 1614 | ); |
| 1615 | assert_eq!( |
| 1616 | config.org_base_url("acme-corp"), |
| 1617 | Some("https://acme-corp.atomic.storage".to_string()) |
| 1618 | ); |
| 1619 | } |
| 1620 | |
| 1621 | #[test] |
| 1622 | fn test_server_config_org_base_url_with_port() { |
nothing calls this directly
no outgoing calls
no test coverage detected