Skip to content

Commit a9adc9b

Browse files
committed
Remove two network-dependent tests
1 parent 05c8c60 commit a9adc9b

File tree

2 files changed

+23
-83
lines changed

2 files changed

+23
-83
lines changed

test/connection.js

Lines changed: 15 additions & 72 deletions
Original file line numberDiff line numberDiff line change
@@ -740,30 +740,8 @@ describe('1. connection.js', function(){
740740
});
741741
}); // 1.6
742742

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) {
767745
oracledb.getConnection(
768746
{
769747
user: dbConfig.user,
@@ -784,46 +762,11 @@ describe('1. connection.js', function(){
784762
);
785763
});
786764

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
823766

824-
describe('1.9 privileged connnections', function() {
767+
describe('1.8 privileged connnections', function() {
825768

826-
it('1.9.1 Negative value - null', function(done) {
769+
it('1.8.1 Negative value - null', function(done) {
827770

828771
oracledb.getConnection(
829772
{
@@ -842,9 +785,9 @@ describe('1. connection.js', function(){
842785
done();
843786
}
844787
);
845-
}); // 1.9.1
788+
}); // 1.8.1
846789

847-
it('1.9.2 Negative - invalid type, a String', function(done) {
790+
it('1.8.2 Negative - invalid type, a String', function(done) {
848791

849792
oracledb.getConnection(
850793
{
@@ -863,9 +806,9 @@ describe('1. connection.js', function(){
863806
done();
864807
}
865808
);
866-
}); // 1.9.2
809+
}); // 1.8.2
867810

868-
it('1.9.3 Negative value - random constants', function(done) {
811+
it('1.8.3 Negative value - random constants', function(done) {
869812

870813
oracledb.getConnection(
871814
{
@@ -882,9 +825,9 @@ describe('1. connection.js', function(){
882825
done();
883826
}
884827
);
885-
}); // 1.9.3
828+
}); // 1.8.3
886829

887-
it('1.9.4 Negative value - NaN', function(done) {
830+
it('1.8.4 Negative value - NaN', function(done) {
888831

889832
oracledb.getConnection(
890833
{
@@ -903,9 +846,9 @@ describe('1. connection.js', function(){
903846
done();
904847
}
905848
);
906-
}); // 1.9.4
849+
}); // 1.8.4
907850

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) {
909852

910853
oracledb.createPool(
911854
{
@@ -932,8 +875,8 @@ describe('1. connection.js', function(){
932875
});
933876
}
934877
);
935-
}); // 1.9.5
878+
}); // 1.8.5
936879

937-
}); // 1.9
880+
}); // 1.8
938881

939882
});

test/list.txt

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -23,17 +23,14 @@ Overview of node-oracledb functional tests
2323
1.5.6 wrong type for param 4 should throw an error
2424
1.6 Close method
2525
1.6.1 close can be used as an alternative to release
26-
1.7 invalid credentials
27-
1.7.1 cannot get connections with invalid credentials
28-
1.8 connectionString alias
29-
1.8.1 allows connectionString to be used as an alias for connectString
30-
1.8.2 favors connectString if both connectString and connectionString are passed
31-
1.9 privileged connnections
32-
1.9.1 Negative value - null
33-
1.9.2 Negative - invalid type, a String
34-
1.9.3 Negative value - random constants
35-
1.9.4 Negative value - NaN
36-
1.9.5 gets ignored when acquiring a connection from Pool
26+
1.7 connectionString alias
27+
1.7.1 allows connectionString to be used as an alias for connectString
28+
1.8 privileged connnections
29+
1.8.1 Negative value - null
30+
1.8.2 Negative - invalid type, a String
31+
1.8.3 Negative value - random constants
32+
1.8.4 Negative value - NaN
33+
1.8.5 gets ignored when acquiring a connection from Pool
3734

3835
2. pool.js
3936
2.1 default values

0 commit comments

Comments
 (0)