@@ -740,30 +740,8 @@ describe('1. connection.js', function(){
740
740
} ) ;
741
741
} ) ; // 1.6
742
742
743
- describe ( '1.7 invalid credentials' , function ( ) {
744
-
745
- it ( '1.7.1 cannot get connections with invalid credentials' , function ( done ) {
746
-
747
- oracledb . getConnection (
748
- {
749
- user : 'notexist' ,
750
- password : 'nopass' ,
751
- connectString : dbConfig . connectString
752
- } ,
753
- function ( err , connection ) {
754
- should . exist ( err ) ;
755
- ( err . message ) . should . startWith ( 'ORA-01017:' ) ;
756
- should . not . exist ( connection ) ;
757
- done ( ) ;
758
- }
759
- ) ;
760
-
761
- } ) ;
762
-
763
- } ) ; // 1.7
764
-
765
- describe ( '1.8 connectionString alias' , function ( ) {
766
- it ( '1.8.1 allows connectionString to be used as an alias for connectString' , function ( done ) {
743
+ describe ( '1.7 connectionString alias' , function ( ) {
744
+ it ( '1.7.1 allows connectionString to be used as an alias for connectString' , function ( done ) {
767
745
oracledb . getConnection (
768
746
{
769
747
user : dbConfig . user ,
@@ -784,46 +762,11 @@ describe('1. connection.js', function(){
784
762
) ;
785
763
} ) ;
786
764
787
- it ( '1.8.2 favors connectString if both connectString and connectionString are passed' , function ( done ) {
788
- oracledb . getConnection (
789
- {
790
- user : dbConfig . user ,
791
- password : dbConfig . password ,
792
- connectString : 'this is wrong' ,
793
- connectionString : dbConfig . connectString
794
- } ,
795
- function ( err , conn ) {
796
- should . exist ( err ) ;
797
- // ORA-12154: TNS:could not resolve the connect identifier specified
798
- should . not . exist ( conn ) ;
799
-
800
- oracledb . getConnection (
801
- {
802
- user : dbConfig . user ,
803
- password : dbConfig . password ,
804
- connectString : dbConfig . connectString ,
805
- connectionString : 'this is wrong'
806
- } ,
807
- function ( err , connection ) {
808
- should . not . exist ( err ) ;
809
-
810
- connection . should . be . ok ( ) ;
811
-
812
- connection . close ( function ( err ) {
813
- should . not . exist ( err ) ;
814
-
815
- done ( ) ;
816
- } ) ;
817
- }
818
- ) ;
819
- }
820
- ) ;
821
- } ) ;
822
- } ) ; // 1.8
765
+ } ) ; // 1.7
823
766
824
- describe ( '1.9 privileged connnections' , function ( ) {
767
+ describe ( '1.8 privileged connnections' , function ( ) {
825
768
826
- it ( '1.9 .1 Negative value - null' , function ( done ) {
769
+ it ( '1.8 .1 Negative value - null' , function ( done ) {
827
770
828
771
oracledb . getConnection (
829
772
{
@@ -842,9 +785,9 @@ describe('1. connection.js', function(){
842
785
done ( ) ;
843
786
}
844
787
) ;
845
- } ) ; // 1.9 .1
788
+ } ) ; // 1.8 .1
846
789
847
- it ( '1.9 .2 Negative - invalid type, a String' , function ( done ) {
790
+ it ( '1.8 .2 Negative - invalid type, a String' , function ( done ) {
848
791
849
792
oracledb . getConnection (
850
793
{
@@ -863,9 +806,9 @@ describe('1. connection.js', function(){
863
806
done ( ) ;
864
807
}
865
808
) ;
866
- } ) ; // 1.9 .2
809
+ } ) ; // 1.8 .2
867
810
868
- it ( '1.9 .3 Negative value - random constants' , function ( done ) {
811
+ it ( '1.8 .3 Negative value - random constants' , function ( done ) {
869
812
870
813
oracledb . getConnection (
871
814
{
@@ -882,9 +825,9 @@ describe('1. connection.js', function(){
882
825
done ( ) ;
883
826
}
884
827
) ;
885
- } ) ; // 1.9 .3
828
+ } ) ; // 1.8 .3
886
829
887
- it ( '1.9 .4 Negative value - NaN' , function ( done ) {
830
+ it ( '1.8 .4 Negative value - NaN' , function ( done ) {
888
831
889
832
oracledb . getConnection (
890
833
{
@@ -903,9 +846,9 @@ describe('1. connection.js', function(){
903
846
done ( ) ;
904
847
}
905
848
) ;
906
- } ) ; // 1.9 .4
849
+ } ) ; // 1.8 .4
907
850
908
- it ( '1.9 .5 gets ignored when acquiring a connection from Pool' , function ( done ) {
851
+ it ( '1.8 .5 gets ignored when acquiring a connection from Pool' , function ( done ) {
909
852
910
853
oracledb . createPool (
911
854
{
@@ -932,8 +875,8 @@ describe('1. connection.js', function(){
932
875
} ) ;
933
876
}
934
877
) ;
935
- } ) ; // 1.9 .5
878
+ } ) ; // 1.8 .5
936
879
937
- } ) ; // 1.9
880
+ } ) ; // 1.8
938
881
939
882
} ) ;
0 commit comments