(
name: &str,
provider_type: &str,
credentials: HashMap<String, String>,
config: HashMap<String, String>,
)
| 1127 | } |
| 1128 | |
| 1129 | fn make_test_provider( |
| 1130 | name: &str, |
| 1131 | provider_type: &str, |
| 1132 | credentials: HashMap<String, String>, |
| 1133 | config: HashMap<String, String>, |
| 1134 | ) -> Provider { |
| 1135 | Provider { |
| 1136 | metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta { |
| 1137 | id: String::new(), |
| 1138 | name: name.to_string(), |
| 1139 | created_at_ms: 1_000_000, |
| 1140 | labels: HashMap::new(), |
| 1141 | resource_version: 0, |
| 1142 | }), |
| 1143 | r#type: provider_type.to_string(), |
| 1144 | credentials, |
| 1145 | config, |
| 1146 | credential_expires_at_ms: HashMap::new(), |
| 1147 | } |
| 1148 | } |
| 1149 | |
| 1150 | #[test] |
| 1151 | fn validate_provider_fields_accepts_valid() { |
no outgoing calls