aboutsummaryrefslogtreecommitdiff
path: root/pkg/config/yaml_test.go
diff options
context:
space:
mode:
authorRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-25 20:33:06 +0200
committerRené 'Necoro' Neumann <necoro@necoro.eu>2020-05-25 20:33:06 +0200
commitdae31bb0192e6b519111d3cb80ddd4312cda306c (patch)
tree132f610d3e2d71ec396f6a3cd960ac33aad35df2 /pkg/config/yaml_test.go
parent3cbf95d38b6f8bd17b4312371ed07e6847ff0f5c (diff)
downloadfeed2imap-go-dae31bb0192e6b519111d3cb80ddd4312cda306c.tar.gz
feed2imap-go-dae31bb0192e6b519111d3cb80ddd4312cda306c.tar.bz2
feed2imap-go-dae31bb0192e6b519111d3cb80ddd4312cda306c.zip
'Exec' as an alternative to 'Url'
Diffstat (limited to '')
-rw-r--r--pkg/config/yaml_test.go19
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: