MCPcopy Create free account
hub / github.com/cargo-lambda/cargo-lambda / default_profile

Function default_profile

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

Source from the content-addressed store, hash-verified

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}

Callers

nothing calls this directly

Calls 2

setupFunction · 0.85
sdk_configMethod · 0.80

Tested by

no test coverage detected