mirror of
https://github.com/coredns/coredns.git
synced 2025-10-28 00:34:24 -04:00
plugin/route53: Configurable AWS Endpoint (#4963)
Provide the ability to configure the AWS endpoint Signed-off-by: Matthew Palmer <matthew.palmer@helpsystems.com>
This commit is contained in:
@@ -10,7 +10,7 @@ import (
|
||||
)
|
||||
|
||||
func TestSetupRoute53(t *testing.T) {
|
||||
f = func(credential *credentials.Credentials) route53iface.Route53API {
|
||||
f = func(credential *credentials.Credentials, endpoint *string) route53iface.Route53API {
|
||||
return fakeRoute53{}
|
||||
}
|
||||
|
||||
@@ -70,6 +70,12 @@ func TestSetupRoute53(t *testing.T) {
|
||||
|
||||
{`route53 example.org {
|
||||
}`, true},
|
||||
{`route53 example.org:12345678 {
|
||||
aws_endpoint
|
||||
}`, true},
|
||||
{`route53 example.org:12345678 {
|
||||
aws_endpoint https://localhost
|
||||
}`, false},
|
||||
}
|
||||
|
||||
for _, test := range tests {
|
||||
|
||||
Reference in New Issue
Block a user