Skip to content

Commit

Permalink
fix(rules): add Google Maps
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Aug 7, 2023
1 parent df0103c commit adf585c
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/common/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ export const list: TechItem[] = [
{ key: 'gcp.cloudrun', name: 'Cloud Run', type: 'hosting' },
{ key: 'gcp.functions', name: 'Functions', type: 'hosting' },
{ key: 'gcp.cloudbuild', name: 'Cloud Build', type: 'tool' },
{ key: 'gcp.maps', name: 'Maps', type: 'api' },
{ key: 'gcp.language', name: 'Language', type: 'api' },
{ key: 'gcp.secretmanager', name: 'Secret manager', type: 'db' },
{ key: 'gcp.pubsub', name: 'PubSub', type: 'messaging' },
Expand Down
10 changes: 10 additions & 0 deletions src/rules/api/gcp.maps.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { register } from '../../rules.js';

register({
tech: 'gcp.maps',
dependencies: [
{ type: 'npm', name: '@google-cloud/maps' },
{ type: 'terraform.resource', name: '' },
{ type: 'ruby', name: 'google_maps_service' },
],
});
1 change: 1 addition & 0 deletions src/rules/spec/nodejs/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ exports[`npm > should match everything 1`] = `
"gcp.gce",
"gcp.gcs",
"gcp.language",
"gcp.maps",
"gcp.pubsub",
"gcp.secretmanager",
"gcp.sql",
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 @@ -4,6 +4,7 @@ exports[`ruby (component) > should match everything 1`] = `
Set {
"gcp",
"gcp.language",
"gcp.maps",
"zookeeper",
"aws",
"aws.dynamodb",
Expand Down Expand Up @@ -236,6 +237,11 @@ exports[`ruby (component) > should match everything 2`] = `
"google-cloud-storage",
"1.0.0",
],
[
"ruby",
"google_maps_service",
"1.0.0",
],
[
"ruby",
"helm-rb",
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`] = `
"gcp.gce",
"gcp.gcs",
"gcp.gke",
"gcp.maps",
"gcp.pubsub",
"gcp.secretmanager",
"gcp.sql",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export type AllowedKeys =
| 'gcp.gcs'
| 'gcp.gke'
| 'gcp.language'
| 'gcp.maps'
| 'gcp.pubsub'
| 'gcp.secretmanager'
| 'gcp.sql'
Expand Down

0 comments on commit adf585c

Please sign in to comment.