File tree Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Expand file tree Collapse file tree 3 files changed +1
-29
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,6 @@ load 'utils/_helpers'
25
25
@test " raw: Download configuration" {
26
26
resource_get " $_RAW_BASE_PATH "
27
27
assert_equal " $SC " 200
28
- test -n " $( get_json_path " $ BODY" . ) " ||
28
+ test -n " $BODY " ||
29
29
fail " failed to download raw config. BODY: '$BODY '"
30
30
}
Original file line number Diff line number Diff line change @@ -46,26 +46,6 @@ load 'utils/_helpers'
46
46
fi
47
47
}
48
48
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
-
69
49
@test " tcp_request_rules: Fail - Add a new TCP Request Rule track-sc to backend - when track_sc_stick_counter is missing" {
70
50
if haproxy_version_ge " 2.8"
71
51
then
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments