We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fb02e0 commit a6a2f45Copy full SHA for a6a2f45
test/e2e/tls_connection.test.ts
@@ -5,11 +5,13 @@ import { Connection } from "../../src/connection.js"
5
import { readFile } from "fs/promises"
6
7
describe("TLS Connection", () => {
8
+ const LOCAL_TEST_CN = "rabbitmq"
9
+
10
let environment: Environment
11
let connection: Connection
12
13
test("creating a TLS connection", async () => {
- const cn = process.env.CN ?? "rabbitmq"
14
+ const cn = process.env.CN ?? LOCAL_TEST_CN
15
const tls = {
16
ca: await readFile("./tls-gen/basic/result/ca_certificate.pem", "utf8"),
17
cert: await readFile(`./tls-gen/basic/result/client_${cn}_certificate.pem`, "utf8"),
0 commit comments