Skip to content

Commit

Permalink
chore(ci): Fix event assertions for aws_ec2_metadata transform (vec…
Browse files Browse the repository at this point in the history
…tordotdev#17413)

* chore(ci): Fix event assertions for `aws_ec2_metadata` transform

These were comparing metadata which broke after vectordotdev#17369
since the metadata (like cached estimated JSON size) were, expectedly, different.

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

* Fix assertion

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>

---------

Signed-off-by: Jesse Szwedko <jesse.szwedko@datadoghq.com>
  • Loading branch information
jszwedko authored May 16, 2023
1 parent 5c33f99 commit da36fb6
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/transforms/aws_ec2_metadata.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,6 +723,7 @@ mod integration_tests {
transforms::test::create_topology,
};
use std::collections::BTreeMap;
use vector_common::assert_event_data_eq;
use vrl::value::Value;
use warp::Filter;

Expand Down Expand Up @@ -851,7 +852,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 @@ -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

0 comments on commit da36fb6

Please sign in to comment.