()
| 267 | /// - Credentials are used from the profile |
| 268 | #[tokio::test] |
| 269 | async fn default_profile() { |
| 270 | setup(); |
| 271 | |
| 272 | let args = RemoteConfig { |
| 273 | profile: None, |
| 274 | region: None, |
| 275 | alias: None, |
| 276 | retry_attempts: Some(1), |
| 277 | endpoint_url: None, |
| 278 | }; |
| 279 | |
| 280 | let config = args.sdk_config(None).await; |
| 281 | let creds = config |
| 282 | .credentials_provider() |
| 283 | .unwrap() |
| 284 | .provide_credentials() |
| 285 | .await |
| 286 | .unwrap(); |
| 287 | |
| 288 | assert_eq!(config.region(), Some(&Region::from_static("af-south-1"))); |
| 289 | assert_eq!(creds.access_key_id(), "DDDDDDDDDDDDDDDDDDDD"); |
| 290 | } |
| 291 | } |
nothing calls this directly
no test coverage detected