Skip to content

Commit

Permalink
fix(rules): add OVH Database
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Oct 21, 2023
1 parent b9c8802 commit 75b7dbf
Show file tree
Hide file tree
Showing 5 changed files with 15 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 @@ -257,6 +257,7 @@ exports[`all > should match everything 1`] = `
"optimizely",
"oraclecloud",
"ovh",
"ovh.database",
"pagerduty",
"papertrail",
"paypal",
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 @@ -45,6 +45,7 @@ import './memcached.js';
import './mongodb.js';
import './mysql.js';
import './neo4j.js';
import './ovh.database.js';
import './percona.js';
import './planetscale.js';
import './postgres.js';
Expand Down
10 changes: 10 additions & 0 deletions src/rules/db/ovh.database.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { register } from '../../register.js';

register({
tech: 'ovh.database',
name: 'OVH Database',
type: 'db',
dependencies: [
{ type: 'terraform.resource', name: 'ovh_cloud_project_database' },
],
});
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 @@ -80,6 +80,8 @@ exports[`terraform (resource) > should match everything 1`] = `
"gcp.sql",
"gcp.tasks",
"jira",
"ovh",
"ovh.database",
"qovery",
"qovery.cluster",
"qovery.database",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ export type AllowedKeys =
| 'openai'
| 'optimizely'
| 'oraclecloud'
| 'ovh.database'
| 'ovh'
| 'pagerduty'
| 'papertrail'
Expand Down

0 comments on commit 75b7dbf

Please sign in to comment.