Skip to content

Commit

Permalink
config: fix defaultFiltersFlags yaml test case (#3128)
Browse files Browse the repository at this point in the history
Fix yaml input to verify empty filters are ignored.

Follow up on #3127

Signed-off-by: Alexander Yastrebov <alexander.yastrebov@zalando.de>
  • Loading branch information
AlexanderYastrebov authored Jun 26, 2024
1 parent 83efc8a commit 87d5b6b
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion config/defaultfilterflags_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,14 @@ field:
`tee("https://www.zalando.de/")`,
``, // empty
},
yaml: `field: ratelimit(5, "10s") -> tee("https://www.zalando.de/")`,
yaml: `
field:
- ' ' # whitespaces only
- ratelimit(5, "10s")
- // not a filter, just an eskip comment
- tee("https://www.zalando.de/")
- '' # empty
`,
want: manyFilters,
wantString: `ratelimit(5, "10s") -> tee("https://www.zalando.de/")`,
},
Expand Down

0 comments on commit 87d5b6b

Please sign in to comment.