Skip to content

Commit

Permalink
fix: remove skip conditional for zstd (#3289)
Browse files Browse the repository at this point in the history
  • Loading branch information
EstebanBorai committed May 29, 2023
1 parent ef7fa39 commit b1828d6
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions tests/cli/fluvio_smoke_tests/e2e-basic.bats
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,8 @@ teardown_file() {
assert_success
run timeout 15s "$FLUVIO_BIN" topic create "$TOPIC_NAME_12"
assert_success

if [[ "$FLUVIO_CLI_RELEASE_CHANNEL" != "stable" && "$FLUVIO_CLUSTER_RELEASE_CHANNEL" != "stable" ]]; then
run timeout 15s "$FLUVIO_BIN" topic create "$TOPIC_NAME_13" --compression-type zstd
assert_success
fi
run timeout 15s "$FLUVIO_BIN" topic create "$TOPIC_NAME_13" --compression-type zstd
assert_success
}

# Produce message
Expand All @@ -157,12 +154,8 @@ teardown_file() {
assert_success
run bash -c 'echo -e "$LZ4_MESSAGE" | timeout 15s "$FLUVIO_BIN" produce "$TOPIC_NAME_6" --compression lz4'
assert_success

if [[ "$FLUVIO_CLI_RELEASE_CHANNEL" != "stable" && "$FLUVIO_CLUSTER_RELEASE_CHANNEL" != "stable" ]]; then
run bash -c 'echo -e "$ZSTD_MESSAGE" | timeout 15s "$FLUVIO_BIN" produce "$TOPIC_NAME_13" --compression zstd'
assert_success
fi

run bash -c 'echo -e "$ZSTD_MESSAGE" | timeout 15s "$FLUVIO_BIN" produce "$TOPIC_NAME_13" --compression zstd'
assert_success
run bash -c 'echo -e "$LINGER_MESSAGE" | timeout 15s "$FLUVIO_BIN" produce "$TOPIC_NAME_7" --linger 0s'
assert_success
run bash -c 'echo -e "$BATCH_MESSAGE" | timeout 15s "$FLUVIO_BIN" produce "$TOPIC_NAME_8" --batch-size 100'
Expand Down Expand Up @@ -230,10 +223,6 @@ teardown_file() {
}

@test "Consume zstd message" {
if [[ "$FLUVIO_CLI_RELEASE_CHANNEL" == "stable" || "$FLUVIO_CLUSTER_RELEASE_CHANNEL" == "stable" ]]; then
skip "don't run on stable version"
fi

run timeout 15s "$FLUVIO_BIN" consume "$TOPIC_NAME_13" -B -d

assert_output --partial "$ZSTD_MESSAGE"
Expand Down

0 comments on commit b1828d6

Please sign in to comment.