()
| 239 | /// - Credentials are used from the profile |
| 240 | #[tokio::test] |
| 241 | async fn profile_without_region() { |
| 242 | setup(); |
| 243 | |
| 244 | let args = RemoteConfig { |
| 245 | profile: Some("banana".to_owned()), |
| 246 | region: None, |
| 247 | alias: None, |
| 248 | retry_attempts: Some(1), |
| 249 | endpoint_url: None, |
| 250 | }; |
| 251 | |
| 252 | let config = args.sdk_config(None).await; |
| 253 | let creds = config |
| 254 | .credentials_provider() |
| 255 | .unwrap() |
| 256 | .provide_credentials() |
| 257 | .await |
| 258 | .unwrap(); |
| 259 | |
| 260 | assert_eq!(config.region(), None); |
| 261 | assert_eq!(creds.access_key_id(), "BBBBBBBBBBBBBBBBBBBB"); |
| 262 | } |
| 263 | |
| 264 | /// Use the default profile which has a region associated to it |
| 265 | /// Expectations: |
nothing calls this directly
no test coverage detected