MCPcopy Index your code
hub / github.com/cargo-lambda/cargo-lambda / profile_without_region

Function profile_without_region

crates/cargo-lambda-remote/src/lib.rs:241–262  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

setupFunction · 0.85
sdk_configMethod · 0.80

Tested by

no test coverage detected