Skip to content

Commit

Permalink
fix(rules): add Azure SQL
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 18, 2023
1 parent 6f2355a commit 2608550
Show file tree
Hide file tree
Showing 9 changed files with 47 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 @@ -66,6 +66,7 @@ exports[`all > should match everything 1`] = `
"azure",
"azure.aks",
"azure.ci",
"azure.sql",
"betterstack",
"bigcommerce",
"bitbucket",
Expand Down
18 changes: 18 additions & 0 deletions src/rules/db/azure.sql.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { register } from '../../register.js';

register({
tech: 'azure.sql',
name: 'Azure SQL',
type: 'db',
dependencies: [
{
type: 'terraform.resource',
name: /^azurerm_sql_/,
example: 'azurerm_sql_database',
},
{ type: 'githubAction', name: 'azure/sql-action' },
{ type: 'ruby', name: 'azure_mgmt_sql' },
{ type: 'rust', name: 'azure_mgmt_sql' },
{ type: 'npm', name: '@azure/arm-sql' },
],
});
1 change: 1 addition & 0 deletions src/rules/db/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import './aws.rds.js';
import './aws.redshift.js';
import './aws.secretsmanager.js';
import './aws.timestream.js';
import './azure.sql.js';
import './clickhouse.js';
import './cockroachdb.js';
import './couchbase.js';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ exports[`docker > should match all dependencies 1`] = `
"aws.lambda",
"aws.s3",
"azure",
"azure.sql",
"cloudflare",
"cloudflare.pages",
"cloudflare.workers",
Expand Down Expand Up @@ -252,6 +253,11 @@ exports[`docker > should match all dependencies 2`] = `
"azure/setup-kubectl",
"1",
],
[
"githubAction",
"azure/sql-action",
"1",
],
[
"githubAction",
"bitovi/github-actions-deploy-docker-to-ec2",
Expand Down
7 changes: 7 additions & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ exports[`npm > should match everything 1`] = `
"aws.sqs",
"aws.timestream",
"aws.translate",
"azure",
"azure.sql",
"betterstack",
"bootstrap",
"brevo",
Expand Down Expand Up @@ -617,6 +619,11 @@ exports[`npm > should match everything 2`] = `
"@aws-sdk/middleware-sdk-rds",
"0.0.0",
],
[
"npm",
"@azure/arm-sql",
"0.0.0",
],
[
"npm",
"@clickhouse/client",
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 @@ -44,6 +44,7 @@ exports[`ruby (component) > should match everything 1`] = `
"aws.timestream",
"aws.translate",
"azure",
"azure.sql",
"betterstack",
"brevo",
"cloudflare",
Expand Down Expand Up @@ -358,6 +359,11 @@ exports[`ruby (component) > should match everything 2`] = `
"azure-armrest",
"1.0.0",
],
[
"ruby",
"azure_mgmt_sql",
"1.0.0",
],
[
"ruby",
"browserstack-local",
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 @@ -45,6 +45,7 @@ exports[`rust (component) > should match everything 1`] = `
"aws.timestream",
"aws.translate",
"azure",
"azure.sql",
"cloudflare",
"couchbase",
"datadog",
Expand Down Expand Up @@ -299,6 +300,11 @@ exports[`rust (component) > should match everything 2`] = `
"azure_core",
"1.0.0",
],
[
"rust",
"azure_mgmt_sql",
"1.0.0",
],
[
"rust",
"cassandra-cpp",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ exports[`terraform (resource) > should match everything 1`] = `
"aws.timestream",
"azure",
"azure.aks",
"azure.sql",
"cloudflare",
"cloudflare.pages",
"cloudflare.workers",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ export type AllowedKeys =
| 'aws'
| 'azure.aks'
| 'azure.ci'
| 'azure.sql'
| 'azure'
| 'bash'
| 'betterstack'
Expand Down

0 comments on commit 2608550

Please sign in to comment.