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:
Matt Palmer
2021-11-08 14:45:45 +00:00
committed by GitHub
parent 3f031b6b65
commit e53bff9043
3 changed files with 31 additions and 4 deletions

View File

@@ -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 {