plugin/forward: add REFUSED test (#1878)

add a test to see if we copy the rcode correctly. Some minor cleanup in
import ordering and renaming NewUpstream to New as we already are in the
upstream package.
This commit is contained in:
Miek Gieben 2018-06-15 16:12:56 +01:00 committed by Yong Tang
parent 70c957d885
commit 177e32b62e
10 changed files with 62 additions and 10 deletions

View file

@ -218,7 +218,7 @@ func ParseStanza(c *caddy.Controller) (*Kubernetes, error) {
k8s.Fall.SetZonesFromArgs(c.RemainingArgs())
case "upstream":
args := c.RemainingArgs()
u, err := upstream.NewUpstream(args)
u, err := upstream.New(args)
if err != nil {
return nil, err
}