Skip to content

Commit

Permalink
fix(rules): add Apache Kafka
Browse files Browse the repository at this point in the history
  • Loading branch information
bodinsamuel committed Sep 3, 2023
1 parent 903bd3b commit 2b3de25
Show file tree
Hide file tree
Showing 5 changed files with 17 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 @@ -12,6 +12,7 @@ exports[`all > should match everything 1`] = `
"apache_airflow",
"apache_cassandra",
"apache_couchdb",
"apache_kafka",
"apache_spark",
"appveyor",
"atlassian",
Expand Down
8 changes: 8 additions & 0 deletions src/rules/messaging/apache_kafka.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { register } from '../../register.js';

register({
tech: 'apache_kafka',
name: 'Apache Kafka',
type: 'db',
dependencies: [{ type: 'docker', name: 'bitnami/kafka' }],
});
1 change: 1 addition & 0 deletions src/rules/messaging/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import './apache_kafka.js';
import './aws.sns.js';
import './aws.sqs.js';
import './gcp.pubsub.js';
Expand Down
6 changes: 6 additions & 0 deletions src/rules/spec/docker/__snapshots__/component.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ exports[`docker > should match everything 1`] = `
"apache_airflow",
"apache_cassandra",
"apache_couchdb",
"apache_kafka",
"apache_spark",
"aws",
"aws.dynamodb",
Expand Down Expand Up @@ -84,6 +85,11 @@ exports[`docker > should match everything 2`] = `
"apache/spark",
"0.0.0",
],
[
"docker",
"bitnami/kafka",
"0.0.0",
],
[
"docker",
"caddy",
Expand Down
1 change: 1 addition & 0 deletions src/types/techs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export type AllowedKeys =
| 'apache_airflow'
| 'apache_cassandra'
| 'apache_couchdb'
| 'apache_kafka'
| 'apache_spark'
| 'appveyor'
| 'atlassian'
Expand Down

0 comments on commit 2b3de25

Please sign in to comment.