Skip to content

Commit

Permalink
sns.SNS => sns.Topic (#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
rabbitfang authored Jul 22, 2022
1 parent a30fd05 commit 7c503dc
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ providers:
- route53.HealthCheck
- route53.HostedZone
- s3.Bucket
- sns.SNS
- sns.Topic
- sqs.Queue

# Development
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/aws/config/sns.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
types:
- name: SNS
- name: Topic
listApi:
call: ListTopics
outputKey: Topics
Expand Down
4 changes: 2 additions & 2 deletions pkg/provider/aws/sns_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ func TestFetchSnsTopic(t *testing.T) {

ctx := setupIntegrationTest(t)

resources := testprovider.FetchResources(ctx.ctx, t, ctx.p, "sns.SNS")
resources := testprovider.FetchResources(ctx.ctx, t, ctx.p, "sns.Topic")

testingutil.AssertResourceCount(t, resources, "", 1)
testingutil.AssertResourceFilteredCount(t, resources, 1, testingutil.ResourceFilter{
Type: "sns.SNS",
Type: "sns.Topic",
Region: defaultRegion,
Tags: model.Tags{
{
Expand Down
2 changes: 1 addition & 1 deletion pkg/provider/aws/zz_integration_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
"route53.HealthCheck",
"route53.HostedZone",
"s3.Bucket",
"sns.SNS",
"sns.Topic",
"sqs.Queue"
]
16 changes: 8 additions & 8 deletions pkg/provider/aws/zz_sns.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 7c503dc

Please sign in to comment.