()
| 1062 | use super::*; |
| 1063 | |
| 1064 | fn sample_credential() -> CredentialConfig { |
| 1065 | CredentialConfig { |
| 1066 | id: "cred_test".to_string(), |
| 1067 | channel: crate::config::ChannelKind::ClaudeCode, |
| 1068 | enabled: true, |
| 1069 | order: 1, |
| 1070 | access_token: "token".to_string(), |
| 1071 | refresh_token: "refresh".to_string(), |
| 1072 | expires_at_unix_ms: 0, |
| 1073 | enable_sonnet_1m: true, |
| 1074 | enable_opus_1m: true, |
| 1075 | user_email: Some("user@example.com".to_string()), |
| 1076 | account_uuid: Some("acct_123".to_string()), |
| 1077 | organization_uuid: Some("org_123".to_string()), |
| 1078 | subscription_type: None, |
| 1079 | rate_limit_tier: None, |
| 1080 | status: crate::config::CredentialStatus::Healthy, |
| 1081 | cooldown_until_unix_ms: None, |
| 1082 | last_error: None, |
| 1083 | last_used_at_unix_ms: None, |
| 1084 | } |
| 1085 | } |
| 1086 | |
| 1087 | #[test] |
| 1088 | fn injects_billing_header_when_missing() { |
no outgoing calls