fix: udeps (#2215)
This commit is contained in:
parent
da743fc8b2
commit
fbf8acb6a5
|
@ -279,19 +279,12 @@ impl super::Signer for AwsSigner {
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
mod tests {
|
mod tests {
|
||||||
|
use super::*;
|
||||||
|
use crate::Signer;
|
||||||
use rusoto_core::{
|
use rusoto_core::{
|
||||||
credential::{EnvironmentProvider, StaticProvider},
|
credential::{EnvironmentProvider, StaticProvider},
|
||||||
Client, HttpClient, Region,
|
Client, HttpClient, Region,
|
||||||
};
|
};
|
||||||
use tracing::metadata::LevelFilter;
|
|
||||||
|
|
||||||
use super::*;
|
|
||||||
use crate::Signer;
|
|
||||||
|
|
||||||
#[allow(dead_code)]
|
|
||||||
fn setup_tracing() {
|
|
||||||
tracing_subscriber::fmt().with_max_level(LevelFilter::DEBUG).try_init().unwrap();
|
|
||||||
}
|
|
||||||
|
|
||||||
#[allow(dead_code)]
|
#[allow(dead_code)]
|
||||||
fn static_client() -> KmsClient {
|
fn static_client() -> KmsClient {
|
||||||
|
@ -318,7 +311,6 @@ mod tests {
|
||||||
Ok(id) => id,
|
Ok(id) => id,
|
||||||
_ => return,
|
_ => return,
|
||||||
};
|
};
|
||||||
setup_tracing();
|
|
||||||
let client = env_client();
|
let client = env_client();
|
||||||
let signer = AwsSigner::new(client, key_id, chain_id).await.unwrap();
|
let signer = AwsSigner::new(client, key_id, chain_id).await.unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue