Skip to content

Commit

Permalink
fix(tests): fix tests for the generate command (vectordotdev#18383)
Browse files Browse the repository at this point in the history
This commit adds missing conditional compilation features to the tests, which fail when any of the
`demo_logs` source, the `remap` transform or the `console` sink are not compiled.

Signed-off-by: Hugo Hromic <hhromic@gmail.com>
  • Loading branch information
hhromic committed Aug 25, 2023
1 parent 6716959 commit 2a4235c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/generate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,11 @@ mod tests {
);
}

#[cfg(all(
feature = "sources-demo_logs",
feature = "transforms-remap",
feature = "sinks-console"
))]
#[test]
fn generate_basic_yaml() {
let opts = Opts {
Expand Down Expand Up @@ -695,6 +700,11 @@ mod tests {
);
}

#[cfg(all(
feature = "sources-demo_logs",
feature = "transforms-remap",
feature = "sinks-console"
))]
#[test]
fn generate_basic_json() {
let opts = Opts {
Expand Down

0 comments on commit 2a4235c

Please sign in to comment.