plugin/etcd: make the address of upstream optional (#2262)
Automatically submitted.
This commit is contained in:
parent
05204ef142
commit
1a01e13db8
2 changed files with 14 additions and 3 deletions
|
@ -30,6 +30,20 @@ func TestSetupEtcd(t *testing.T) {
|
|||
endpoint localhost:300
|
||||
}
|
||||
`, 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
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue