File tree Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Expand file tree Collapse file tree 3 files changed +26
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,14 @@ describe('161. changePassword.js', function() {
38
38
var myUser = "nodb_schema_changepw" ;
39
39
40
40
before ( function ( done ) {
41
+
42
+ if ( ! dbConfig . DBA_PRIVILEGE ) { this . skip ( ) ; }
43
+
41
44
async . series ( [
45
+ function ( cb ) {
46
+ if ( ! dbConfig . DBA_PRIVILEGE ) { done ( ) ; }
47
+ else { cb ( ) ; }
48
+ } ,
42
49
// SYSDBA connection
43
50
function ( cb ) {
44
51
var credential = {
@@ -83,6 +90,10 @@ describe('161. changePassword.js', function() {
83
90
84
91
after ( function ( done ) {
85
92
async . series ( [
93
+ function ( cb ) {
94
+ if ( ! dbConfig . DBA_PRIVILEGE ) { done ( ) ; }
95
+ else { cb ( ) ; }
96
+ } ,
86
97
function ( cb ) {
87
98
var sql = "DROP USER " + myUser + " CASCADE" ;
88
99
dbaConn . execute (
Original file line number Diff line number Diff line change @@ -39,10 +39,10 @@ config.connectString = process.env.NODE_ORACLEDB_CONNECTIONSTRING || 'localhost/
39
39
// Has external authentication set up? Negative by default.
40
40
config . externalAuth = process . env . NODE_ORACLEDB_EXTERNALAUTH || false ;
41
41
42
- // Have you got DBA privilege? Positive by default.
43
- config . DBA_PRIVILEGE = process . env . NODE_DBA_PRIVILEGE || true ;
42
+ // Have you got DBA privilege? Negative by default.
43
+ config . DBA_PRIVILEGE = process . env . NODE_DBA_PRIVILEGE || false ;
44
44
45
45
config . DBA_user = process . env . NODE_ORACLEDB_DBA_USER || 'sys' ;
46
46
config . DBA_password = process . env . NODE_ORACLEDB_DBA_PASSWORD || 'oracle' ;
47
47
48
- module . exports = config ;
48
+ module . exports = config ;
Original file line number Diff line number Diff line change @@ -38,7 +38,14 @@ describe('160. editionTest.js', function() {
38
38
var conn ;
39
39
40
40
before ( function ( done ) {
41
+
42
+ if ( ! dbConfig . DBA_PRIVILEGE ) { this . skip ( ) ; }
43
+
41
44
async . series ( [
45
+ function ( cb ) {
46
+ if ( ! dbConfig . DBA_PRIVILEGE ) { done ( ) ; }
47
+ else { cb ( ) ; }
48
+ } ,
42
49
// SYSDBA connection
43
50
function ( cb ) {
44
51
var credential = {
@@ -224,7 +231,12 @@ describe('160. editionTest.js', function() {
224
231
} ) ; // before()
225
232
226
233
after ( function ( done ) {
234
+
227
235
async . series ( [
236
+ function ( cb ) {
237
+ if ( ! dbConfig . DBA_PRIVILEGE ) { done ( ) ; }
238
+ else { cb ( ) ; }
239
+ } ,
228
240
function ( cb ) {
229
241
var sql = "DROP EDITION nodb_e2 CASCADE" ;
230
242
dbaConn . execute (
You can’t perform that action at this time.
0 commit comments