Skip to content

Commit 332b0e9

Browse files
committed
Add test cases for session tag and callback
1 parent 19cef05 commit 332b0e9

File tree

3 files changed

+1762
-15
lines changed

3 files changed

+1762
-15
lines changed

test/list.txt

Lines changed: 59 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -4309,21 +4309,21 @@ Overview of node-oracledb functional tests
43094309

43104310
180. externalProxyAuth.js
43114311
180.1 Non-Pool Connect
4312-
180.1.1 Non-Pool Connect: Basic Auth
4313-
180.1.2 Non-Pool Connect: External Auth
4314-
180.1.3 Non-Pool Connect: Basic Auth with proxy
4315-
180.1.4 Non-Pool Connect: External Auth with proxy
4316-
180.1.5 Non-Pool Connect: External Auth with proxy no brackets
4312+
180.1.1 Non-Pool Connect: Basic Auth
4313+
180.1.2 Non-Pool Connect: External Auth
4314+
180.1.3 Non-Pool Connect: Basic Auth with proxy
4315+
180.1.4 Non-Pool Connect: External Auth with proxy
4316+
180.1.5 Non-Pool Connect: External Auth with proxy no brackets
43174317
180.2 Pooled Connect
4318-
180.2.1 Pooled Connect: Basic Auth
4319-
180.2.2 Pooled Connect: External Auth
4320-
180.2.3 Pooled Connect: Basic Auth with proxy when create pool
4321-
180.2.4 Pooled Connect: Basic Auth with proxy when acquire connection
4322-
180.2.5 Pooled Connect: Basic Auth with proxy when acquire connection
4323-
180.2.6 Pooled Connect: External Auth with proxy when create pool
4324-
180.2.7 Pooled Connect: External Auth with proxy no brackets when create pool
4325-
180.2.8 Pooled Connect: External Auth with proxy when acquire connection
4326-
180.2.9 Pooled Connect: External Auth with proxy no brackets when acquire connection
4318+
180.2.1 Pooled Connect: Basic Auth
4319+
180.2.2 Pooled Connect: External Auth
4320+
180.2.3 Pooled Connect: Basic Auth with proxy when create pool
4321+
180.2.4 Pooled Connect: Basic Auth with proxy when acquire connection
4322+
180.2.5 Pooled Connect: Basic Auth with proxy when acquire connection
4323+
180.2.6 Pooled Connect: External Auth with proxy when create pool
4324+
180.2.7 Pooled Connect: External Auth with proxy no brackets when create pool
4325+
180.2.8 Pooled Connect: External Auth with proxy when acquire connection
4326+
180.2.9 Pooled Connect: External Auth with proxy no brackets when acquire connection
43274327

43284328
181. dataTypeXML.js
43294329
181.1 basic case, insert XML data and query back
@@ -4335,3 +4335,48 @@ Overview of node-oracledb functional tests
43354335
182.1 defers initializatiion of ODPI-C
43364336
182.2 Negative: throws error when asking for ODPI-C attributes
43374337
183.3 Negative: call oracledb method
4338+
4339+
184. sessionTag.js
4340+
184.1 Remote PL/SQL Callback
4341+
184.1.1 Acquire connection without tag
4342+
184.1.2 Acquire connection from pool without tag
4343+
184.1.3 Acquire connection from pool with empty string tag
4344+
184.1.4 Acquire connection from pool with valid tag
4345+
184.1.5 Acquire connection from pool with error in callback
4346+
184.1.6 Acquire connection from pool twice with same tag
4347+
184.1.7 Acquire connection from pool twice with different tag
4348+
184.1.8 Acquire connection from pool twice with different tag using matchAnyTag
4349+
184.1.9 Acquire connection from pool twice with different multi-tag using matchAnyTag
4350+
184.1.10 Acquire connection from pool twice with empty string tag using matchAnyTag
4351+
184.1.11 Acquire connection from pool twice with first connection's tag set to ""
4352+
184.1.12 Acquire connection from pool twice with different tag after setting first connection's tag
4353+
184.2 Local Javascript Callback
4354+
184.2.1 Acquire connection without tag
4355+
184.2.2 Acquire connection from pool without tag
4356+
184.2.3 Acquire connection from pool with empty string tag
4357+
184.2.4 Acquire connection from default pool with valid tag
4358+
184.2.5 Acquire connection from pool with valid tag
4359+
184.2.6 Acquire connection from pool with bad tag using async session callback
4360+
184.2.7 Acquire connection from pool with bad tag using sync session callback
4361+
184.2.8 Acquire connection from pool twice with same tag
4362+
184.2.9 Acquire connection from pool twice with different tag
4363+
184.2.10 Acquire connection from pool twice with different tag using matchAnyTag
4364+
184.2.11 Acquire connection from pool twice with different multi-tag using matchAnyTag
4365+
184.2.12 Acquire connection from pool twice with first connection's tag set to ""
4366+
184.2.13 Acquire connection from pool twice with different tag after setting first connection's tag
4367+
184.3 Change connection's tag before the connection is closed
4368+
184.3.1 Setting connection's tag to undefined triggers error NJS-004
4369+
184.3.2 Setting connection's tag to random object triggers error NJS-004
4370+
184.3.3 Closing randomly tagged connection triggers error ORA-24488
4371+
184.4 Dropping Session From Pool
4372+
184.4.1 Acquire connection from pool, close with tag
4373+
184.4.2 Acquire connection from pool, drop session
4374+
184.4.3 Acquire connection from pool, drop session with tag
4375+
184.4.4 Acquire connection from pool, wait for pool ping to call session fixup
4376+
184.4.5 Acquire connection from pool, wait for pool timeout to drop
4377+
184.4.6 Drop connection from pool with poolMin=0
4378+
184.4.7 Close connection from pool with {drop: false}
4379+
184.4.8 Close connection from pool with {drop: randomObject}
4380+
184.4.9 Close connection from pool with {drop: 0}
4381+
184.4.10 Close connection from pool with empty dict
4382+
184.4.11 Close connection from pool with {drop: random string}

test/opts/mocha.opts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,4 +209,6 @@ test/soda11.js
209209
test/externalProxyAuth.js
210210

211211
test/dataTypeXML.js
212-
test/deferLibInit.js
212+
test/deferLibInit.js
213+
214+
test/sessionTag.js

0 commit comments

Comments
 (0)