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

Function undefined_profile

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

Source from the content-addressed store, hash-verified

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:

Callers

nothing calls this directly

Calls 2

setupFunction · 0.85
sdk_configMethod · 0.80

Tested by

no test coverage detected