Skip to content

Commit

Permalink
TEST/MINOR: bats: remove tests for removed track-scx actions and raw
Browse files Browse the repository at this point in the history
  • Loading branch information
mjuraga committed Sep 20, 2024
1 parent e7f56c0 commit 8335a87
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 29 deletions.
2 changes: 1 addition & 1 deletion e2e/tests/raw/get.bats
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,6 @@ load 'utils/_helpers'
@test "raw: Download configuration" {
resource_get "$_RAW_BASE_PATH"
assert_equal "$SC" 200
test -n "$(get_json_path "$BODY" .)" ||
test -n "$BODY" ||
fail "failed to download raw config. BODY: '$BODY'"
}
20 changes: 0 additions & 20 deletions e2e/tests/tcp_request_rules/add_2.8.bats
Original file line number Diff line number Diff line change
Expand Up @@ -46,26 +46,6 @@ load 'utils/_helpers'
fi
}

@test "tcp_request_rules: Add a new TCP Request Rule track-sc-x to backend" {
if haproxy_version_ge "2.8"
then
# Using old track-sc(0|1|2)
PARENT_NAME="test_sticksc"
resource_post "$_BACKEND_BASE_PATH/$PARENT_NAME/tcp_request_rules/0" "data/post-track-sc-x.json" "force_reload=true"
assert_equal "$SC" 201

resource_get "$_BACKEND_BASE_PATH/$PARENT_NAME/tcp_request_rules/0"
assert_equal "$SC" 200
assert_equal "$(get_json_path "$BODY" ".action")" "track-sc"
assert_equal "$(get_json_path "$BODY" ".type")" "content"
assert_equal "$(get_json_path "$BODY" ".cond")" "if"
assert_equal "$(get_json_path "$BODY" ".cond_test")" "TRUE"
assert_equal "$(get_json_path "$BODY" ".track_key")" "src"
assert_equal "$(get_json_path "$BODY" ".track_table")" "test_sticksc"
assert_equal "$(get_json_path "$BODY" ".track_stick_counter")" 0
fi
}

@test "tcp_request_rules: Fail - Add a new TCP Request Rule track-sc to backend - when track_sc_stick_counter is missing" {
if haproxy_version_ge "2.8"
then
Expand Down
8 changes: 0 additions & 8 deletions e2e/tests/tcp_request_rules/data/post-track-sc-x.json

This file was deleted.

0 comments on commit 8335a87

Please sign in to comment.