(name: &str, provider_type: &str)
| 1165 | } |
| 1166 | |
| 1167 | fn provider(name: &str, provider_type: &str) -> Provider { |
| 1168 | Provider { |
| 1169 | metadata: Some(ObjectMeta { |
| 1170 | id: format!("{name}-id"), |
| 1171 | name: name.to_string(), |
| 1172 | created_at_ms: 1, |
| 1173 | labels: HashMap::new(), |
| 1174 | resource_version: 0, |
| 1175 | }), |
| 1176 | r#type: provider_type.to_string(), |
| 1177 | credentials: HashMap::new(), |
| 1178 | config: HashMap::new(), |
| 1179 | credential_expires_at_ms: HashMap::new(), |
| 1180 | } |
| 1181 | } |
| 1182 | |
| 1183 | const TEST_RSA_PRIVATE_KEY: &str = r"-----BEGIN PRIVATE KEY----- |
| 1184 | MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCvCoZ0mVHpCHsF |
no outgoing calls
no test coverage detected