File tree Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Expand file tree Collapse file tree 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -171,6 +171,7 @@ pub struct Cli {
171
171
impl Cli {
172
172
pub async fn execute ( self ) -> Result < ExitCode > {
173
173
let subcommand = self . subcommand . unwrap_or_default ( ) ;
174
+
174
175
// Initialize our logger and keep around the guard so logging can perform as expected.
175
176
let _log_guard = initialize_logging ( LogArgs {
176
177
log_level : match self . verbose > 0 {
@@ -218,6 +219,7 @@ impl Cli {
218
219
if subcommand. valid_for_telemetry ( ) {
219
220
telemetry. send_cli_subcommand_executed ( & subcommand) . ok ( ) ;
220
221
}
222
+
221
223
let cli_context = CliContext :: new ( ) ;
222
224
223
225
let result = match subcommand {
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ pub async fn get_cognito_credentials_send(
27
27
telemetry_stage : & TelemetryStage ,
28
28
) -> Result < Credentials , CredentialsError > {
29
29
trace ! ( "Creating new cognito credentials" ) ;
30
+
30
31
let conf = aws_sdk_cognitoidentity:: Config :: builder ( )
31
32
. behavior_version ( BehaviorVersion :: v2025_01_17 ( ) )
32
33
. region ( telemetry_stage. region . clone ( ) )
@@ -161,3 +162,17 @@ fn is_expired(expiration: Option<&String>) -> bool {
161
162
} ,
162
163
}
163
164
}
165
+
166
+ #[ cfg( test) ]
167
+ mod test {
168
+ use super :: * ;
169
+
170
+ #[ tokio:: test]
171
+ async fn pools ( ) {
172
+ for telemetry_stage in [ TelemetryStage :: BETA , TelemetryStage :: EXTERNAL_PROD ] {
173
+ get_cognito_credentials_send ( & mut Database :: new ( ) . await . unwrap ( ) , & telemetry_stage)
174
+ . await
175
+ . unwrap ( ) ;
176
+ }
177
+ }
178
+ }
You can’t perform that action at this time.
0 commit comments