Skip to content

Commit 87d5b6b

Browse files
config: fix defaultFiltersFlags yaml test case (#3128)
Fix yaml input to verify empty filters are ignored. Follow up on #3127 Signed-off-by: Alexander Yastrebov <[email protected]>
1 parent 83efc8a commit 87d5b6b

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

config/defaultfilterflags_test.go

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,14 @@ field:
6969
`tee("https://www.zalando.de/")`,
7070
``, // empty
7171
},
72-
yaml: `field: ratelimit(5, "10s") -> tee("https://www.zalando.de/")`,
72+
yaml: `
73+
field:
74+
- ' ' # whitespaces only
75+
- ratelimit(5, "10s")
76+
- // not a filter, just an eskip comment
77+
- tee("https://www.zalando.de/")
78+
- '' # empty
79+
`,
7380
want: manyFilters,
7481
wantString: `ratelimit(5, "10s") -> tee("https://www.zalando.de/")`,
7582
},

0 commit comments

Comments
 (0)