Skip to content

Commit

Permalink
fix(rules): add Scaleway Database
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 21, 2023
1 parent bc613d9 commit a18300c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 1 deletion.
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 @@ -313,6 +313,7 @@ exports[`all > should match everything 1`] = `
"sap",
"sas",
"scaleway",
"scaleway.database",
"scoutapm",
"scss",
"sendgrid",
Expand Down
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ import './qovery.database.js';
import './redis.js';
import './replit.database.js';
import './replit.postgres.js';
import './scaleway.database.js';
import './snowflake.js';
import './sqlite.js';
import './supabase.postgres.js';
Expand Down
8 changes: 8 additions & 0 deletions src/rules/db/scaleway.database.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'scaleway.database',
name: 'Scaleway Database',
type: 'db',
dependencies: [{ type: 'terraform.resource', name: 'scaleway_rdb_instance' }],
});
2 changes: 2 additions & 0 deletions src/rules/spec/terraform/__snapshots__/resource.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ exports[`terraform (resource) > should match everything 1`] = `
"qovery",
"qovery.cluster",
"qovery.database",
"scaleway",
"scaleway.database",
"terraform",
]
`;
Expand Down
2 changes: 1 addition & 1 deletion src/rules/storage/ovh.storage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { register } from '../../register.js';
register({
tech: 'ovh.storage',
name: 'OVH Storage',
type: 'hosting',
type: 'storage',
dependencies: [
{
type: 'terraform.resource',
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,7 @@ export type AllowedKeys =
| 'sanity'
| 'sap'
| 'sas'
| 'scaleway.database'
| 'scaleway'
| 'scoutapm'
| 'scss'
Expand Down

0 comments on commit a18300c

Please sign in to comment.