(config: HashMap<String, String>)
| 6030 | } |
| 6031 | |
| 6032 | fn google_cloud_provider(config: HashMap<String, String>) -> Provider { |
| 6033 | Provider { |
| 6034 | metadata: Some(openshell_core::proto::datamodel::v1::ObjectMeta { |
| 6035 | id: String::new(), |
| 6036 | name: "my-google-cloud".to_string(), |
| 6037 | created_at_ms: 0, |
| 6038 | labels: HashMap::new(), |
| 6039 | resource_version: 0, |
| 6040 | }), |
| 6041 | r#type: "google-cloud".to_string(), |
| 6042 | credentials: HashMap::new(), |
| 6043 | config, |
| 6044 | credential_expires_at_ms: HashMap::new(), |
| 6045 | } |
| 6046 | } |
| 6047 | |
| 6048 | #[test] |
| 6049 | fn inject_gcp_env_sets_metadata_host() { |
no outgoing calls