File tree Expand file tree Collapse file tree 4 files changed +14
-22
lines changed Expand file tree Collapse file tree 4 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -75,16 +75,15 @@ vi <some-directory>/node-oracledb/test/dbconfig.js
75
75
module .exports = {
76
76
user : process .env .NODE_ORACLEDB_USER || " hr" ,
77
77
password : process .env .NODE_ORACLEDB_PASSWORD || " welcome" ,
78
- connectString : process .env .NODE_ORACLEDB_CONNECTIONSTRING || " localhost/orcl" ,
79
- externalAuth : process .env .NODE_ORACLEDB_EXTERNALAUTH ? true : false
78
+ connectString : process .env .NODE_ORACLEDB_CONNECTIONSTRING || " localhost/orcl"
80
79
};
81
80
```
82
81
83
- To use external authentication, set the ` externalAuth ` property to
84
- ` true ` . Also make sure Oracle Database and the authentication service
85
- have been appropriately configured. See
82
+ To enable external authentication tests, please make sure Oracle Database
83
+ and the authentication service have been appropriately configured. See
86
84
[ Documentation for External Authentication] ( https://github.com/oracle/node-oracledb/blob/master/doc/api.md#extauth )
87
- for more details.
85
+ for more details. And then, set the environment variable ` NODE_ORACLEDB_EXTERNALAUTH `
86
+ to be ` true ` .
88
87
89
88
Note: the test suite requires a schema with these privileges:
90
89
Original file line number Diff line number Diff line change 30
30
*
31
31
*****************************************************************************/
32
32
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" ;
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
+ } ;
Original file line number Diff line number Diff line change @@ -238,10 +238,10 @@ describe('5. externalAuth.js', function() {
238
238
239
239
} ) ; // 5.1
240
240
241
- describe . skip ( '5.2 tests only work when externalAuth is configured on DB' , function ( ) {
241
+ describe ( '5.2 tests only work when externalAuth is configured on DB' , function ( ) {
242
242
243
243
// need to skip these tests if external authentication is not configured
244
- var it = ( dbConfig . externalAuth ) ? global . it : global . it . skip ;
244
+ var it = ( process . env . NODE_ORACLEDB_EXTERNALAUTH ) ? global . it : global . it . skip ;
245
245
246
246
it ( "5.2.1 can get connection from oracledb with external authentication" , function ( done ) {
247
247
Original file line number Diff line number Diff line change @@ -134,9 +134,9 @@ Overview of node-oracledb functional tests
134
134
5.1.8 throws error when getting pool from oracledb only given password when externalAuth is enabled
135
135
5.2 tests only work when externalAuth is configured on DB
136
136
5.2.1 can get connection from oracledb with external authentication
137
- - 5.2.2 can get pool from oracledb with external authentication
137
+ 5.2.2 can get pool from oracledb with external authentication
138
138
5.2.3 gets multiple connections from oracledb
139
- - 5.2.4 gets multiple pools from oracledb
139
+ 5.2.4 gets multiple pools from oracledb
140
140
141
141
6. dmlReturning.js
142
142
6.1 NUMBER & STRING driver data type
You can’t perform that action at this time.
0 commit comments