1- /* Copyright (c) 2023, Oracle and/or its affiliates. */
1+ /* Copyright (c) 2023, 2024, Oracle and/or its affiliates. */
22
33/******************************************************************************
44 *
@@ -128,10 +128,10 @@ describe('272. jsonDualityView1.js', function() {
128128 } ) ;
129129
130130 after ( async function ( ) {
131- await connection . execute ( testsUtil . sqlDropTable ( ` employees` ) ) ;
132- await connection . execute ( testsUtil . sqlDropTable ( ` departments` ) ) ;
133- await connection . execute ( `drop view emp_ov` ) ;
134- await connection . execute ( `drop view dept_ov` ) ;
131+ await testsUtil . dropTable ( connection , ' employees' ) ;
132+ await testsUtil . dropTable ( connection , ' departments' ) ;
133+ await connection . execute ( `drop view if exists emp_ov` ) ;
134+ await connection . execute ( `drop view if exists dept_ov` ) ;
135135 await connection . close ( ) ;
136136 } ) ;
137137
@@ -291,10 +291,10 @@ describe('272. jsonDualityView1.js', function() {
291291 } ) ;
292292
293293 after ( async function ( ) {
294- await connection . execute ( testsUtil . sqlDropTable ( ` employees` ) ) ;
295- await connection . execute ( testsUtil . sqlDropTable ( ` departments` ) ) ;
296- await connection . execute ( `drop view emp_ov` ) ;
297- await connection . execute ( `drop view dept_ov` ) ;
294+ await testsUtil . dropTable ( connection , ' employees' ) ;
295+ await testsUtil . dropTable ( connection , ' departments' ) ;
296+ await connection . execute ( `drop view if exists emp_ov` ) ;
297+ await connection . execute ( `drop view if exists dept_ov` ) ;
298298 await connection . close ( ) ;
299299 } ) ;
300300
@@ -326,7 +326,7 @@ describe('272. jsonDualityView1.js', function() {
326326 await connection . execute ( `INSERT INTO employees VALUES
327327 ( 101
328328 , 'New'
329- , 'Name'
329+ , 'Name'
330330 , 10
331331 )` ) ;
332332 query = `select * from emp_ov order by 1` ;
@@ -454,9 +454,9 @@ describe('272. jsonDualityView1.js', function() {
454454 } ) ;
455455
456456 after ( async function ( ) {
457- await connection . execute ( testsUtil . sqlDropTable ( ` student_class` ) ) ;
458- await connection . execute ( testsUtil . sqlDropTable ( ` class` ) ) ;
459- await connection . execute ( testsUtil . sqlDropTable ( ` student` ) ) ;
457+ await testsUtil . dropTable ( connection , ' student_class' ) ;
458+ await testsUtil . dropTable ( connection , ' class' ) ;
459+ await testsUtil . dropTable ( connection , ' student' ) ;
460460 await connection . close ( ) ;
461461 } ) ;
462462
@@ -755,7 +755,7 @@ describe('272. jsonDualityView1.js', function() {
755755 )` ;
756756
757757 before ( async function ( ) {
758- if ( dbConfig . test . drcp || dbConfig . test . isCmanTdm ) {
758+ if ( dbConfig . test . drcp || dbConfig . test . isCmanTdm || ! dbConfig . test . DBA_PRIVILEGE ) {
759759 this . skip ( ) ;
760760 }
761761 const credential = {
@@ -773,7 +773,7 @@ describe('272. jsonDualityView1.js', function() {
773773 } ) ;
774774
775775 after ( async function ( ) {
776- if ( dbConfig . test . drcp || dbConfig . test . isCmanTdm ) {
776+ if ( dbConfig . test . drcp || dbConfig . test . isCmanTdm || ! dbConfig . test . DBA_PRIVILEGE ) {
777777 return ;
778778 }
779779 await connection . execute ( `drop user ${ user1 } cascade` ) ;
0 commit comments