mirror of
https://github.com/yusing/godoxy.git
synced 2026-04-17 22:19:42 +02:00
fix(tests/rules): update HTTP flow YAML test for correct indentation and syntax
Fixes previous commit: 2a51c2ef52
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user