mirror of
https://github.com/weaveworks/scope.git
synced 2026-07-19 05:19:35 +00:00
23 lines
519 B
Go
23 lines
519 B
Go
package route53_test
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/aws/aws-sdk-go/aws"
|
|
"github.com/aws/aws-sdk-go/awstesting"
|
|
"github.com/aws/aws-sdk-go/awstesting/unit"
|
|
"github.com/aws/aws-sdk-go/service/route53"
|
|
)
|
|
|
|
func TestBuildCorrectURI(t *testing.T) {
|
|
svc := route53.New(unit.Session)
|
|
svc.Handlers.Validate.Clear()
|
|
req, _ := svc.GetHostedZoneRequest(&route53.GetHostedZoneInput{
|
|
Id: aws.String("/hostedzone/ABCDEFG"),
|
|
})
|
|
|
|
req.Build()
|
|
|
|
awstesting.Match(t, `\/hostedzone\/ABCDEFG$`, req.HTTPRequest.URL.String())
|
|
}
|