Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.
TypeScript agentaiai-agentsall-in-onecrmcrm-systememaillinearmcpmessagingnotesnotionofficerustslackslack-alternativestartupstartup-toolstypescriptworkspace
use super::*;
#[test]
fn rollout_defaults_are_disabled_and_single_slot() {
let config: Config = serde_json::from_value(serde_json::json!({
"DATABASE_URL": "postgres://localhost/test",
"UPLOAD_STAGING_BUCKET": "test-staging",
"INTERNAL_API_KEY": "test-only"
}))
.unwrap();
assert!(!config.slack_import_enabled);
assert_eq!(config.slack_import_concurrency, 1);
assert!(config.worker().is_ok());
}
#[test]
fn rejects_unbounded_or_zero_concurrency_at_startup() {
for concurrency in [0, 3, 255] {
let config: Config = serde_json::from_value(serde_json::json!({
"DATABASE_URL": "postgres://localhost/test",
"UPLOAD_STAGING_BUCKET": "test-staging",
"INTERNAL_API_KEY": "test-only",
"SLACK_IMPORT_ENABLED": true,
"SLACK_IMPORT_CONCURRENCY": concurrency
}))
.unwrap();
assert!(config.worker().is_err());
}
}