8000 Fix improve tests. · arangodb/arangodb@601625c · GitHub
[go: up one dir, main page]

Skip to content

Commit 601625c

Browse files
committed
Fix improve tests.
1 parent d62f8ee commit 601625c

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

tests/js/common/shell/shell-validation-rocksdb.js

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,12 @@ function ValidationBasicsSuite () {
303303
}
304304

305305
},
306+
307+
testRemoveValidation: () => {
308+
testCollection.properties({"validation" : { } });
309+
sleepInCluster();
310+
},
311+
306312
// json ////////////////////////////////////////////////////////////////////////////////////////////
307313
testJson: () => {
308314
const v = validatorJson;
@@ -361,7 +367,7 @@ function ValidationBasicsSuite () {
361367

362368
},
363369
// AQL ////////////////////////////////////////////////////////////////////////////////////////////
364-
testGET_SCHEMA: () => {
370+
test_GET_SCHEMA: () => {
365371
const v = validatorJson;
366372
v.level = "strict";
367373
testCollection.properties({"validation" : v });
@@ -380,19 +386,19 @@ function ValidationBasicsSuite () {
380386
} catch (err) {
381387
assertEqual(ERRORS.ERROR_ARANGO_DATA_SOURCE_NOT_FOUND.code, err.errorNum);
382388
}
389+
},
383390

391+
test_GET_SCHEMA_null: () => {
384392
// no validation available must return `null`
385-
testCollection.drop();
386-
db._create(testCollectionName);
387-
res = db._query(`RETURN GET_SCHEMA("${testCollectionName}")`).toArray();
393+
testCollection.properties({validation : {}});
394+
let res = db._query(`RETURN GET_SCHEMA("${testCollectionName}")`).toArray();
388395
assertEqual(res[0], null);
389396
},
390397

391-
testSCHEMA_VALIDATE: () => {
398+
test_SCHEMA_VALIDATE: () => {
392399
const v = validatorJson;
393400
// unset validation
394-
// FIXME - just pass empty object (PR 11346)
395-
testCollection.properties({"validation" : { rule:{} } });
401+
testCollection.properties({validation : {}});
396402
sleepInCluster();
397403

398404
let res;

0 commit comments

Comments
 (0)
0