Skip to content

Commit 2e4d161

Browse files
committed
chore: export SaslSslListenerOptions
Signed-off-by: Joe Bowbeer <[email protected]>
1 parent 23de77e commit 2e4d161

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { KafkaContainer, StartedKafkaContainer } from "./kafka-container";
1+
export { KafkaContainer, SaslSslListenerOptions, StartedKafkaContainer } from "./kafka-container";

packages/modules/kafka/src/kafka-container-7.test.ts

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -89,12 +89,13 @@ describe("KafkaContainer", { timeout: 240_000 }, () => {
8989
{
9090
brokers: [`${container.getHost()}:${container.getMappedPort(9096)}`],
9191
ssl: true,
92+
sasl: {
93+
mechanism: "scram-sha-512",
94+
username: "app-user",
95+
password: "userPassword",
96+
},
9297
},
9398
{
94-
"sasl.mechanism": "SCRAM-SHA-512",
95-
"sasl.username": "app-user",
96-
"sasl.password": "userPassword",
97-
"security.protocol": "sasl_ssl",
9899
"ssl.ca.location": path.resolve(certificatesDir, "kafka.client.truststore.pem"),
99100
}
100101
);
@@ -129,12 +130,13 @@ describe("KafkaContainer", { timeout: 240_000 }, () => {
129130
{
130131
brokers: [`${container.getHost()}:${container.getMappedPort(9096)}`],
131132
ssl: true,
133+
sasl: {
134+
mechanism: "scram-sha-512",
135+
username: "app-user",
136+
password: "userPassword",
137+
},
132138
},
133139
{
134-
"sasl.mechanism": "SCRAM-SHA-512",
135-
"sasl.username": "app-user",
136-
"sasl.password": "userPassword",
137-
"security.protocol": "sasl_ssl",
138140
"ssl.ca.location": path.resolve(certificatesDir, "kafka.client.truststore.pem"),
139141
}
140142
);

packages/modules/kafka/src/kafka-container-latest.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,13 @@ describe("KafkaContainer", { timeout: 240_000 }, () => {
6060
{
6161
brokers: [`${container.getHost()}:${container.getMappedPort(9096)}`],
6262
ssl: true,
63+
sasl: {
64+
mechanism: "scram-sha-512",
65+
username: "app-user",
66+
password: "userPassword",
67+
},
6368
},
6469
{
65-
"sasl.mechanism": "SCRAM-SHA-512",
66-
"sasl.username": "app-user",
67-
"sasl.password": "userPassword",
68-
"security.protocol": "sasl_ssl",
6970
"ssl.ca.location": path.resolve(certificatesDir, "kafka.client.truststore.pem"),
7071
}
7172
);

0 commit comments

Comments
 (0)