()
| 156 | /// - Credentials are undefined |
| 157 | #[tokio::test] |
| 158 | async fn undefined_profile() { |
| 159 | setup(); |
| 160 | |
| 161 | let args = RemoteConfig { |
| 162 | profile: Some("durian".to_owned()), |
| 163 | region: None, |
| 164 | alias: None, |
| 165 | retry_attempts: Some(1), |
| 166 | endpoint_url: None, |
| 167 | }; |
| 168 | |
| 169 | let config = args.sdk_config(None).await; |
| 170 | let creds = config |
| 171 | .credentials_provider() |
| 172 | .unwrap() |
| 173 | .provide_credentials() |
| 174 | .await; |
| 175 | |
| 176 | assert_eq!(config.region(), None); |
| 177 | assert!(creds.is_err()); |
| 178 | } |
| 179 | |
| 180 | /// Specify a profile which exists in the credentials file but not in the config file |
| 181 | /// Expectations: |
nothing calls this directly
no test coverage detected