Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(ci): Fix event assertions for aws_ec2_metadata transform #17413

Merged
merged 2 commits into from
May 16, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/transforms/aws_ec2_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ mod integration_tests {
use std::collections::BTreeMap;
use vrl::value::Value;
use warp::Filter;
use vector_common::assert_event_data_eq;

fn ec2_metadata_address() -> String {
std::env::var("EC2_METADATA_ADDRESS").unwrap_or_else(|_| "http://localhost:1338".into())
Expand Down Expand Up @@ -855,7 +856,7 @@ mod integration_tests {

drop(tx);
topology.stop().await;
assert_eq!(out.recv().await, None);
assert_event_data_eq!(out.recv().await, None);
})
.await;
}
Expand Down Expand Up @@ -952,7 +953,7 @@ mod integration_tests {
tx.send(metric.into()).await.unwrap();

let event = out.recv().await.unwrap();
assert_eq!(event.into_metric(), expected_metric);
assert_event_data_eq!(event.into_metric(), expected_metric);

drop(tx);
topology.stop().await;
Expand Down Expand Up @@ -997,7 +998,7 @@ mod integration_tests {
tx.send(log.into()).await.unwrap();

let event = out.recv().await.unwrap();
assert_eq!(event.into_log(), expected_log);
assert_event_data_eq!(event.into_log(), expected_log);

drop(tx);
topology.stop().await;
Expand Down Expand Up @@ -1041,7 +1042,7 @@ mod integration_tests {
tx.send(metric.into()).await.unwrap();

let event = out.recv().await.unwrap();
assert_eq!(event.into_metric(), expected_metric);
assert_event_data_eq!(event.into_metric(), expected_metric);

drop(tx);
topology.stop().await;
Expand Down