Skip to content

Commit

Permalink
fix(rules): add AWS Neptune
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 17, 2023
1 parent 4447e5b commit 31efa1d
Show file tree
Hide file tree
Showing 9 changed files with 46 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/rules/__snapshots__/index.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ exports[`all > should match everything 1`] = `
"aws.fargate",
"aws.glacier",
"aws.lambda",
"aws.neptune",
"aws.rds",
"aws.redshift",
"aws.s3",
Expand Down
18 changes: 18 additions & 0 deletions src/rules/db/aws.neptune.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { register } from '../../register.js';

register({
tech: 'aws.neptune',
name: 'AWS Neptune',
type: 'db',
dependencies: [
{ type: 'npm', name: '@aws-sdk/aws-neptune' },
{ type: 'rust', name: 'aws-sdk-neptune' },
{ type: 'ruby', name: 'aws-sdk-neptune' },
{ type: 'golang', name: 'github.com/aws/aws-sdk-go-v2/service/neptune' },
{
type: 'terraform.resource',
name: /^aws_neptune_/,
example: 'aws_neptune_cluster',
},
],
});
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import './apache_iceberg.js';
import './apache_spark.js';
import './aws.dynamodb.js';
import './aws.elasticache.js';
import './aws.neptune.js';
import './aws.rds.js';
import './aws.redshift.js';
import './clickhouse.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/golang/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ exports[`golang (lockfile) > should match everything 1`] = `
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.neptune",
"aws.rds",
"aws.redshift",
"aws.s3",
Expand Down Expand Up @@ -259,6 +260,11 @@ exports[`golang (lockfile) > should match everything 2`] = `
"github.com/aws/aws-sdk-go-v2/service/lambda",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/neptune",
"v1.0.0",
],
[
"golang",
"github.com/aws/aws-sdk-go-v2/service/rds",
Expand Down
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 @@ -20,6 +20,7 @@ exports[`npm > should match everything 1`] = `
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.neptune",
"aws.rds",
"aws.redshift",
"aws.s3",
Expand Down Expand Up @@ -219,6 +220,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/aws-efs",
"0.0.0",
],
[
"npm",
"@aws-sdk/aws-neptune",
"0.0.0",
],
[
"npm",
"@aws-sdk/aws-redshift",
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/ruby/__snapshots__/lockfile.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.neptune",
"aws.rds",
"aws.redshift",
"aws.s3",
Expand Down Expand Up @@ -185,6 +186,11 @@ exports[`ruby (component) > should match everything 2`] = `
"aws-sdk-lambda",
"1.0.0",
],
[
"ruby",
"aws-sdk-neptune",
"1.0.0",
],
[
"ruby",
"aws-sdk-rds",
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 @@ -16,6 +16,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.neptune",
"aws.rds",
"aws.redshift",
"aws.s3",
Expand Down Expand Up @@ -130,6 +131,11 @@ exports[`rust (component) > should match everything 2`] = `
"aws-sdk-lambda",
"1.0.0",
],
[
"rust",
"aws-sdk-neptune",
"1.0.0",
],
[
"rust",
"aws-sdk-rds",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"aws.elasticache",
"aws.glacier",
"aws.lambda",
"aws.neptune",
"aws.rds",
"aws.redshift",
"aws.s3",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ export type AllowedKeys =
| 'aws.fargate'
| 'aws.glacier'
| 'aws.lambda'
| 'aws.neptune'
| 'aws.rds'
| 'aws.redshift'
| 'aws.s3'
Expand Down

0 comments on commit 31efa1d

Please sign in to comment.