diff options
Diffstat (limited to 'pkg/config/yaml_test.go')
-rw-r--r-- | pkg/config/yaml_test.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/config/yaml_test.go b/pkg/config/yaml_test.go index a3254d5..fdc5e80 100644 --- a/pkg/config/yaml_test.go +++ b/pkg/config/yaml_test.go @@ -234,6 +234,25 @@ feeds: Options: Map{"include-images": true, "unknown-option": "foo"}, }}, Map{"something": 1})}, + {name: "Feed with Exec", + inp: ` +feeds: + - name: Foo + exec: [whatever, -i, http://foo.bar] + target: bar + include-images: true + unknown-option: foo +`, + wantErr: false, + config: defaultConfig([]configGroupFeed{{ + Target: n("bar"), + Feed: feed{ + Name: "Foo", + Exec: []string{"whatever", "-i", "http://foo.bar"}, + }, + Options: Map{"include-images": true, "unknown-option": "foo"}, + }}, nil)}, + {name: "Feeds", inp: ` feeds: |