Skip to content

Commit 9cd3f8d

Browse files
committed
Some Test updates
1 parent 0814380 commit 9cd3f8d

File tree

2 files changed

+9
-18
lines changed

2 files changed

+9
-18
lines changed

test/jsonDualityViews3.js

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2023, 2024, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2023, 2025, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -173,17 +173,12 @@ describe('274 jsonDualityView3.js', function() {
173173
await connection.execute(testsUtil.sqlCreateTable('parts', createTableParts));
174174

175175
// create a JSON duality view for the parts table
176-
await assert.rejects(
177-
async () => await connection.execute(`
176+
await connection.execute(`
178177
CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW student_ov
179178
AS
180179
parts @INSERT @UPDATE @DELETE
181180
{PartsId: part_id, grossMargin:gross_margin}
182-
`),
183-
/ORA-40945:/
184-
//ORA-40945: Column 'GROSS_MARGIN' of table 'PARTS' cannot be selected in JSON
185-
//relational duality view as it is virtual.
186-
);
181+
`);
187182
await connection.execute(testsUtil.sqlDropTable(`parts`));
188183
});
189184

test/jsonDualityViews4.js

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2023, 2024, Oracle and/or its affiliates. */
1+
/* Copyright (c) 2023, 2025, Oracle and/or its affiliates. */
22

33
/******************************************************************************
44
*
@@ -218,15 +218,10 @@ describe('275. jsonDualityView4.js', function() {
218218
await connection.commit();
219219

220220
// create JSON relational duality view student_ov
221-
await assert.rejects(
222-
async () => await connection.execute(`
221+
await connection.execute(`
223222
CREATE OR REPLACE JSON RELATIONAL DUALITY VIEW student_ov
224223
AS t1{id, product, price, price_with_tax}
225-
`),
226-
/ORA-40945:/
227-
// ORA-40945: Column 'PRICE_WITH_TAX' of table 'T1' cannot be selected in JSON
228-
// relational duality view as it is virtual.
229-
);
224+
`);
230225

231226
// drop the table
232227
await connection.execute(testsUtil.sqlDropTable(`t1`));
@@ -360,6 +355,7 @@ describe('275. jsonDualityView4.js', function() {
360355
SELECT view_owner, view_name, relationship
361356
FROM DBA_JSON_DUALITY_VIEW_TABS
362357
ORDER BY view_owner`);
358+
363359
assert.deepStrictEqual(result.rows, [["NJS_JSONDV4", "STUDENT_OV", null],
364360
["NJS_JSONDV4", "STUDENT_OV", "singleton"], ["NJS_JSONDV4", "STUDENT_OV", "nested"]]);
365361

@@ -368,8 +364,8 @@ describe('275. jsonDualityView4.js', function() {
368364
SELECT COLUMN_NAME, DATA_TYPE
369365
FROM DBA_JSON_DUALITY_VIEW_TAB_COLS
370366
ORDER BY COLUMN_NAME`);
371-
assert.deepStrictEqual(result.rows, [["CLSID", "NUMBER"], ["CLSID", "NUMBER"], ["NAME", "VARCHAR2"], ["NAME", "VARCHAR2"], ["SCID", "NUMBER"],
372-
["STUID", "NUMBER"], ["STUID", "NUMBER"]]);
367+
assert.deepStrictEqual(result.rows, [["CLSID", "NUMBER"], ["CLSID", "NUMBER"],
368+
["NAME", "VARCHAR2"], ["NAME", "VARCHAR2"], ["SCID", "NUMBER"], ["STUID", "NUMBER"], ["STUID", "NUMBER"]]);
373369
});
374370

375371
describe('275.7 Json Duality view with GraphQL', function() {

0 commit comments

Comments
 (0)