55 "testing"
66
77 "github.com/aws/aws-sdk-go-v2/service/route53"
8- route53Types "github.com/aws/aws-sdk-go-v2/service/route53/types"
8+ "github.com/aws/aws-sdk-go-v2/service/route53/types"
99 "github.com/cloudquery/cloudquery/plugins/source/aws/client"
1010 "github.com/cloudquery/cloudquery/plugins/source/aws/client/mocks"
1111 "github.com/cloudquery/faker/v3"
@@ -14,60 +14,60 @@ import (
1414
1515func buildRoute53HostedZonesMock (t * testing.T , ctrl * gomock.Controller ) client.Services {
1616 m := mocks .NewMockRoute53Client (ctrl )
17- h := route53Types .HostedZone {}
17+ h := types .HostedZone {}
1818 if err := faker .FakeData (& h ); err != nil {
1919 t .Fatal (err )
2020 }
2121 m .EXPECT ().ListHostedZones (gomock .Any (), gomock .Any (), gomock .Any ()).Return (
2222 & route53.ListHostedZonesOutput {
23- HostedZones : []route53Types .HostedZone {h },
23+ HostedZones : []types .HostedZone {h },
2424 }, nil )
25- tag := route53Types .Tag {}
25+ tag := types .Tag {}
2626 if err := faker .FakeData (& tag ); err != nil {
2727 t .Fatal (err )
2828 }
2929 //create id that is usually returned by aws
3030 hzId := * h .Id
31- newId := fmt .Sprintf ("/%s/%s" , route53Types .TagResourceTypeHostedzone , * h .Id )
31+ newId := fmt .Sprintf ("/%s/%s" , types .TagResourceTypeHostedzone , * h .Id )
3232 h .Id = & newId
3333 m .EXPECT ().ListTagsForResources (gomock .Any (), gomock .Any (), gomock .Any ()).Return (
3434 & route53.ListTagsForResourcesOutput {
35- ResourceTagSets : []route53Types .ResourceTagSet {
35+ ResourceTagSets : []types .ResourceTagSet {
3636 {
3737 ResourceId : & hzId ,
38- Tags : []route53Types .Tag {tag },
38+ Tags : []types .Tag {tag },
3939 },
4040 },
4141 }, nil )
42- qlc := route53Types .QueryLoggingConfig {}
42+ qlc := types .QueryLoggingConfig {}
4343 if err := faker .FakeData (& qlc ); err != nil {
4444 t .Fatal (err )
4545 }
4646 m .EXPECT ().ListQueryLoggingConfigs (gomock .Any (), gomock .Any (), gomock .Any ()).Return (
4747 & route53.ListQueryLoggingConfigsOutput {
48- QueryLoggingConfigs : []route53Types .QueryLoggingConfig {qlc },
48+ QueryLoggingConfigs : []types .QueryLoggingConfig {qlc },
4949 }, nil )
50- rrs := route53Types .ResourceRecordSet {}
50+ rrs := types .ResourceRecordSet {}
5151 if err := faker .FakeData (& rrs ); err != nil {
5252 t .Fatal (err )
5353 }
5454 m .EXPECT ().ListResourceRecordSets (gomock .Any (), gomock .Any (), gomock .Any ()).Return (
5555 & route53.ListResourceRecordSetsOutput {
56- ResourceRecordSets : []route53Types .ResourceRecordSet {rrs },
56+ ResourceRecordSets : []types .ResourceRecordSet {rrs },
5757 }, nil )
58- tpi := route53Types .TrafficPolicyInstance {}
58+ tpi := types .TrafficPolicyInstance {}
5959 if err := faker .FakeData (& tpi ); err != nil {
6060 t .Fatal (err )
6161 }
6262 m .EXPECT ().ListTrafficPolicyInstancesByHostedZone (gomock .Any (), gomock .Any (), gomock .Any ()).Return (
6363 & route53.ListTrafficPolicyInstancesByHostedZoneOutput {
64- TrafficPolicyInstances : []route53Types .TrafficPolicyInstance {tpi },
64+ TrafficPolicyInstances : []types .TrafficPolicyInstance {tpi },
6565 }, nil )
66- vpc := route53Types .VPC {}
66+ vpc := types .VPC {}
6767 if err := faker .FakeData (& vpc ); err != nil {
6868 t .Fatal (err )
6969 }
70- ds := route53Types .DelegationSet {}
70+ ds := types .DelegationSet {}
7171 if err := faker .FakeData (& ds ); err != nil {
7272 t .Fatal (err )
7373 }
@@ -76,7 +76,7 @@ func buildRoute53HostedZonesMock(t *testing.T, ctrl *gomock.Controller) client.S
7676 & route53.GetHostedZoneOutput {
7777 HostedZone : & h ,
7878 DelegationSet : & ds ,
79- VPCs : []route53Types .VPC {vpc },
79+ VPCs : []types .VPC {vpc },
8080 }, nil )
8181 return client.Services {
8282 Route53 : m ,
0 commit comments