(name: &str, provider_type: &str)
| 2973 | } |
| 2974 | |
| 2975 | fn provider_with_values(name: &str, provider_type: &str) -> Provider { |
| 2976 | Provider { |
| 2977 | metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta { |
| 2978 | id: String::new(), |
| 2979 | name: name.to_string(), |
| 2980 | created_at_ms: 0, |
| 2981 | labels: HashMap::new(), |
| 2982 | resource_version: 0, |
| 2983 | }), |
| 2984 | r#type: provider_type.to_string(), |
| 2985 | credentials: [ |
| 2986 | ("API_TOKEN".to_string(), "token-123".to_string()), |
| 2987 | ("SECONDARY".to_string(), "secondary-token".to_string()), |
| 2988 | ] |
| 2989 | .into_iter() |
| 2990 | .collect(), |
| 2991 | config: [ |
| 2992 | ("endpoint".to_string(), "https://example.com".to_string()), |
| 2993 | ("region".to_string(), "us-west".to_string()), |
| 2994 | ] |
| 2995 | .into_iter() |
| 2996 | .collect(), |
| 2997 | credential_expires_at_ms: HashMap::new(), |
| 2998 | } |
| 2999 | } |
| 3000 | |
| 3001 | fn custom_profile(id: &str) -> ProviderProfile { |
| 3002 | ProviderProfile { |
no outgoing calls
no test coverage detected