diff options
Diffstat (limited to 'plugin/etcd/setup_test.go')
-rw-r--r-- | plugin/etcd/setup_test.go | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/plugin/etcd/setup_test.go b/plugin/etcd/setup_test.go index 517aeea54..620460cc1 100644 --- a/plugin/etcd/setup_test.go +++ b/plugin/etcd/setup_test.go @@ -31,6 +31,20 @@ func TestSetupEtcd(t *testing.T) { } `, false, "skydns", []string{"localhost:300"}, "", }, + //test for upstream + { + `etcd { + endpoint localhost:300 + upstream 8.8.8.8:53 8.8.4.4:53 +}`, false, "skydns", []string{"localhost:300"}, "", + }, + //test for optional upstream address + { + `etcd { + endpoint localhost:300 + upstream +}`, false, "skydns", []string{"localhost:300"}, "", + }, // negative { `etcd { |