Skip to content

Commit 637c6df

Browse files
committed
TEST/MINOR: bats: remove tests for removed track-scx actions and raw
1 parent 27835d3 commit 637c6df

File tree

3 files changed

+1
-29
lines changed

3 files changed

+1
-29
lines changed

e2e/tests/raw/get.bats

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@ load 'utils/_helpers'
2525
@test "raw: Download configuration" {
2626
resource_get "$_RAW_BASE_PATH"
2727
assert_equal "$SC" 200
28-
test -n "$(get_json_path "$BODY" .)" ||
28+
test -n "$BODY" ||
2929
fail "failed to download raw config. BODY: '$BODY'"
3030
}

e2e/tests/tcp_request_rules/add_2.8.bats

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -46,26 +46,6 @@ load 'utils/_helpers'
4646
fi
4747
}
4848

49-
@test "tcp_request_rules: Add a new TCP Request Rule track-sc-x to backend" {
50-
if haproxy_version_ge "2.8"
51-
then
52-
# Using old track-sc(0|1|2)
53-
PARENT_NAME="test_sticksc"
54-
resource_post "$_BACKEND_BASE_PATH/$PARENT_NAME/tcp_request_rules/0" "data/post-track-sc-x.json" "force_reload=true"
55-
assert_equal "$SC" 201
56-
57-
resource_get "$_BACKEND_BASE_PATH/$PARENT_NAME/tcp_request_rules/0"
58-
assert_equal "$SC" 200
59-
assert_equal "$(get_json_path "$BODY" ".action")" "track-sc"
60-
assert_equal "$(get_json_path "$BODY" ".type")" "content"
61-
assert_equal "$(get_json_path "$BODY" ".cond")" "if"
62-
assert_equal "$(get_json_path "$BODY" ".cond_test")" "TRUE"
63-
assert_equal "$(get_json_path "$BODY" ".track_key")" "src"
64-
assert_equal "$(get_json_path "$BODY" ".track_table")" "test_sticksc"
65-
assert_equal "$(get_json_path "$BODY" ".track_stick_counter")" 0
66-
fi
67-
}
68-
6949
@test "tcp_request_rules: Fail - Add a new TCP Request Rule track-sc to backend - when track_sc_stick_counter is missing" {
7050
if haproxy_version_ge "2.8"
7151
then

e2e/tests/tcp_request_rules/data/post-track-sc-x.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)