From 2a51c2ef52a3f70b1259668b5b0625d9606e0e95 Mon Sep 17 00:00:00 2001 From: yusing Date: Tue, 24 Feb 2026 01:36:35 +0800 Subject: [PATCH] fix(tests/rules): correct HTTP flow YAML test to use new yaml syntax This is a test in yaml_test which meant to be testing old YAML syntax instead of new DSL --- internal/route/rules/http_flow_yaml_test.go | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/internal/route/rules/http_flow_yaml_test.go b/internal/route/rules/http_flow_yaml_test.go index 0cfcb143..a673560a 100644 --- a/internal/route/rules/http_flow_yaml_test.go +++ b/internal/route/rules/http_flow_yaml_test.go @@ -250,12 +250,10 @@ func TestHTTPFlow_ResponseRuleWithStatusConditionYAML(t *testing.T) { infoLog := TestRandomFileName() err := parseRules(fmt.Sprintf(` - status 4xx { - log error %s "$req_url returned $status_code" - } - status 200 { - log info %s "$req_url returned $status_code" - } +- on: status 4xx + 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)