Skip to content

Commit a1f8b16

Browse files
committed
Update credentials for externalAuth tests
1 parent c1830a3 commit a1f8b16

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

test/dbconfig.js

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,15 @@
3030
*
3131
*****************************************************************************/
3232

33-
module.exports = {
34-
user : process.env.NODE_ORACLEDB_USER || "hr",
35-
password : process.env.NODE_ORACLEDB_PASSWORD || "welcome",
36-
connectString : process.env.NODE_ORACLEDB_CONNECTIONSTRING || "localhost/orcl",
37-
externalAuth : process.env.NODE_ORACLEDB_EXTERNALAUTH ? true : false
38-
};
33+
if (process.env.NODE_ORACLEDB_EXTERNALAUTH)
34+
{
35+
exports.externalAuth = true;
36+
}
37+
else
38+
{
39+
exports.externalAuth = false;
40+
exports.user = process.env.NODE_ORACLEDB_USER || "hr";
41+
exports.password = process.env.NODE_ORACLEDB_PASSWORD || "welcome";
42+
}
43+
44+
exports.connectString = process.env.NODE_ORACLEDB_CONNECTIONSTRING || "localhost/orcl";

0 commit comments

Comments
 (0)