fix(tests/rules): update HTTP flow YAML test for correct indentation and syntax

Fixes previous commit:  2a51c2ef52
This commit is contained in:
yusing
2026-02-24 01:46:26 +08:00
parent 3c5c3ecac2
commit dc6c649f2c

View File

@@ -251,9 +251,9 @@ func TestHTTPFlow_ResponseRuleWithStatusConditionYAML(t *testing.T) {
err := parseRules(fmt.Sprintf(`
- on: status 4xx
do: log error %s "$req_url returned $status_code"
- on: status 200 {
do: log info %s "$req_url returned $status_code"
do: log error %s "$req_url returned $status_code"
- on: status 200
do: log info %s "$req_url returned $status_code"
`, errorLog, infoLog), &rules)
require.NoError(t, err)