File tree Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Expand file tree Collapse file tree 2 files changed +28
-2
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,10 @@ Overview of node-oracledb functional tests
70
70
2.9.1 works after the pool as been terminated
71
71
2.10 Close method
72
72
2.10.1 close can be used as an alternative to release
73
-
73
+ 2.11 External Authentication
74
+ 2.11.1 throws error when providing username and password with external authentication
75
+ 2.11.2 throws error when given with username and without password
76
+ 2.11.3 throws error when given with password and without username
74
77
75
78
3. examples.js
76
79
3.1 connect.js
Original file line number Diff line number Diff line change @@ -1020,7 +1020,7 @@ describe('2. pool.js', function() {
1020
1020
1021
1021
} ) ;
1022
1022
1023
- it ( '2.11.2 throws error when providing username' , function ( done ) {
1023
+ it ( '2.11.2 throws error when given with username and without password ' , function ( done ) {
1024
1024
1025
1025
if ( ! dbConfig . user ) {
1026
1026
console . error ( "user/password required." ) ;
@@ -1039,6 +1039,29 @@ describe('2. pool.js', function() {
1039
1039
}
1040
1040
) ;
1041
1041
}
1042
+
1043
+ } ) ;
1044
+
1045
+ it ( '2.11.3 throws error when given with password and without username' , function ( done ) {
1046
+
1047
+ if ( ! dbConfig . user ) {
1048
+ console . error ( "user/password required." ) ;
1049
+ } else {
1050
+ oracledb . createPool (
1051
+ {
1052
+ externalAuth : true ,
1053
+ password : dbConfig . password ,
1054
+ connectString : dbConfig . connectString
1055
+ } ,
1056
+ function ( err , pool ) {
1057
+ should . exist ( err ) ;
1058
+ ( err . message ) . should . startWith ( "DPI-006:" ) ;
1059
+ should . not . exist ( pool ) ;
1060
+ done ( ) ;
1061
+ }
1062
+ ) ;
1063
+ }
1064
+
1042
1065
} ) ;
1043
1066
1044
1067
} ) ; // 2.11
You can’t perform that action at this time.
0 commit comments