Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
Signed-off-by: Jesse Szwedko <[email protected]>
  • Loading branch information
jszwedko committed Jul 31, 2024
1 parent a958960 commit 53a4923
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/aws/auth.rs
Original file line number Diff line number Diff line change
Expand Up @@ -425,6 +425,7 @@ mod tests {
load_timeout_secs: Some(10),
imds: ImdsAuthentication { .. },
region: None,
sign: true,
}
));
}
Expand Down Expand Up @@ -467,6 +468,7 @@ mod tests {
connect_timeout: CONNECT_TIMEOUT,
read_timeout: READ_TIMEOUT,
},
sign: true,
}
));
}
Expand Down Expand Up @@ -702,7 +704,7 @@ mod tests {

match config.auth {
AwsAuthentication::Default { sign, .. } => {
assert_eq!(&no_sign, false);
assert!(!sign);
}
_ => panic!(),
}
Expand Down
3 changes: 3 additions & 0 deletions src/sinks/aws_kinesis/firehose/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ async fn firehose_put_records_without_partition_key() {
load_timeout_secs: Some(5),
imds: ImdsAuthentication::default(),
region: None,
sign: true,
})),
endpoints: vec![elasticsearch_address()],
bulk: BulkConfig {
Expand Down Expand Up @@ -195,6 +196,7 @@ async fn firehose_put_records_with_partition_key() {
load_timeout_secs: Some(5),
imds: ImdsAuthentication::default(),
region: None,
sign: true,
})),
endpoints: vec![elasticsearch_address()],
bulk: BulkConfig {
Expand Down Expand Up @@ -278,6 +280,7 @@ async fn ensure_elasticsearch_domain(domain_name: String) -> String {
&None,
)
.await
.unwrap()
.unwrap(),
)
.endpoint_url(test_region_endpoint().endpoint().unwrap())
Expand Down
3 changes: 3 additions & 0 deletions src/sinks/elasticsearch/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ async fn auto_version_aws() {
load_timeout_secs: Some(5),
imds: ImdsAuthentication::default(),
region: None,
sign: true,
},
)),
endpoints: vec![aws_server()],
Expand Down Expand Up @@ -396,6 +397,7 @@ async fn insert_events_on_aws() {
load_timeout_secs: Some(5),
imds: ImdsAuthentication::default(),
region: None,
sign: true,
},
)),
endpoints: vec![aws_server()],
Expand All @@ -422,6 +424,7 @@ async fn insert_events_on_aws_with_compression() {
load_timeout_secs: Some(5),
imds: ImdsAuthentication::default(),
region: None,
sign: true,
},
)),
endpoints: vec![aws_server()],
Expand Down
1 change: 1 addition & 0 deletions src/sources/aws_sqs/integration_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ async fn get_sqs_client() -> aws_sdk_sqs::Client {
AwsAuthentication::test_auth()
.credentials_provider(Region::new("custom"), &Default::default(), &None)
.await
.unwrap()
.unwrap(),
)
.endpoint_url(sqs_address())
Expand Down

0 comments on commit 53a4923

Please sign in to comment.