Skip to content

Commit 89c6c5a

Browse files
committed
test(win32): take parameters from environment for test run
1 parent 8ea8080 commit 89c6c5a

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/kerberos_win32_tests.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,13 @@ const os = require('os');
66
const SegfaultHandler = require('segfault-handler');
77
SegfaultHandler.registerHandler();
88

9-
const password = 'redacted';
10-
const realm = 'redacted';
11-
const hostname = 'redacted';
12-
const username = `redacted`;
13-
const service = `redacted`;
14-
const port = 'redacted';
15-
const upn = `redacted`;
9+
const password = process.env.KERBEROS_PASSWORD;
10+
const realm = process.env.KERBEROS_REALM;
11+
const hostname = process.env.KERBEROS_HOSTNAME;
12+
const username = `${process.env.KERBEROS_USERNAME}@${realm}`;
13+
const service = `mongodb/${hostname}`;
14+
const port = process.env.KERBEROS_POR || '27017';
15+
const upn = username;
1616

1717
function authenticate(options, callback) {
1818
const db = options.db;

0 commit comments

Comments
 (0)