Skip to content

Commit

Permalink
Merge pull request #37653 from hashicorp/td-generate-tagtests-elbv2-core
Browse files Browse the repository at this point in the history
Generate tagging tests for ELBv2 resource types
  • Loading branch information
gdavison committed Jun 4, 2024
2 parents da18b3f + 1dbe2fb commit 570a6e8
Show file tree
Hide file tree
Showing 46 changed files with 12,039 additions and 650 deletions.
1 change: 1 addition & 0 deletions internal/service/elbv2/generate.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
//go:generate go run ../../generate/tags/main.go -ListTags -ListTagsOp=DescribeTags -ListTagsInIDElem=ResourceArns -ListTagsInIDNeedSlice=yes -ListTagsOutTagsElem=TagDescriptions[0].Tags -ServiceTagsSlice -TagOp=AddTags -TagInIDElem=ResourceArns -TagInIDNeedSlice=yes -UntagOp=RemoveTags -UpdateTags -CreateTags -TagsFunc=tags -KeyValueTagsFunc=keyValueTags
//go:generate go run ../../generate/tags/main.go -ListTags -ListTagsOp=DescribeTags -ListTagsInIDElem=ResourceArns -ListTagsInIDNeedValueSlice=yes -ListTagsOutTagsElem=TagDescriptions[0].Tags -ServiceTagsSlice -TagOp=AddTags -TagInIDElem=ResourceArns -TagInIDNeedValueSlice=yes -UntagOp=RemoveTags -UpdateTags -CreateTags -TagsFunc=tagsV2 -KeyValueTagsFunc=keyValueTagsV2 -ListTagsFunc=listTagsV2 -GetTagsInFunc=getTagsInV2 -SetTagsOutFunc=setTagsOutV2 -UpdateTagsFunc=updateTagsV2 -CreateTagsFunc=createTagsV2 -AWSSDKVersion=2 -KVTValues -- tagsv2_gen.go
//go:generate go run ../../generate/servicepackage/main.go
//go:generate go run ../../generate/tagstests/main.go
// ONLY generate directives and package declaration! Do not add anything else to this file.

package elbv2
2 changes: 2 additions & 0 deletions internal/service/elbv2/listener.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ import (
// @SDKResource("aws_alb_listener", name="Listener")
// @SDKResource("aws_lb_listener", name="Listener")
// @Tags(identifierAttribute="id")
// @Testing(existsType="github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types;awstypes;awstypes.Listener")
// @Testing(importIgnore="default_action.0.forward")
func ResourceListener() *schema.Resource {
return &schema.Resource{
CreateWithoutTimeout: resourceListenerCreate,
Expand Down
2 changes: 2 additions & 0 deletions internal/service/elbv2/listener_rule.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const (
// @SDKResource("aws_alb_listener_rule", name="Listener Rule")
// @SDKResource("aws_lb_listener_rule", name="Listener Rule")
// @Tags(identifierAttribute="id")
// @Testing(existsType="github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2/types;awstypes;awstypes.Rule")
// @Testing(importIgnore="action.0.forward")
func ResourceListenerRule() *schema.Resource {
return &schema.Resource{
CreateWithoutTimeout: resourceListenerRuleCreate,
Expand Down
Loading

0 comments on commit 570a6e8

Please sign in to comment.