Skip to content

Commit 58e4fe0

Browse files
committed
Initial SODA tests
1 parent e0eb753 commit 58e4fe0

File tree

9 files changed

+1803
-0
lines changed

9 files changed

+1803
-0
lines changed

test/list.txt

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4163,6 +4163,55 @@ Overview of node-oracledb functional tests
41634163
163.14 Negative - set numIterations to be string
41644164
163.15 Negative - set numIterations to be negative value
41654165

4166+
164. soda1.js
4167+
164.1 getSodaDatabase() creates a sodaDatabase Object
4168+
164.2 createCollection() creates a collection
4169+
164.3 openCollection() opens an existing colleciton
4170+
164.4 getCollectionNames() gets an array of collection names
4171+
164.5 create collection with metadata
4172+
164.6 the operation status of collection.drop()
4173+
164.7 Negative: the operation status of collection.drop()
4174+
164.8 get one document
4175+
164.9 get multiple documents
4176+
164.10 create index
4177+
164.11 the examples/soda1.js case
4178+
4179+
165. soda2.js
4180+
165.1 create two sodaDatabase objects which point to the same instance
4181+
165.2 create two sodaDatabase objects from two connections
4182+
165.3 creating a collection with the existing name will open this collection
4183+
165.4 create collection with metadata
4184+
165.5 Negative - create collection with an invalid metadata
4185+
165.6 throw error when creating collection with the existing name and different metadata
4186+
165.7 Negative - createCollection() when collection name is empty string
4187+
4188+
166. sodaCallback.js
4189+
166.1 create a collection, then drop it
4190+
166.2 the callback version of "examples/soda1.js" case
4191+
4192+
167 soda3.js
4193+
167.1 get collection names
4194+
167.2 getCollectionNames() - limit option
4195+
167.3 getCollectionNames() - limit is "undefined"
4196+
167.4 getCollectionNames() - limit is 0
4197+
167.5 getCollectionNames() - limit is null
4198+
167.6 getCollectionNames() - limit is an empty string
4199+
167.7 getCollectionNames() - limit is a negative number
4200+
167.8 starsWith option - basic test
4201+
167.9 starsWith is case sensitive
4202+
167.10 starsWith is an empyt string
4203+
167.11 starsWith is null
4204+
167.12 Negative - starsWith is invalid type, a Number
4205+
167.13 openCollection() basic case 1
4206+
167.14 openCollection() basic case 2
4207+
167.15 the returned value is null if the requested collection does not exist
4208+
167.16 the requested collection name is case sensitive
4209+
4210+
168. soda4.js
4211+
168.1 insertOneAndGet() method
4212+
168.2 customize the key value
4213+
168.3 content is null
4214+
41664215
170. poolDrain.js
41674216
170.1 close pool with force flag, and prevent new connection
41684217
170.2 close pool without force flag (will give out an error ), and prevent new connections

test/opts/mocha.opts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -192,3 +192,9 @@ test/getStmtInfo.js
192192
test/executeMany.js
193193

194194
test/poolDrain.js
195+
test/soda1.js
196+
test/soda2.js
197+
test/soda3.js
198+
test/sodaCallback.js
199+
200+
test/soda4.js

test/opts/mochaNodeV6.opts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,3 +189,5 @@ test/editionTest.js
189189
test/changePassword.js
190190
test/getStmtInfo.js
191191
test/executeMany.js
192+
193+
test/sodaCallback.js

0 commit comments

Comments
 (0)