Skip to content

Commit

Permalink
fix(rules): add Aws.SNS
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 21, 2023
1 parent 8769633 commit 8cd3929
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 1 deletion.
12 changes: 12 additions & 0 deletions src/rules/messaging/aws.sns.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
import { register } from '../../register.js';

register({
tech: 'aws.sns',
name: 'SNS',
type: 'messaging',
dependencies: [
{ type: 'npm', name: '@aws-sdk/client-sns' },
{ type: 'rust', name: 'aws-sdk-sns' },
{ type: 'ruby', name: 'aws-sdk-sns' },
],
});
3 changes: 2 additions & 1 deletion src/rules/messaging/index.ts
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
import './rabbitmq.js';
import './aws.sns.js';
import './gcp.pubsub.js';
import './rabbitmq.js';
6 changes: 6 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`npm > should match everything 1`] = `
"aws.lambda",
"aws.rds",
"aws.s3",
"aws.sns",
"bootstrap",
"browserstack",
"couchbase",
Expand Down Expand Up @@ -144,6 +145,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/client-s3",
"0.0.0",
],
[
"npm",
"@aws-sdk/client-sns",
"0.0.0",
],
[
"npm",
"@aws-sdk/middleware-sdk-rds",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.lambda",
"aws.rds",
"aws.s3",
"aws.sns",
"azure",
"couchbase",
"datadog",
Expand Down Expand Up @@ -121,6 +122,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-s3",
"1.0.0",
],
[
"ruby",
"aws-sdk-sns",
"1.0.0",
],
[
"ruby",
"azure-armrest",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/rust/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.lambda",
"aws.rds",
"aws.s3",
"aws.sns",
"azure",
"cassandra",
"couchbase",
Expand Down Expand Up @@ -98,6 +99,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-s3",
"1.0.0",
],
[
"rust",
"aws-sdk-sns",
"1.0.0",
],
[
"rust",
"azure_core",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type AllowedKeys =
| 'aws.lambda'
| 'aws.rds'
| 'aws.s3'
| 'aws.sns'
| 'aws'
| 'azure.ci'
| 'azure'
Expand Down

0 comments on commit 8cd3929

Please sign in to comment.