MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_server_config_org_base_url

Function test_server_config_org_base_url

atomic-config/src/lib.rs:1602–1619  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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() {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected