@itentialopensource/adapter-oracle_cloud 0.1.1 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/AUTH.md +39 -0
- package/BROKER.md +199 -0
- package/CALLS.md +859 -0
- package/CHANGELOG.md +17 -2
- package/CODE_OF_CONDUCT.md +12 -17
- package/CONTRIBUTING.md +3 -148
- package/ENHANCE.md +69 -0
- package/PROPERTIES.md +641 -0
- package/README.md +235 -576
- package/SUMMARY.md +9 -0
- package/SYSTEMINFO.md +11 -0
- package/TROUBLESHOOT.md +47 -0
- package/adapter.js +371 -270
- package/adapterBase.js +843 -419
- package/changelogs/changelog.md +16 -0
- package/entities/.generic/action.json +105 -0
- package/entities/.generic/schema.json +6 -1
- package/error.json +6 -0
- package/metadata.json +49 -0
- package/package.json +24 -24
- package/pronghorn.json +680 -100
- package/propertiesDecorators.json +14 -0
- package/propertiesSchema.json +830 -9
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +11867 -0
- package/report/adapter-openapi.yaml +11966 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1653049581192.json +120 -0
- package/report/updateReport1691507422430.json +120 -0
- package/report/updateReport1692202455354.json +120 -0
- package/report/updateReport1694460824360.json +120 -0
- package/report/updateReport1698420559437.json +120 -0
- package/sampleProperties.json +153 -3
- package/test/integration/adapterTestBasicGet.js +3 -5
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +176 -127
- package/test/unit/adapterBaseTestUnit.js +388 -308
- package/test/unit/adapterTestUnit.js +643 -402
- package/utils/adapterInfo.js +206 -0
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +12 -57
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +5 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +123 -53
- package/utils/tbUtils.js +92 -48
- package/utils/testRunner.js +17 -17
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
|
@@ -4,36 +4,48 @@
|
|
|
4
4
|
/* global describe it log pronghornProps */
|
|
5
5
|
/* eslint global-require: warn */
|
|
6
6
|
/* eslint no-unused-vars: warn */
|
|
7
|
+
/* eslint import/no-dynamic-require:warn */
|
|
7
8
|
|
|
8
9
|
// include required items for testing & logging
|
|
9
10
|
const assert = require('assert');
|
|
10
|
-
const fs = require('fs-extra');
|
|
11
|
-
const mocha = require('mocha');
|
|
12
11
|
const path = require('path');
|
|
13
12
|
const util = require('util');
|
|
14
|
-
const winston = require('winston');
|
|
15
13
|
const execute = require('child_process').execSync;
|
|
14
|
+
const fs = require('fs-extra');
|
|
15
|
+
const mocha = require('mocha');
|
|
16
|
+
const winston = require('winston');
|
|
16
17
|
const { expect } = require('chai');
|
|
17
18
|
const { use } = require('chai');
|
|
18
19
|
const td = require('testdouble');
|
|
20
|
+
const Ajv = require('ajv');
|
|
19
21
|
|
|
22
|
+
const ajv = new Ajv({ strictSchema: false, allErrors: true, allowUnionTypes: true });
|
|
20
23
|
const anything = td.matchers.anything();
|
|
21
|
-
|
|
22
|
-
// stub and attemptTimeout are used throughout the code so set them here
|
|
23
24
|
let logLevel = 'none';
|
|
24
|
-
const stub = true;
|
|
25
25
|
const isRapidFail = false;
|
|
26
|
-
|
|
26
|
+
|
|
27
|
+
// read in the properties from the sampleProperties files
|
|
28
|
+
let adaptdir = __dirname;
|
|
29
|
+
if (adaptdir.endsWith('/test/integration')) {
|
|
30
|
+
adaptdir = adaptdir.substring(0, adaptdir.length - 17);
|
|
31
|
+
} else if (adaptdir.endsWith('/test/unit')) {
|
|
32
|
+
adaptdir = adaptdir.substring(0, adaptdir.length - 10);
|
|
33
|
+
}
|
|
34
|
+
const samProps = require(`${adaptdir}/sampleProperties.json`).properties;
|
|
27
35
|
|
|
28
36
|
// these variables can be changed to run in integrated mode so easier to set them here
|
|
29
37
|
// always check these in with bogus data!!!
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
38
|
+
samProps.stub = true;
|
|
39
|
+
samProps.host = 'replace.hostorip.here';
|
|
40
|
+
samProps.authentication.username = 'username';
|
|
41
|
+
samProps.authentication.password = 'password';
|
|
42
|
+
samProps.protocol = 'http';
|
|
43
|
+
samProps.port = 80;
|
|
44
|
+
samProps.ssl.enabled = false;
|
|
45
|
+
samProps.ssl.accept_invalid_cert = false;
|
|
46
|
+
samProps.request.attempt_timeout = 1200000;
|
|
47
|
+
const attemptTimeout = samProps.request.attempt_timeout;
|
|
48
|
+
const { stub } = samProps;
|
|
37
49
|
|
|
38
50
|
// these are the adapter properties. You generally should not need to alter
|
|
39
51
|
// any of these after they are initially set up
|
|
@@ -43,104 +55,9 @@ global.pronghornProps = {
|
|
|
43
55
|
},
|
|
44
56
|
adapterProps: {
|
|
45
57
|
adapters: [{
|
|
46
|
-
id: 'Test-
|
|
58
|
+
id: 'Test-oracle_cloud',
|
|
47
59
|
type: 'OracleCloud',
|
|
48
|
-
properties:
|
|
49
|
-
host,
|
|
50
|
-
port,
|
|
51
|
-
base_path: '/',
|
|
52
|
-
version: '',
|
|
53
|
-
cache_location: 'none',
|
|
54
|
-
encode_pathvars: true,
|
|
55
|
-
save_metric: false,
|
|
56
|
-
stub,
|
|
57
|
-
protocol,
|
|
58
|
-
authentication: {
|
|
59
|
-
auth_method: 'request_token',
|
|
60
|
-
username,
|
|
61
|
-
password,
|
|
62
|
-
token: '',
|
|
63
|
-
invalid_token_error: 401,
|
|
64
|
-
token_timeout: 1800000,
|
|
65
|
-
token_cache: 'local',
|
|
66
|
-
auth_field: 'header.headers.X-AUTH-TOKEN',
|
|
67
|
-
auth_field_format: '{token}',
|
|
68
|
-
auth_logging: false,
|
|
69
|
-
client_id: '',
|
|
70
|
-
client_secret: '',
|
|
71
|
-
grant_type: ''
|
|
72
|
-
},
|
|
73
|
-
healthcheck: {
|
|
74
|
-
type: 'none',
|
|
75
|
-
frequency: 60000,
|
|
76
|
-
query_object: {}
|
|
77
|
-
},
|
|
78
|
-
throttle: {
|
|
79
|
-
throttle_enabled: false,
|
|
80
|
-
number_pronghorns: 1,
|
|
81
|
-
sync_async: 'sync',
|
|
82
|
-
max_in_queue: 1000,
|
|
83
|
-
concurrent_max: 1,
|
|
84
|
-
expire_timeout: 0,
|
|
85
|
-
avg_runtime: 200,
|
|
86
|
-
priorities: [
|
|
87
|
-
{
|
|
88
|
-
value: 0,
|
|
89
|
-
percent: 100
|
|
90
|
-
}
|
|
91
|
-
]
|
|
92
|
-
},
|
|
93
|
-
request: {
|
|
94
|
-
number_redirects: 0,
|
|
95
|
-
number_retries: 3,
|
|
96
|
-
limit_retry_error: [0],
|
|
97
|
-
failover_codes: [],
|
|
98
|
-
attempt_timeout: attemptTimeout,
|
|
99
|
-
global_request: {
|
|
100
|
-
payload: {},
|
|
101
|
-
uriOptions: {},
|
|
102
|
-
addlHeaders: {},
|
|
103
|
-
authData: {}
|
|
104
|
-
},
|
|
105
|
-
healthcheck_on_timeout: true,
|
|
106
|
-
return_raw: true,
|
|
107
|
-
archiving: false,
|
|
108
|
-
return_request: false
|
|
109
|
-
},
|
|
110
|
-
proxy: {
|
|
111
|
-
enabled: false,
|
|
112
|
-
host: '',
|
|
113
|
-
port: 1,
|
|
114
|
-
protocol: 'http',
|
|
115
|
-
username: '',
|
|
116
|
-
password: ''
|
|
117
|
-
},
|
|
118
|
-
ssl: {
|
|
119
|
-
ecdhCurve: '',
|
|
120
|
-
enabled: sslenable,
|
|
121
|
-
accept_invalid_cert: sslinvalid,
|
|
122
|
-
ca_file: '',
|
|
123
|
-
key_file: '',
|
|
124
|
-
cert_file: '',
|
|
125
|
-
secure_protocol: '',
|
|
126
|
-
ciphers: ''
|
|
127
|
-
},
|
|
128
|
-
mongo: {
|
|
129
|
-
host: '',
|
|
130
|
-
port: 0,
|
|
131
|
-
database: '',
|
|
132
|
-
username: '',
|
|
133
|
-
password: '',
|
|
134
|
-
replSet: '',
|
|
135
|
-
db_ssl: {
|
|
136
|
-
enabled: false,
|
|
137
|
-
accept_invalid_cert: false,
|
|
138
|
-
ca_file: '',
|
|
139
|
-
key_file: '',
|
|
140
|
-
cert_file: ''
|
|
141
|
-
}
|
|
142
|
-
}
|
|
143
|
-
}
|
|
60
|
+
properties: samProps
|
|
144
61
|
}]
|
|
145
62
|
}
|
|
146
63
|
};
|
|
@@ -271,10 +188,10 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
271
188
|
});
|
|
272
189
|
|
|
273
190
|
let wffunctions = [];
|
|
274
|
-
describe('#
|
|
191
|
+
describe('#iapGetAdapterWorkflowFunctions', () => {
|
|
275
192
|
it('should retrieve workflow functions', (done) => {
|
|
276
193
|
try {
|
|
277
|
-
wffunctions = a.
|
|
194
|
+
wffunctions = a.iapGetAdapterWorkflowFunctions([]);
|
|
278
195
|
|
|
279
196
|
try {
|
|
280
197
|
assert.notEqual(0, wffunctions.length);
|
|
@@ -305,19 +222,24 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
305
222
|
it('package.json should be validated', (done) => {
|
|
306
223
|
try {
|
|
307
224
|
const packageDotJson = require('../../package.json');
|
|
308
|
-
|
|
309
|
-
const
|
|
310
|
-
|
|
311
|
-
|
|
225
|
+
// Define the JSON schema for package.json
|
|
226
|
+
const packageJsonSchema = {
|
|
227
|
+
type: 'object',
|
|
228
|
+
properties: {
|
|
229
|
+
name: { type: 'string' },
|
|
230
|
+
version: { type: 'string' }
|
|
231
|
+
// May need to add more properties as needed
|
|
232
|
+
},
|
|
233
|
+
required: ['name', 'version']
|
|
312
234
|
};
|
|
313
|
-
const
|
|
235
|
+
const validate = ajv.compile(packageJsonSchema);
|
|
236
|
+
const isValid = validate(packageDotJson);
|
|
314
237
|
|
|
315
|
-
if (
|
|
316
|
-
log.error('The package.json contains
|
|
317
|
-
|
|
318
|
-
assert.equal(true, results.valid);
|
|
238
|
+
if (isValid === false) {
|
|
239
|
+
log.error('The package.json contains errors');
|
|
240
|
+
assert.equal(true, isValid);
|
|
319
241
|
} else {
|
|
320
|
-
assert.equal(true,
|
|
242
|
+
assert.equal(true, isValid);
|
|
321
243
|
}
|
|
322
244
|
|
|
323
245
|
done();
|
|
@@ -356,6 +278,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
356
278
|
assert.notEqual(undefined, packageDotJson.scripts);
|
|
357
279
|
assert.notEqual(null, packageDotJson.scripts);
|
|
358
280
|
assert.notEqual('', packageDotJson.scripts);
|
|
281
|
+
assert.equal('node utils/setup.js', packageDotJson.scripts.preinstall);
|
|
359
282
|
assert.equal('node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js', packageDotJson.scripts.lint);
|
|
360
283
|
assert.equal('node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet', packageDotJson.scripts['lint:errors']);
|
|
361
284
|
assert.equal('mocha test/unit/adapterBaseTestUnit.js --LOG=error', packageDotJson.scripts['test:baseunit']);
|
|
@@ -363,6 +286,8 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
363
286
|
assert.equal('mocha test/integration/adapterTestIntegration.js --LOG=error', packageDotJson.scripts['test:integration']);
|
|
364
287
|
assert.equal('nyc --reporter html --reporter text mocha --reporter dot test/*', packageDotJson.scripts['test:cover']);
|
|
365
288
|
assert.equal('npm run test:baseunit && npm run test:unit && npm run test:integration', packageDotJson.scripts.test);
|
|
289
|
+
assert.equal('npm publish --registry=https://registry.npmjs.org --access=public', packageDotJson.scripts.deploy);
|
|
290
|
+
assert.equal('npm run deploy', packageDotJson.scripts.build);
|
|
366
291
|
done();
|
|
367
292
|
} catch (error) {
|
|
368
293
|
log.error(`Test Failure: ${error}`);
|
|
@@ -375,6 +300,9 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
375
300
|
assert.notEqual(undefined, packageDotJson.repository);
|
|
376
301
|
assert.notEqual(null, packageDotJson.repository);
|
|
377
302
|
assert.notEqual('', packageDotJson.repository);
|
|
303
|
+
assert.equal('git', packageDotJson.repository.type);
|
|
304
|
+
assert.equal('git@gitlab.com:itentialopensource/adapters/', packageDotJson.repository.url.substring(0, 43));
|
|
305
|
+
assert.equal('https://gitlab.com/itentialopensource/adapters/', packageDotJson.homepage.substring(0, 47));
|
|
378
306
|
done();
|
|
379
307
|
} catch (error) {
|
|
380
308
|
log.error(`Test Failure: ${error}`);
|
|
@@ -387,17 +315,17 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
387
315
|
assert.notEqual(undefined, packageDotJson.dependencies);
|
|
388
316
|
assert.notEqual(null, packageDotJson.dependencies);
|
|
389
317
|
assert.notEqual('', packageDotJson.dependencies);
|
|
390
|
-
assert.equal('^
|
|
391
|
-
assert.equal('^
|
|
392
|
-
assert.equal('^
|
|
393
|
-
assert.equal('^
|
|
394
|
-
assert.equal('^
|
|
318
|
+
assert.equal('^8.12.0', packageDotJson.dependencies.ajv);
|
|
319
|
+
assert.equal('^1.6.2', packageDotJson.dependencies.axios);
|
|
320
|
+
assert.equal('^11.0.0', packageDotJson.dependencies.commander);
|
|
321
|
+
assert.equal('^11.1.1', packageDotJson.dependencies['fs-extra']);
|
|
322
|
+
assert.equal('^10.2.0', packageDotJson.dependencies.mocha);
|
|
395
323
|
assert.equal('^2.0.1', packageDotJson.dependencies['mocha-param']);
|
|
396
|
-
assert.equal('^0.5.3', packageDotJson.dependencies['network-diagnostics']);
|
|
397
324
|
assert.equal('^15.1.0', packageDotJson.dependencies.nyc);
|
|
325
|
+
assert.equal('^0.4.4', packageDotJson.dependencies.ping);
|
|
398
326
|
assert.equal('^1.4.10', packageDotJson.dependencies['readline-sync']);
|
|
399
|
-
assert.equal('^7.3
|
|
400
|
-
assert.equal('^3.
|
|
327
|
+
assert.equal('^7.5.3', packageDotJson.dependencies.semver);
|
|
328
|
+
assert.equal('^3.9.0', packageDotJson.dependencies.winston);
|
|
401
329
|
done();
|
|
402
330
|
} catch (error) {
|
|
403
331
|
log.error(`Test Failure: ${error}`);
|
|
@@ -410,13 +338,12 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
410
338
|
assert.notEqual(undefined, packageDotJson.devDependencies);
|
|
411
339
|
assert.notEqual(null, packageDotJson.devDependencies);
|
|
412
340
|
assert.notEqual('', packageDotJson.devDependencies);
|
|
413
|
-
assert.equal('^4.3.
|
|
414
|
-
assert.equal('^
|
|
415
|
-
assert.equal('^
|
|
416
|
-
assert.equal('^2.
|
|
417
|
-
assert.equal('^3.
|
|
418
|
-
assert.equal('^
|
|
419
|
-
assert.equal('^3.16.1', packageDotJson.devDependencies.testdouble);
|
|
341
|
+
assert.equal('^4.3.7', packageDotJson.devDependencies.chai);
|
|
342
|
+
assert.equal('^8.44.0', packageDotJson.devDependencies.eslint);
|
|
343
|
+
assert.equal('^15.0.0', packageDotJson.devDependencies['eslint-config-airbnb-base']);
|
|
344
|
+
assert.equal('^2.27.5', packageDotJson.devDependencies['eslint-plugin-import']);
|
|
345
|
+
assert.equal('^3.1.0', packageDotJson.devDependencies['eslint-plugin-json']);
|
|
346
|
+
assert.equal('^3.18.0', packageDotJson.devDependencies.testdouble);
|
|
420
347
|
done();
|
|
421
348
|
} catch (error) {
|
|
422
349
|
log.error(`Test Failure: ${error}`);
|
|
@@ -459,16 +386,31 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
459
386
|
assert.notEqual('', pronghornDotJson.methods);
|
|
460
387
|
assert.equal(true, Array.isArray(pronghornDotJson.methods));
|
|
461
388
|
assert.notEqual(0, pronghornDotJson.methods.length);
|
|
462
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
463
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
464
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
465
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
466
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
467
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
468
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
469
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
470
|
-
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === '
|
|
389
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapUpdateAdapterConfiguration'));
|
|
390
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapSuspendAdapter'));
|
|
391
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapUnsuspendAdapter'));
|
|
392
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapGetAdapterQueue'));
|
|
393
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapFindAdapterPath'));
|
|
394
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapTroubleshootAdapter'));
|
|
395
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapRunAdapterHealthcheck'));
|
|
396
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapRunAdapterConnectivity'));
|
|
397
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapRunAdapterBasicGet'));
|
|
398
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapMoveAdapterEntitiesToDB'));
|
|
399
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapDeactivateTasks'));
|
|
400
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapActivateTasks'));
|
|
401
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapPopulateEntityCache'));
|
|
402
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapRetrieveEntitiesCache'));
|
|
403
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'getDevice'));
|
|
404
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'getDevicesFiltered'));
|
|
405
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'isAlive'));
|
|
406
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'getConfig'));
|
|
407
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapGetDeviceCount'));
|
|
408
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapExpandedGenericAdapterRequest'));
|
|
471
409
|
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'genericAdapterRequest'));
|
|
410
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'genericAdapterRequestNoBasePath'));
|
|
411
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapRunAdapterLint'));
|
|
412
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapRunAdapterTests'));
|
|
413
|
+
assert.notEqual(undefined, pronghornDotJson.methods.find((e) => e.name === 'iapGetAdapterInventory'));
|
|
472
414
|
done();
|
|
473
415
|
} catch (error) {
|
|
474
416
|
log.error(`Test Failure: ${error}`);
|
|
@@ -589,6 +531,39 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
589
531
|
done(error);
|
|
590
532
|
}
|
|
591
533
|
});
|
|
534
|
+
it('pronghorn.json verify input/output schema objects', (done) => {
|
|
535
|
+
const verifySchema = (methodName, schema) => {
|
|
536
|
+
try {
|
|
537
|
+
ajv.compile(schema);
|
|
538
|
+
} catch (error) {
|
|
539
|
+
const errorMessage = `Invalid schema found in '${methodName}' method.
|
|
540
|
+
Schema => ${JSON.stringify(schema)}.
|
|
541
|
+
Details => ${error.message}`;
|
|
542
|
+
throw new Error(errorMessage);
|
|
543
|
+
}
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
try {
|
|
547
|
+
const pronghornDotJson = require('../../pronghorn.json');
|
|
548
|
+
const { methods } = pronghornDotJson;
|
|
549
|
+
for (let i = 0; i < methods.length; i += 1) {
|
|
550
|
+
for (let j = 0; j < methods[i].input.length; j += 1) {
|
|
551
|
+
const inputSchema = methods[i].input[j].schema;
|
|
552
|
+
if (inputSchema) {
|
|
553
|
+
verifySchema(methods[i].name, inputSchema);
|
|
554
|
+
}
|
|
555
|
+
}
|
|
556
|
+
const outputSchema = methods[i].output.schema;
|
|
557
|
+
if (outputSchema) {
|
|
558
|
+
verifySchema(methods[i].name, outputSchema);
|
|
559
|
+
}
|
|
560
|
+
}
|
|
561
|
+
done();
|
|
562
|
+
} catch (error) {
|
|
563
|
+
log.error(`Adapter Exception: ${error}`);
|
|
564
|
+
done(error);
|
|
565
|
+
}
|
|
566
|
+
});
|
|
592
567
|
});
|
|
593
568
|
|
|
594
569
|
describe('propertiesSchema.json', () => {
|
|
@@ -624,6 +599,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
624
599
|
assert.equal('string', propertiesDotJson.properties.host.type);
|
|
625
600
|
assert.equal('integer', propertiesDotJson.properties.port.type);
|
|
626
601
|
assert.equal('boolean', propertiesDotJson.properties.stub.type);
|
|
602
|
+
assert.equal('string', propertiesDotJson.properties.protocol.type);
|
|
627
603
|
assert.notEqual(undefined, propertiesDotJson.definitions.authentication);
|
|
628
604
|
assert.notEqual(null, propertiesDotJson.definitions.authentication);
|
|
629
605
|
assert.notEqual('', propertiesDotJson.definitions.authentication);
|
|
@@ -640,6 +616,8 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
640
616
|
assert.equal('string', propertiesDotJson.definitions.authentication.properties.client_id.type);
|
|
641
617
|
assert.equal('string', propertiesDotJson.definitions.authentication.properties.client_secret.type);
|
|
642
618
|
assert.equal('string', propertiesDotJson.definitions.authentication.properties.grant_type.type);
|
|
619
|
+
assert.notEqual(undefined, propertiesDotJson.definitions.ssl);
|
|
620
|
+
assert.notEqual(null, propertiesDotJson.definitions.ssl);
|
|
643
621
|
assert.notEqual('', propertiesDotJson.definitions.ssl);
|
|
644
622
|
assert.equal('string', propertiesDotJson.definitions.ssl.properties.ecdhCurve.type);
|
|
645
623
|
assert.equal('boolean', propertiesDotJson.definitions.ssl.properties.enabled.type);
|
|
@@ -653,8 +631,8 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
653
631
|
assert.equal('string', propertiesDotJson.properties.version.type);
|
|
654
632
|
assert.equal('string', propertiesDotJson.properties.cache_location.type);
|
|
655
633
|
assert.equal('boolean', propertiesDotJson.properties.encode_pathvars.type);
|
|
634
|
+
assert.equal('boolean', propertiesDotJson.properties.encode_queryvars.type);
|
|
656
635
|
assert.equal(true, Array.isArray(propertiesDotJson.properties.save_metric.type));
|
|
657
|
-
assert.equal('string', propertiesDotJson.properties.protocol.type);
|
|
658
636
|
assert.notEqual(undefined, propertiesDotJson.definitions);
|
|
659
637
|
assert.notEqual(null, propertiesDotJson.definitions);
|
|
660
638
|
assert.notEqual('', propertiesDotJson.definitions);
|
|
@@ -701,8 +679,6 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
701
679
|
assert.equal('string', propertiesDotJson.definitions.proxy.properties.protocol.type);
|
|
702
680
|
assert.equal('string', propertiesDotJson.definitions.proxy.properties.username.type);
|
|
703
681
|
assert.equal('string', propertiesDotJson.definitions.proxy.properties.password.type);
|
|
704
|
-
assert.notEqual(undefined, propertiesDotJson.definitions.ssl);
|
|
705
|
-
assert.notEqual(null, propertiesDotJson.definitions.ssl);
|
|
706
682
|
assert.notEqual(undefined, propertiesDotJson.definitions.mongo);
|
|
707
683
|
assert.notEqual(null, propertiesDotJson.definitions.mongo);
|
|
708
684
|
assert.notEqual('', propertiesDotJson.definitions.mongo);
|
|
@@ -718,6 +694,12 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
718
694
|
assert.equal('string', propertiesDotJson.definitions.mongo.properties.db_ssl.properties.ca_file.type);
|
|
719
695
|
assert.equal('string', propertiesDotJson.definitions.mongo.properties.db_ssl.properties.key_file.type);
|
|
720
696
|
assert.equal('string', propertiesDotJson.definitions.mongo.properties.db_ssl.properties.cert_file.type);
|
|
697
|
+
assert.notEqual('', propertiesDotJson.definitions.devicebroker);
|
|
698
|
+
assert.equal('array', propertiesDotJson.definitions.devicebroker.properties.getDevice.type);
|
|
699
|
+
assert.equal('array', propertiesDotJson.definitions.devicebroker.properties.getDevicesFiltered.type);
|
|
700
|
+
assert.equal('array', propertiesDotJson.definitions.devicebroker.properties.isAlive.type);
|
|
701
|
+
assert.equal('array', propertiesDotJson.definitions.devicebroker.properties.getConfig.type);
|
|
702
|
+
assert.equal('array', propertiesDotJson.definitions.devicebroker.properties.getCount.type);
|
|
721
703
|
done();
|
|
722
704
|
} catch (error) {
|
|
723
705
|
log.error(`Test Failure: ${error}`);
|
|
@@ -807,6 +789,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
807
789
|
assert.notEqual(undefined, sampleDotJson.properties.host);
|
|
808
790
|
assert.notEqual(undefined, sampleDotJson.properties.port);
|
|
809
791
|
assert.notEqual(undefined, sampleDotJson.properties.stub);
|
|
792
|
+
assert.notEqual(undefined, sampleDotJson.properties.protocol);
|
|
810
793
|
assert.notEqual(undefined, sampleDotJson.properties.authentication);
|
|
811
794
|
assert.notEqual(null, sampleDotJson.properties.authentication);
|
|
812
795
|
assert.notEqual('', sampleDotJson.properties.authentication);
|
|
@@ -834,17 +817,12 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
834
817
|
assert.notEqual(undefined, sampleDotJson.properties.ssl.cert_file);
|
|
835
818
|
assert.notEqual(undefined, sampleDotJson.properties.ssl.secure_protocol);
|
|
836
819
|
assert.notEqual(undefined, sampleDotJson.properties.ssl.ciphers);
|
|
837
|
-
|
|
838
820
|
assert.notEqual(undefined, sampleDotJson.properties.base_path);
|
|
839
821
|
assert.notEqual(undefined, sampleDotJson.properties.version);
|
|
840
822
|
assert.notEqual(undefined, sampleDotJson.properties.cache_location);
|
|
841
823
|
assert.notEqual(undefined, sampleDotJson.properties.encode_pathvars);
|
|
824
|
+
assert.notEqual(undefined, sampleDotJson.properties.encode_queryvars);
|
|
842
825
|
assert.notEqual(undefined, sampleDotJson.properties.save_metric);
|
|
843
|
-
assert.notEqual(undefined, sampleDotJson.properties.protocol);
|
|
844
|
-
assert.notEqual(undefined, sampleDotJson.properties.stub);
|
|
845
|
-
assert.notEqual(undefined, sampleDotJson.properties.stub);
|
|
846
|
-
assert.notEqual(undefined, sampleDotJson.properties.stub);
|
|
847
|
-
assert.notEqual(undefined, sampleDotJson.properties.stub);
|
|
848
826
|
assert.notEqual(undefined, sampleDotJson.properties.healthcheck);
|
|
849
827
|
assert.notEqual(null, sampleDotJson.properties.healthcheck);
|
|
850
828
|
assert.notEqual('', sampleDotJson.properties.healthcheck);
|
|
@@ -903,6 +881,14 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
903
881
|
assert.notEqual(undefined, sampleDotJson.properties.mongo.db_ssl.ca_file);
|
|
904
882
|
assert.notEqual(undefined, sampleDotJson.properties.mongo.db_ssl.key_file);
|
|
905
883
|
assert.notEqual(undefined, sampleDotJson.properties.mongo.db_ssl.cert_file);
|
|
884
|
+
assert.notEqual(undefined, sampleDotJson.properties.devicebroker);
|
|
885
|
+
assert.notEqual(undefined, sampleDotJson.properties.devicebroker.getDevice);
|
|
886
|
+
assert.notEqual(undefined, sampleDotJson.properties.devicebroker.getDevicesFiltered);
|
|
887
|
+
assert.notEqual(undefined, sampleDotJson.properties.devicebroker.isAlive);
|
|
888
|
+
assert.notEqual(undefined, sampleDotJson.properties.devicebroker.getConfig);
|
|
889
|
+
assert.notEqual(undefined, sampleDotJson.properties.devicebroker.getCount);
|
|
890
|
+
assert.notEqual(undefined, sampleDotJson.properties.cache);
|
|
891
|
+
assert.notEqual(undefined, sampleDotJson.properties.cache.entities);
|
|
906
892
|
done();
|
|
907
893
|
} catch (error) {
|
|
908
894
|
log.error(`Test Failure: ${error}`);
|
|
@@ -996,10 +982,10 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
996
982
|
});
|
|
997
983
|
});
|
|
998
984
|
|
|
999
|
-
describe('#
|
|
1000
|
-
it('should have a
|
|
985
|
+
describe('#iapUpdateAdapterConfiguration', () => {
|
|
986
|
+
it('should have a iapUpdateAdapterConfiguration function', (done) => {
|
|
1001
987
|
try {
|
|
1002
|
-
assert.equal(true, typeof a.
|
|
988
|
+
assert.equal(true, typeof a.iapUpdateAdapterConfiguration === 'function');
|
|
1003
989
|
done();
|
|
1004
990
|
} catch (error) {
|
|
1005
991
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1008,44 +994,34 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1008
994
|
});
|
|
1009
995
|
});
|
|
1010
996
|
|
|
1011
|
-
describe('#
|
|
1012
|
-
it('should have a
|
|
997
|
+
describe('#iapSuspendAdapter', () => {
|
|
998
|
+
it('should have a iapSuspendAdapter function', (done) => {
|
|
1013
999
|
try {
|
|
1014
|
-
assert.equal(true, typeof a.
|
|
1000
|
+
assert.equal(true, typeof a.iapSuspendAdapter === 'function');
|
|
1015
1001
|
done();
|
|
1016
1002
|
} catch (error) {
|
|
1017
1003
|
log.error(`Test Failure: ${error}`);
|
|
1018
1004
|
done(error);
|
|
1019
1005
|
}
|
|
1020
1006
|
});
|
|
1021
|
-
|
|
1007
|
+
});
|
|
1008
|
+
|
|
1009
|
+
describe('#iapUnsuspendAdapter', () => {
|
|
1010
|
+
it('should have a iapUnsuspendAdapter function', (done) => {
|
|
1022
1011
|
try {
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
assert.equal(undefined, error);
|
|
1026
|
-
assert.notEqual(undefined, data);
|
|
1027
|
-
assert.notEqual(null, data);
|
|
1028
|
-
assert.equal(true, data.found);
|
|
1029
|
-
assert.notEqual(undefined, data.foundIn);
|
|
1030
|
-
assert.notEqual(null, data.foundIn);
|
|
1031
|
-
assert.notEqual(0, data.foundIn.length);
|
|
1032
|
-
done();
|
|
1033
|
-
} catch (err) {
|
|
1034
|
-
log.error(`Test Failure: ${err}`);
|
|
1035
|
-
done(err);
|
|
1036
|
-
}
|
|
1037
|
-
});
|
|
1012
|
+
assert.equal(true, typeof a.iapUnsuspendAdapter === 'function');
|
|
1013
|
+
done();
|
|
1038
1014
|
} catch (error) {
|
|
1039
|
-
log.error(`
|
|
1015
|
+
log.error(`Test Failure: ${error}`);
|
|
1040
1016
|
done(error);
|
|
1041
1017
|
}
|
|
1042
|
-
})
|
|
1018
|
+
});
|
|
1043
1019
|
});
|
|
1044
1020
|
|
|
1045
|
-
describe('#
|
|
1046
|
-
it('should have a
|
|
1021
|
+
describe('#iapGetAdapterQueue', () => {
|
|
1022
|
+
it('should have a iapGetAdapterQueue function', (done) => {
|
|
1047
1023
|
try {
|
|
1048
|
-
assert.equal(true, typeof a.
|
|
1024
|
+
assert.equal(true, typeof a.iapGetAdapterQueue === 'function');
|
|
1049
1025
|
done();
|
|
1050
1026
|
} catch (error) {
|
|
1051
1027
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1054,22 +1030,44 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1054
1030
|
});
|
|
1055
1031
|
});
|
|
1056
1032
|
|
|
1057
|
-
describe('#
|
|
1058
|
-
it('should have a
|
|
1033
|
+
describe('#iapFindAdapterPath', () => {
|
|
1034
|
+
it('should have a iapFindAdapterPath function', (done) => {
|
|
1059
1035
|
try {
|
|
1060
|
-
assert.equal(true, typeof a.
|
|
1036
|
+
assert.equal(true, typeof a.iapFindAdapterPath === 'function');
|
|
1061
1037
|
done();
|
|
1062
1038
|
} catch (error) {
|
|
1063
1039
|
log.error(`Test Failure: ${error}`);
|
|
1064
1040
|
done(error);
|
|
1065
1041
|
}
|
|
1066
1042
|
});
|
|
1043
|
+
it('iapFindAdapterPath should find atleast one path that matches', (done) => {
|
|
1044
|
+
try {
|
|
1045
|
+
a.iapFindAdapterPath('{base_path}/{version}', (data, error) => {
|
|
1046
|
+
try {
|
|
1047
|
+
assert.equal(undefined, error);
|
|
1048
|
+
assert.notEqual(undefined, data);
|
|
1049
|
+
assert.notEqual(null, data);
|
|
1050
|
+
assert.equal(true, data.found);
|
|
1051
|
+
assert.notEqual(undefined, data.foundIn);
|
|
1052
|
+
assert.notEqual(null, data.foundIn);
|
|
1053
|
+
assert.notEqual(0, data.foundIn.length);
|
|
1054
|
+
done();
|
|
1055
|
+
} catch (err) {
|
|
1056
|
+
log.error(`Test Failure: ${err}`);
|
|
1057
|
+
done(err);
|
|
1058
|
+
}
|
|
1059
|
+
});
|
|
1060
|
+
} catch (error) {
|
|
1061
|
+
log.error(`Adapter Exception: ${error}`);
|
|
1062
|
+
done(error);
|
|
1063
|
+
}
|
|
1064
|
+
}).timeout(attemptTimeout);
|
|
1067
1065
|
});
|
|
1068
1066
|
|
|
1069
|
-
describe('#
|
|
1070
|
-
it('should have a
|
|
1067
|
+
describe('#iapTroubleshootAdapter', () => {
|
|
1068
|
+
it('should have a iapTroubleshootAdapter function', (done) => {
|
|
1071
1069
|
try {
|
|
1072
|
-
assert.equal(true, typeof a.
|
|
1070
|
+
assert.equal(true, typeof a.iapTroubleshootAdapter === 'function');
|
|
1073
1071
|
done();
|
|
1074
1072
|
} catch (error) {
|
|
1075
1073
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1078,10 +1076,10 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1078
1076
|
});
|
|
1079
1077
|
});
|
|
1080
1078
|
|
|
1081
|
-
describe('#
|
|
1082
|
-
it('should have a
|
|
1079
|
+
describe('#iapRunAdapterHealthcheck', () => {
|
|
1080
|
+
it('should have a iapRunAdapterHealthcheck function', (done) => {
|
|
1083
1081
|
try {
|
|
1084
|
-
assert.equal(true, typeof a.
|
|
1082
|
+
assert.equal(true, typeof a.iapRunAdapterHealthcheck === 'function');
|
|
1085
1083
|
done();
|
|
1086
1084
|
} catch (error) {
|
|
1087
1085
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1090,10 +1088,10 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1090
1088
|
});
|
|
1091
1089
|
});
|
|
1092
1090
|
|
|
1093
|
-
describe('#
|
|
1094
|
-
it('should have a
|
|
1091
|
+
describe('#iapRunAdapterConnectivity', () => {
|
|
1092
|
+
it('should have a iapRunAdapterConnectivity function', (done) => {
|
|
1095
1093
|
try {
|
|
1096
|
-
assert.equal(true, typeof a.
|
|
1094
|
+
assert.equal(true, typeof a.iapRunAdapterConnectivity === 'function');
|
|
1097
1095
|
done();
|
|
1098
1096
|
} catch (error) {
|
|
1099
1097
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1102,10 +1100,10 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1102
1100
|
});
|
|
1103
1101
|
});
|
|
1104
1102
|
|
|
1105
|
-
describe('#
|
|
1106
|
-
it('should have a
|
|
1103
|
+
describe('#iapRunAdapterBasicGet', () => {
|
|
1104
|
+
it('should have a iapRunAdapterBasicGet function', (done) => {
|
|
1107
1105
|
try {
|
|
1108
|
-
assert.equal(true, typeof a.
|
|
1106
|
+
assert.equal(true, typeof a.iapRunAdapterBasicGet === 'function');
|
|
1109
1107
|
done();
|
|
1110
1108
|
} catch (error) {
|
|
1111
1109
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1114,10 +1112,10 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1114
1112
|
});
|
|
1115
1113
|
});
|
|
1116
1114
|
|
|
1117
|
-
describe('#
|
|
1118
|
-
it('should have a
|
|
1115
|
+
describe('#iapMoveAdapterEntitiesToDB', () => {
|
|
1116
|
+
it('should have a iapMoveAdapterEntitiesToDB function', (done) => {
|
|
1119
1117
|
try {
|
|
1120
|
-
assert.equal(true, typeof a.
|
|
1118
|
+
assert.equal(true, typeof a.iapMoveAdapterEntitiesToDB === 'function');
|
|
1121
1119
|
done();
|
|
1122
1120
|
} catch (error) {
|
|
1123
1121
|
log.error(`Test Failure: ${error}`);
|
|
@@ -1211,50 +1209,293 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1211
1209
|
}).timeout(attemptTimeout);
|
|
1212
1210
|
});
|
|
1213
1211
|
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
// }
|
|
1250
|
-
// });
|
|
1251
|
-
// } catch (error) {
|
|
1252
|
-
// log.error(`Adapter Exception: ${error}`);
|
|
1253
|
-
// done(error);
|
|
1254
|
-
// }
|
|
1255
|
-
// }).timeout(attemptTimeout);
|
|
1256
|
-
// });
|
|
1212
|
+
describe('#iapDeactivateTasks', () => {
|
|
1213
|
+
it('should have a iapDeactivateTasks function', (done) => {
|
|
1214
|
+
try {
|
|
1215
|
+
assert.equal(true, typeof a.iapDeactivateTasks === 'function');
|
|
1216
|
+
done();
|
|
1217
|
+
} catch (error) {
|
|
1218
|
+
log.error(`Test Failure: ${error}`);
|
|
1219
|
+
done(error);
|
|
1220
|
+
}
|
|
1221
|
+
});
|
|
1222
|
+
});
|
|
1223
|
+
|
|
1224
|
+
describe('#iapActivateTasks', () => {
|
|
1225
|
+
it('should have a iapActivateTasks function', (done) => {
|
|
1226
|
+
try {
|
|
1227
|
+
assert.equal(true, typeof a.iapActivateTasks === 'function');
|
|
1228
|
+
done();
|
|
1229
|
+
} catch (error) {
|
|
1230
|
+
log.error(`Test Failure: ${error}`);
|
|
1231
|
+
done(error);
|
|
1232
|
+
}
|
|
1233
|
+
});
|
|
1234
|
+
});
|
|
1235
|
+
|
|
1236
|
+
describe('#iapPopulateEntityCache', () => {
|
|
1237
|
+
it('should have a iapPopulateEntityCache function', (done) => {
|
|
1238
|
+
try {
|
|
1239
|
+
assert.equal(true, typeof a.iapPopulateEntityCache === 'function');
|
|
1240
|
+
done();
|
|
1241
|
+
} catch (error) {
|
|
1242
|
+
log.error(`Test Failure: ${error}`);
|
|
1243
|
+
done(error);
|
|
1244
|
+
}
|
|
1245
|
+
});
|
|
1246
|
+
});
|
|
1257
1247
|
|
|
1248
|
+
describe('#iapRetrieveEntitiesCache', () => {
|
|
1249
|
+
it('should have a iapRetrieveEntitiesCache function', (done) => {
|
|
1250
|
+
try {
|
|
1251
|
+
assert.equal(true, typeof a.iapRetrieveEntitiesCache === 'function');
|
|
1252
|
+
done();
|
|
1253
|
+
} catch (error) {
|
|
1254
|
+
log.error(`Test Failure: ${error}`);
|
|
1255
|
+
done(error);
|
|
1256
|
+
}
|
|
1257
|
+
});
|
|
1258
|
+
});
|
|
1259
|
+
|
|
1260
|
+
describe('#hasEntities', () => {
|
|
1261
|
+
it('should have a hasEntities function', (done) => {
|
|
1262
|
+
try {
|
|
1263
|
+
assert.equal(true, typeof a.hasEntities === 'function');
|
|
1264
|
+
done();
|
|
1265
|
+
} catch (error) {
|
|
1266
|
+
log.error(`Test Failure: ${error}`);
|
|
1267
|
+
done(error);
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
});
|
|
1271
|
+
|
|
1272
|
+
describe('#getDevice', () => {
|
|
1273
|
+
it('should have a getDevice function', (done) => {
|
|
1274
|
+
try {
|
|
1275
|
+
assert.equal(true, typeof a.getDevice === 'function');
|
|
1276
|
+
done();
|
|
1277
|
+
} catch (error) {
|
|
1278
|
+
log.error(`Test Failure: ${error}`);
|
|
1279
|
+
done(error);
|
|
1280
|
+
}
|
|
1281
|
+
});
|
|
1282
|
+
});
|
|
1283
|
+
|
|
1284
|
+
describe('#getDevicesFiltered', () => {
|
|
1285
|
+
it('should have a getDevicesFiltered function', (done) => {
|
|
1286
|
+
try {
|
|
1287
|
+
assert.equal(true, typeof a.getDevicesFiltered === 'function');
|
|
1288
|
+
done();
|
|
1289
|
+
} catch (error) {
|
|
1290
|
+
log.error(`Test Failure: ${error}`);
|
|
1291
|
+
done(error);
|
|
1292
|
+
}
|
|
1293
|
+
});
|
|
1294
|
+
});
|
|
1295
|
+
|
|
1296
|
+
describe('#isAlive', () => {
|
|
1297
|
+
it('should have a isAlive function', (done) => {
|
|
1298
|
+
try {
|
|
1299
|
+
assert.equal(true, typeof a.isAlive === 'function');
|
|
1300
|
+
done();
|
|
1301
|
+
} catch (error) {
|
|
1302
|
+
log.error(`Test Failure: ${error}`);
|
|
1303
|
+
done(error);
|
|
1304
|
+
}
|
|
1305
|
+
});
|
|
1306
|
+
});
|
|
1307
|
+
|
|
1308
|
+
describe('#getConfig', () => {
|
|
1309
|
+
it('should have a getConfig function', (done) => {
|
|
1310
|
+
try {
|
|
1311
|
+
assert.equal(true, typeof a.getConfig === 'function');
|
|
1312
|
+
done();
|
|
1313
|
+
} catch (error) {
|
|
1314
|
+
log.error(`Test Failure: ${error}`);
|
|
1315
|
+
done(error);
|
|
1316
|
+
}
|
|
1317
|
+
});
|
|
1318
|
+
});
|
|
1319
|
+
|
|
1320
|
+
describe('#iapGetDeviceCount', () => {
|
|
1321
|
+
it('should have a iapGetDeviceCount function', (done) => {
|
|
1322
|
+
try {
|
|
1323
|
+
assert.equal(true, typeof a.iapGetDeviceCount === 'function');
|
|
1324
|
+
done();
|
|
1325
|
+
} catch (error) {
|
|
1326
|
+
log.error(`Test Failure: ${error}`);
|
|
1327
|
+
done(error);
|
|
1328
|
+
}
|
|
1329
|
+
});
|
|
1330
|
+
});
|
|
1331
|
+
|
|
1332
|
+
describe('#iapExpandedGenericAdapterRequest', () => {
|
|
1333
|
+
it('should have a iapExpandedGenericAdapterRequest function', (done) => {
|
|
1334
|
+
try {
|
|
1335
|
+
assert.equal(true, typeof a.iapExpandedGenericAdapterRequest === 'function');
|
|
1336
|
+
done();
|
|
1337
|
+
} catch (error) {
|
|
1338
|
+
log.error(`Test Failure: ${error}`);
|
|
1339
|
+
done(error);
|
|
1340
|
+
}
|
|
1341
|
+
});
|
|
1342
|
+
});
|
|
1343
|
+
|
|
1344
|
+
describe('#genericAdapterRequest', () => {
|
|
1345
|
+
it('should have a genericAdapterRequest function', (done) => {
|
|
1346
|
+
try {
|
|
1347
|
+
assert.equal(true, typeof a.genericAdapterRequest === 'function');
|
|
1348
|
+
done();
|
|
1349
|
+
} catch (error) {
|
|
1350
|
+
log.error(`Test Failure: ${error}`);
|
|
1351
|
+
done(error);
|
|
1352
|
+
}
|
|
1353
|
+
});
|
|
1354
|
+
});
|
|
1355
|
+
|
|
1356
|
+
describe('#genericAdapterRequestNoBasePath', () => {
|
|
1357
|
+
it('should have a genericAdapterRequestNoBasePath function', (done) => {
|
|
1358
|
+
try {
|
|
1359
|
+
assert.equal(true, typeof a.genericAdapterRequestNoBasePath === 'function');
|
|
1360
|
+
done();
|
|
1361
|
+
} catch (error) {
|
|
1362
|
+
log.error(`Test Failure: ${error}`);
|
|
1363
|
+
done(error);
|
|
1364
|
+
}
|
|
1365
|
+
});
|
|
1366
|
+
});
|
|
1367
|
+
|
|
1368
|
+
describe('#iapRunAdapterLint', () => {
|
|
1369
|
+
it('should have a iapRunAdapterLint function', (done) => {
|
|
1370
|
+
try {
|
|
1371
|
+
assert.equal(true, typeof a.iapRunAdapterLint === 'function');
|
|
1372
|
+
done();
|
|
1373
|
+
} catch (error) {
|
|
1374
|
+
log.error(`Test Failure: ${error}`);
|
|
1375
|
+
done(error);
|
|
1376
|
+
}
|
|
1377
|
+
});
|
|
1378
|
+
it('retrieve the lint results', (done) => {
|
|
1379
|
+
try {
|
|
1380
|
+
a.iapRunAdapterLint((data, error) => {
|
|
1381
|
+
try {
|
|
1382
|
+
assert.equal(undefined, error);
|
|
1383
|
+
assert.notEqual(undefined, data);
|
|
1384
|
+
assert.notEqual(null, data);
|
|
1385
|
+
assert.notEqual(undefined, data.status);
|
|
1386
|
+
assert.notEqual(null, data.status);
|
|
1387
|
+
assert.equal('SUCCESS', data.status);
|
|
1388
|
+
done();
|
|
1389
|
+
} catch (err) {
|
|
1390
|
+
log.error(`Test Failure: ${err}`);
|
|
1391
|
+
done(err);
|
|
1392
|
+
}
|
|
1393
|
+
});
|
|
1394
|
+
} catch (error) {
|
|
1395
|
+
log.error(`Adapter Exception: ${error}`);
|
|
1396
|
+
done(error);
|
|
1397
|
+
}
|
|
1398
|
+
}).timeout(attemptTimeout);
|
|
1399
|
+
});
|
|
1400
|
+
|
|
1401
|
+
describe('#iapRunAdapterTests', () => {
|
|
1402
|
+
it('should have a iapRunAdapterTests function', (done) => {
|
|
1403
|
+
try {
|
|
1404
|
+
assert.equal(true, typeof a.iapRunAdapterTests === 'function');
|
|
1405
|
+
done();
|
|
1406
|
+
} catch (error) {
|
|
1407
|
+
log.error(`Test Failure: ${error}`);
|
|
1408
|
+
done(error);
|
|
1409
|
+
}
|
|
1410
|
+
});
|
|
1411
|
+
});
|
|
1412
|
+
|
|
1413
|
+
describe('#iapGetAdapterInventory', () => {
|
|
1414
|
+
it('should have a iapGetAdapterInventory function', (done) => {
|
|
1415
|
+
try {
|
|
1416
|
+
assert.equal(true, typeof a.iapGetAdapterInventory === 'function');
|
|
1417
|
+
done();
|
|
1418
|
+
} catch (error) {
|
|
1419
|
+
log.error(`Test Failure: ${error}`);
|
|
1420
|
+
done(error);
|
|
1421
|
+
}
|
|
1422
|
+
});
|
|
1423
|
+
it('retrieve the inventory', (done) => {
|
|
1424
|
+
try {
|
|
1425
|
+
a.iapGetAdapterInventory((data, error) => {
|
|
1426
|
+
try {
|
|
1427
|
+
assert.equal(undefined, error);
|
|
1428
|
+
assert.notEqual(undefined, data);
|
|
1429
|
+
assert.notEqual(null, data);
|
|
1430
|
+
done();
|
|
1431
|
+
} catch (err) {
|
|
1432
|
+
log.error(`Test Failure: ${err}`);
|
|
1433
|
+
done(err);
|
|
1434
|
+
}
|
|
1435
|
+
});
|
|
1436
|
+
} catch (error) {
|
|
1437
|
+
log.error(`Adapter Exception: ${error}`);
|
|
1438
|
+
done(error);
|
|
1439
|
+
}
|
|
1440
|
+
}).timeout(attemptTimeout);
|
|
1441
|
+
});
|
|
1442
|
+
describe('metadata.json', () => {
|
|
1443
|
+
it('should have a metadata.json', (done) => {
|
|
1444
|
+
try {
|
|
1445
|
+
fs.exists('metadata.json', (val) => {
|
|
1446
|
+
assert.equal(true, val);
|
|
1447
|
+
done();
|
|
1448
|
+
});
|
|
1449
|
+
} catch (error) {
|
|
1450
|
+
log.error(`Test Failure: ${error}`);
|
|
1451
|
+
done(error);
|
|
1452
|
+
}
|
|
1453
|
+
});
|
|
1454
|
+
it('metadata.json is customized', (done) => {
|
|
1455
|
+
try {
|
|
1456
|
+
const metadataDotJson = require('../../metadata.json');
|
|
1457
|
+
assert.equal('adapter-oracle_cloud', metadataDotJson.name);
|
|
1458
|
+
assert.notEqual(undefined, metadataDotJson.webName);
|
|
1459
|
+
assert.notEqual(null, metadataDotJson.webName);
|
|
1460
|
+
assert.notEqual('', metadataDotJson.webName);
|
|
1461
|
+
assert.equal('Adapter', metadataDotJson.type);
|
|
1462
|
+
done();
|
|
1463
|
+
} catch (error) {
|
|
1464
|
+
log.error(`Test Failure: ${error}`);
|
|
1465
|
+
done(error);
|
|
1466
|
+
}
|
|
1467
|
+
});
|
|
1468
|
+
it('metadata.json contains accurate documentation', (done) => {
|
|
1469
|
+
try {
|
|
1470
|
+
const metadataDotJson = require('../../metadata.json');
|
|
1471
|
+
assert.notEqual(undefined, metadataDotJson.documentation);
|
|
1472
|
+
assert.equal('https://www.npmjs.com/package/@itentialopensource/adapter-oracle_cloud', metadataDotJson.documentation.npmLink);
|
|
1473
|
+
assert.equal('https://docs.itential.com/opensource/docs/troubleshooting-an-adapter', metadataDotJson.documentation.faqLink);
|
|
1474
|
+
assert.equal('https://gitlab.com/itentialopensource/adapters/contributing-guide', metadataDotJson.documentation.contributeLink);
|
|
1475
|
+
assert.equal('https://itential.atlassian.net/servicedesk/customer/portals', metadataDotJson.documentation.issueLink);
|
|
1476
|
+
done();
|
|
1477
|
+
} catch (error) {
|
|
1478
|
+
log.error(`Test Failure: ${error}`);
|
|
1479
|
+
done(error);
|
|
1480
|
+
}
|
|
1481
|
+
});
|
|
1482
|
+
it('metadata.json has related items', (done) => {
|
|
1483
|
+
try {
|
|
1484
|
+
const metadataDotJson = require('../../metadata.json');
|
|
1485
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems);
|
|
1486
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems.adapters);
|
|
1487
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems.integrations);
|
|
1488
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems.ecosystemApplications);
|
|
1489
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems.workflowProjects);
|
|
1490
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems.transformationProjects);
|
|
1491
|
+
assert.notEqual(undefined, metadataDotJson.relatedItems.exampleProjects);
|
|
1492
|
+
done();
|
|
1493
|
+
} catch (error) {
|
|
1494
|
+
log.error(`Test Failure: ${error}`);
|
|
1495
|
+
done(error);
|
|
1496
|
+
}
|
|
1497
|
+
});
|
|
1498
|
+
});
|
|
1258
1499
|
/*
|
|
1259
1500
|
-----------------------------------------------------------------------
|
|
1260
1501
|
-----------------------------------------------------------------------
|
|
@@ -1279,7 +1520,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1279
1520
|
a.postDocumentsApi12SharesFolderId(null, null, (data, error) => {
|
|
1280
1521
|
try {
|
|
1281
1522
|
const displayE = 'folderId is required';
|
|
1282
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1523
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12SharesFolderId', displayE);
|
|
1283
1524
|
done();
|
|
1284
1525
|
} catch (err) {
|
|
1285
1526
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1296,7 +1537,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1296
1537
|
a.postDocumentsApi12SharesFolderId('fakeparam', null, (data, error) => {
|
|
1297
1538
|
try {
|
|
1298
1539
|
const displayE = 'payload is required';
|
|
1299
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1540
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12SharesFolderId', displayE);
|
|
1300
1541
|
done();
|
|
1301
1542
|
} catch (err) {
|
|
1302
1543
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1325,7 +1566,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1325
1566
|
a.deleteDocumentsApi12SharesFolderId(null, null, (data, error) => {
|
|
1326
1567
|
try {
|
|
1327
1568
|
const displayE = 'folderId is required';
|
|
1328
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1569
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12SharesFolderId', displayE);
|
|
1329
1570
|
done();
|
|
1330
1571
|
} catch (err) {
|
|
1331
1572
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1342,7 +1583,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1342
1583
|
a.deleteDocumentsApi12SharesFolderId('fakeparam', null, (data, error) => {
|
|
1343
1584
|
try {
|
|
1344
1585
|
const displayE = 'payload is required';
|
|
1345
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1586
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12SharesFolderId', displayE);
|
|
1346
1587
|
done();
|
|
1347
1588
|
} catch (err) {
|
|
1348
1589
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1371,7 +1612,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1371
1612
|
a.getDocumentsApi12SharesFolderIdItems(null, null, (data, error) => {
|
|
1372
1613
|
try {
|
|
1373
1614
|
const displayE = 'folderId is required';
|
|
1374
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1615
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12SharesFolderIdItems', displayE);
|
|
1375
1616
|
done();
|
|
1376
1617
|
} catch (err) {
|
|
1377
1618
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1388,7 +1629,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1388
1629
|
a.getDocumentsApi12SharesFolderIdItems('fakeparam', null, (data, error) => {
|
|
1389
1630
|
try {
|
|
1390
1631
|
const displayE = 'payload is required';
|
|
1391
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1632
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12SharesFolderIdItems', displayE);
|
|
1392
1633
|
done();
|
|
1393
1634
|
} catch (err) {
|
|
1394
1635
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1417,7 +1658,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1417
1658
|
a.putDocumentsApi12SharesFolderIdRole(null, null, (data, error) => {
|
|
1418
1659
|
try {
|
|
1419
1660
|
const displayE = 'folderId is required';
|
|
1420
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1661
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12SharesFolderIdRole', displayE);
|
|
1421
1662
|
done();
|
|
1422
1663
|
} catch (err) {
|
|
1423
1664
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1434,7 +1675,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1434
1675
|
a.putDocumentsApi12SharesFolderIdRole('fakeparam', null, (data, error) => {
|
|
1435
1676
|
try {
|
|
1436
1677
|
const displayE = 'payload is required';
|
|
1437
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1678
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12SharesFolderIdRole', displayE);
|
|
1438
1679
|
done();
|
|
1439
1680
|
} catch (err) {
|
|
1440
1681
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1463,7 +1704,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1463
1704
|
a.deleteDocumentsApi12SharesFolderIdUser(null, null, (data, error) => {
|
|
1464
1705
|
try {
|
|
1465
1706
|
const displayE = 'folderId is required';
|
|
1466
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1707
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12SharesFolderIdUser', displayE);
|
|
1467
1708
|
done();
|
|
1468
1709
|
} catch (err) {
|
|
1469
1710
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1480,7 +1721,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1480
1721
|
a.deleteDocumentsApi12SharesFolderIdUser('fakeparam', null, (data, error) => {
|
|
1481
1722
|
try {
|
|
1482
1723
|
const displayE = 'payload is required';
|
|
1483
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1724
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12SharesFolderIdUser', displayE);
|
|
1484
1725
|
done();
|
|
1485
1726
|
} catch (err) {
|
|
1486
1727
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1509,7 +1750,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1509
1750
|
a.deleteDocumentsApi12SharesFolderIdMyuser(null, (data, error) => {
|
|
1510
1751
|
try {
|
|
1511
1752
|
const displayE = 'folderId is required';
|
|
1512
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1753
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12SharesFolderIdMyuser', displayE);
|
|
1513
1754
|
done();
|
|
1514
1755
|
} catch (err) {
|
|
1515
1756
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1538,7 +1779,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1538
1779
|
a.postDocumentsApi12MetadataCollectionName(null, null, (data, error) => {
|
|
1539
1780
|
try {
|
|
1540
1781
|
const displayE = 'collectionName is required';
|
|
1541
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1782
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12MetadataCollectionName', displayE);
|
|
1542
1783
|
done();
|
|
1543
1784
|
} catch (err) {
|
|
1544
1785
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1555,7 +1796,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1555
1796
|
a.postDocumentsApi12MetadataCollectionName('fakeparam', null, (data, error) => {
|
|
1556
1797
|
try {
|
|
1557
1798
|
const displayE = 'payload is required';
|
|
1558
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1799
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12MetadataCollectionName', displayE);
|
|
1559
1800
|
done();
|
|
1560
1801
|
} catch (err) {
|
|
1561
1802
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1584,7 +1825,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1584
1825
|
a.putDocumentsApi12MetadataCollectionName(null, null, (data, error) => {
|
|
1585
1826
|
try {
|
|
1586
1827
|
const displayE = 'collectionName is required';
|
|
1587
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1828
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12MetadataCollectionName', displayE);
|
|
1588
1829
|
done();
|
|
1589
1830
|
} catch (err) {
|
|
1590
1831
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1601,7 +1842,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1601
1842
|
a.putDocumentsApi12MetadataCollectionName('fakeparam', null, (data, error) => {
|
|
1602
1843
|
try {
|
|
1603
1844
|
const displayE = 'payload is required';
|
|
1604
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1845
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12MetadataCollectionName', displayE);
|
|
1605
1846
|
done();
|
|
1606
1847
|
} catch (err) {
|
|
1607
1848
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1630,7 +1871,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1630
1871
|
a.getDocumentsApi12MetadataCollectionName(null, (data, error) => {
|
|
1631
1872
|
try {
|
|
1632
1873
|
const displayE = 'collectionName is required';
|
|
1633
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1874
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12MetadataCollectionName', displayE);
|
|
1634
1875
|
done();
|
|
1635
1876
|
} catch (err) {
|
|
1636
1877
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1659,7 +1900,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1659
1900
|
a.deleteDocumentsApi12MetadataCollectionName(null, (data, error) => {
|
|
1660
1901
|
try {
|
|
1661
1902
|
const displayE = 'collectionName is required';
|
|
1662
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1903
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12MetadataCollectionName', displayE);
|
|
1663
1904
|
done();
|
|
1664
1905
|
} catch (err) {
|
|
1665
1906
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1688,7 +1929,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1688
1929
|
a.putDocumentsApi12MetadataCollectionNameField(null, null, (data, error) => {
|
|
1689
1930
|
try {
|
|
1690
1931
|
const displayE = 'collectionName is required';
|
|
1691
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1932
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12MetadataCollectionNameField', displayE);
|
|
1692
1933
|
done();
|
|
1693
1934
|
} catch (err) {
|
|
1694
1935
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1705,7 +1946,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1705
1946
|
a.putDocumentsApi12MetadataCollectionNameField('fakeparam', null, (data, error) => {
|
|
1706
1947
|
try {
|
|
1707
1948
|
const displayE = 'payload is required';
|
|
1708
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1949
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12MetadataCollectionNameField', displayE);
|
|
1709
1950
|
done();
|
|
1710
1951
|
} catch (err) {
|
|
1711
1952
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1746,7 +1987,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1746
1987
|
a.postDocumentsApi12MetadataSearchFields(null, (data, error) => {
|
|
1747
1988
|
try {
|
|
1748
1989
|
const displayE = 'payload is required';
|
|
1749
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1990
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12MetadataSearchFields', displayE);
|
|
1750
1991
|
done();
|
|
1751
1992
|
} catch (err) {
|
|
1752
1993
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1787,7 +2028,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1787
2028
|
a.postDocumentsApi12FoldersFolderIdMetadataCollectionName(null, null, (data, error) => {
|
|
1788
2029
|
try {
|
|
1789
2030
|
const displayE = 'folderId is required';
|
|
1790
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2031
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdMetadataCollectionName', displayE);
|
|
1791
2032
|
done();
|
|
1792
2033
|
} catch (err) {
|
|
1793
2034
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1804,7 +2045,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1804
2045
|
a.postDocumentsApi12FoldersFolderIdMetadataCollectionName('fakeparam', null, (data, error) => {
|
|
1805
2046
|
try {
|
|
1806
2047
|
const displayE = 'collectionName is required';
|
|
1807
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2048
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdMetadataCollectionName', displayE);
|
|
1808
2049
|
done();
|
|
1809
2050
|
} catch (err) {
|
|
1810
2051
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1833,7 +2074,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1833
2074
|
a.postDocumentsApi12FoldersFolderIdMetadata(null, null, (data, error) => {
|
|
1834
2075
|
try {
|
|
1835
2076
|
const displayE = 'folderId is required';
|
|
1836
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2077
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdMetadata', displayE);
|
|
1837
2078
|
done();
|
|
1838
2079
|
} catch (err) {
|
|
1839
2080
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1850,7 +2091,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1850
2091
|
a.postDocumentsApi12FoldersFolderIdMetadata('fakeparam', null, (data, error) => {
|
|
1851
2092
|
try {
|
|
1852
2093
|
const displayE = 'payload is required';
|
|
1853
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2094
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdMetadata', displayE);
|
|
1854
2095
|
done();
|
|
1855
2096
|
} catch (err) {
|
|
1856
2097
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1879,7 +2120,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1879
2120
|
a.getDocumentsApi12FoldersFolderIdMetadata(null, null, (data, error) => {
|
|
1880
2121
|
try {
|
|
1881
2122
|
const displayE = 'folderId is required';
|
|
1882
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2123
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdMetadata', displayE);
|
|
1883
2124
|
done();
|
|
1884
2125
|
} catch (err) {
|
|
1885
2126
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1908,7 +2149,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1908
2149
|
a.deleteDocumentsApi12FoldersFolderIdMetadata(null, null, (data, error) => {
|
|
1909
2150
|
try {
|
|
1910
2151
|
const displayE = 'folderId is required';
|
|
1911
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2152
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FoldersFolderIdMetadata', displayE);
|
|
1912
2153
|
done();
|
|
1913
2154
|
} catch (err) {
|
|
1914
2155
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1925,7 +2166,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1925
2166
|
a.deleteDocumentsApi12FoldersFolderIdMetadata('fakeparam', null, (data, error) => {
|
|
1926
2167
|
try {
|
|
1927
2168
|
const displayE = 'payload is required';
|
|
1928
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2169
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FoldersFolderIdMetadata', displayE);
|
|
1929
2170
|
done();
|
|
1930
2171
|
} catch (err) {
|
|
1931
2172
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1954,7 +2195,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1954
2195
|
a.getDocumentsApi12FoldersFolderIdMetadataFields(null, null, (data, error) => {
|
|
1955
2196
|
try {
|
|
1956
2197
|
const displayE = 'folderId is required';
|
|
1957
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2198
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdMetadataFields', displayE);
|
|
1958
2199
|
done();
|
|
1959
2200
|
} catch (err) {
|
|
1960
2201
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1983,7 +2224,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
1983
2224
|
a.postDocumentsApi12FoldersFolderIdBulkCreate(null, null, null, (data, error) => {
|
|
1984
2225
|
try {
|
|
1985
2226
|
const displayE = 'folderId is required';
|
|
1986
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2227
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdBulkCreate', displayE);
|
|
1987
2228
|
done();
|
|
1988
2229
|
} catch (err) {
|
|
1989
2230
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2000,7 +2241,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2000
2241
|
a.postDocumentsApi12FoldersFolderIdBulkCreate('fakeparam', null, null, (data, error) => {
|
|
2001
2242
|
try {
|
|
2002
2243
|
const displayE = 'payload is required';
|
|
2003
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2244
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdBulkCreate', displayE);
|
|
2004
2245
|
done();
|
|
2005
2246
|
} catch (err) {
|
|
2006
2247
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2029,7 +2270,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2029
2270
|
a.postDocumentsApi12FoldersFolderIdDownload(null, null, (data, error) => {
|
|
2030
2271
|
try {
|
|
2031
2272
|
const displayE = 'folderId is required';
|
|
2032
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2273
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdDownload', displayE);
|
|
2033
2274
|
done();
|
|
2034
2275
|
} catch (err) {
|
|
2035
2276
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2046,7 +2287,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2046
2287
|
a.postDocumentsApi12FoldersFolderIdDownload('fakeparam', null, (data, error) => {
|
|
2047
2288
|
try {
|
|
2048
2289
|
const displayE = 'payload is required';
|
|
2049
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2290
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdDownload', displayE);
|
|
2050
2291
|
done();
|
|
2051
2292
|
} catch (err) {
|
|
2052
2293
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2075,7 +2316,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2075
2316
|
a.getDocumentsApi12FoldersFolderIdDownloadJobId(null, null, (data, error) => {
|
|
2076
2317
|
try {
|
|
2077
2318
|
const displayE = 'folderId is required';
|
|
2078
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2319
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdDownloadJobId', displayE);
|
|
2079
2320
|
done();
|
|
2080
2321
|
} catch (err) {
|
|
2081
2322
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2092,7 +2333,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2092
2333
|
a.getDocumentsApi12FoldersFolderIdDownloadJobId('fakeparam', null, (data, error) => {
|
|
2093
2334
|
try {
|
|
2094
2335
|
const displayE = 'jobId is required';
|
|
2095
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2336
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdDownloadJobId', displayE);
|
|
2096
2337
|
done();
|
|
2097
2338
|
} catch (err) {
|
|
2098
2339
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2121,7 +2362,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2121
2362
|
a.deleteDocumentsApi12FoldersFolderIdDownloadJobId(null, null, (data, error) => {
|
|
2122
2363
|
try {
|
|
2123
2364
|
const displayE = 'folderId is required';
|
|
2124
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2365
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FoldersFolderIdDownloadJobId', displayE);
|
|
2125
2366
|
done();
|
|
2126
2367
|
} catch (err) {
|
|
2127
2368
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2138,7 +2379,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2138
2379
|
a.deleteDocumentsApi12FoldersFolderIdDownloadJobId('fakeparam', null, (data, error) => {
|
|
2139
2380
|
try {
|
|
2140
2381
|
const displayE = 'jobId is required';
|
|
2141
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2382
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FoldersFolderIdDownloadJobId', displayE);
|
|
2142
2383
|
done();
|
|
2143
2384
|
} catch (err) {
|
|
2144
2385
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2167,7 +2408,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2167
2408
|
a.getDocumentsApi12FoldersFolderIdDownloadJobIdPackage(null, null, (data, error) => {
|
|
2168
2409
|
try {
|
|
2169
2410
|
const displayE = 'folderId is required';
|
|
2170
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2411
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdDownloadJobIdPackage', displayE);
|
|
2171
2412
|
done();
|
|
2172
2413
|
} catch (err) {
|
|
2173
2414
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2184,7 +2425,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2184
2425
|
a.getDocumentsApi12FoldersFolderIdDownloadJobIdPackage('fakeparam', null, (data, error) => {
|
|
2185
2426
|
try {
|
|
2186
2427
|
const displayE = 'jobId is required';
|
|
2187
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2428
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdDownloadJobIdPackage', displayE);
|
|
2188
2429
|
done();
|
|
2189
2430
|
} catch (err) {
|
|
2190
2431
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2213,7 +2454,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2213
2454
|
a.getDocumentsApi12FoldersFolderId(null, (data, error) => {
|
|
2214
2455
|
try {
|
|
2215
2456
|
const displayE = 'folderId is required';
|
|
2216
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2457
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderId', displayE);
|
|
2217
2458
|
done();
|
|
2218
2459
|
} catch (err) {
|
|
2219
2460
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2242,7 +2483,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2242
2483
|
a.postDocumentsApi12FoldersFolderId(null, null, (data, error) => {
|
|
2243
2484
|
try {
|
|
2244
2485
|
const displayE = 'folderId is required';
|
|
2245
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2486
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderId', displayE);
|
|
2246
2487
|
done();
|
|
2247
2488
|
} catch (err) {
|
|
2248
2489
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2259,7 +2500,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2259
2500
|
a.postDocumentsApi12FoldersFolderId('fakeparam', null, (data, error) => {
|
|
2260
2501
|
try {
|
|
2261
2502
|
const displayE = 'payload is required';
|
|
2262
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2503
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderId', displayE);
|
|
2263
2504
|
done();
|
|
2264
2505
|
} catch (err) {
|
|
2265
2506
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2288,7 +2529,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2288
2529
|
a.putDocumentsApi12FoldersFolderId(null, null, (data, error) => {
|
|
2289
2530
|
try {
|
|
2290
2531
|
const displayE = 'folderId is required';
|
|
2291
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2532
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12FoldersFolderId', displayE);
|
|
2292
2533
|
done();
|
|
2293
2534
|
} catch (err) {
|
|
2294
2535
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2317,7 +2558,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2317
2558
|
a.deleteDocumentsApi12FoldersFolderId(null, (data, error) => {
|
|
2318
2559
|
try {
|
|
2319
2560
|
const displayE = 'folderId is required';
|
|
2320
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2561
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FoldersFolderId', displayE);
|
|
2321
2562
|
done();
|
|
2322
2563
|
} catch (err) {
|
|
2323
2564
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2346,7 +2587,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2346
2587
|
a.postDocumentsApi12FoldersFolderIdCopy(null, null, (data, error) => {
|
|
2347
2588
|
try {
|
|
2348
2589
|
const displayE = 'folderId is required';
|
|
2349
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2590
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdCopy', displayE);
|
|
2350
2591
|
done();
|
|
2351
2592
|
} catch (err) {
|
|
2352
2593
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2363,7 +2604,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2363
2604
|
a.postDocumentsApi12FoldersFolderIdCopy('fakeparam', null, (data, error) => {
|
|
2364
2605
|
try {
|
|
2365
2606
|
const displayE = 'payload is required';
|
|
2366
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2607
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdCopy', displayE);
|
|
2367
2608
|
done();
|
|
2368
2609
|
} catch (err) {
|
|
2369
2610
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2392,7 +2633,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2392
2633
|
a.postDocumentsApi12FoldersFolderIdMove(null, null, (data, error) => {
|
|
2393
2634
|
try {
|
|
2394
2635
|
const displayE = 'folderId is required';
|
|
2395
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2636
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdMove', displayE);
|
|
2396
2637
|
done();
|
|
2397
2638
|
} catch (err) {
|
|
2398
2639
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2409,7 +2650,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2409
2650
|
a.postDocumentsApi12FoldersFolderIdMove('fakeparam', null, (data, error) => {
|
|
2410
2651
|
try {
|
|
2411
2652
|
const displayE = 'payload is required';
|
|
2412
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2653
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdMove', displayE);
|
|
2413
2654
|
done();
|
|
2414
2655
|
} catch (err) {
|
|
2415
2656
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2450,7 +2691,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2450
2691
|
a.getDocumentsApi12FoldersFolderIdItems(null, null, null, null, null, (data, error) => {
|
|
2451
2692
|
try {
|
|
2452
2693
|
const displayE = 'folderId is required';
|
|
2453
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2694
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdItems', displayE);
|
|
2454
2695
|
done();
|
|
2455
2696
|
} catch (err) {
|
|
2456
2697
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2479,7 +2720,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2479
2720
|
a.getDocumentsApi12FoldersSearchItems(null, null, null, null, null, null, (data, error) => {
|
|
2480
2721
|
try {
|
|
2481
2722
|
const displayE = 'fulltext is required';
|
|
2482
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2723
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersSearchItems', displayE);
|
|
2483
2724
|
done();
|
|
2484
2725
|
} catch (err) {
|
|
2485
2726
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2496,7 +2737,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2496
2737
|
a.getDocumentsApi12FoldersSearchItems('fakeparam', null, null, null, null, null, (data, error) => {
|
|
2497
2738
|
try {
|
|
2498
2739
|
const displayE = 'querytext is required';
|
|
2499
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2740
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersSearchItems', displayE);
|
|
2500
2741
|
done();
|
|
2501
2742
|
} catch (err) {
|
|
2502
2743
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2525,7 +2766,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2525
2766
|
a.getDocumentsApi12FoldersFolderIdSearchItems(null, null, null, null, null, null, null, (data, error) => {
|
|
2526
2767
|
try {
|
|
2527
2768
|
const displayE = 'folderId is required';
|
|
2528
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2769
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdSearchItems', displayE);
|
|
2529
2770
|
done();
|
|
2530
2771
|
} catch (err) {
|
|
2531
2772
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2542,7 +2783,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2542
2783
|
a.getDocumentsApi12FoldersFolderIdSearchItems('fakeparam', null, null, null, null, null, null, (data, error) => {
|
|
2543
2784
|
try {
|
|
2544
2785
|
const displayE = 'fulltext is required';
|
|
2545
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2786
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdSearchItems', displayE);
|
|
2546
2787
|
done();
|
|
2547
2788
|
} catch (err) {
|
|
2548
2789
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2559,7 +2800,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2559
2800
|
a.getDocumentsApi12FoldersFolderIdSearchItems('fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
|
|
2560
2801
|
try {
|
|
2561
2802
|
const displayE = 'querytext is required';
|
|
2562
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2803
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdSearchItems', displayE);
|
|
2563
2804
|
done();
|
|
2564
2805
|
} catch (err) {
|
|
2565
2806
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2588,7 +2829,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2588
2829
|
a.getDocumentsApi12FoldersLists(null, null, (data, error) => {
|
|
2589
2830
|
try {
|
|
2590
2831
|
const displayE = 'idList is required';
|
|
2591
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2832
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersLists', displayE);
|
|
2592
2833
|
done();
|
|
2593
2834
|
} catch (err) {
|
|
2594
2835
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2617,7 +2858,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2617
2858
|
a.getDocumentsApi12FoldersFolderIdTags(null, null, (data, error) => {
|
|
2618
2859
|
try {
|
|
2619
2860
|
const displayE = 'folderId is required';
|
|
2620
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2861
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FoldersFolderIdTags', displayE);
|
|
2621
2862
|
done();
|
|
2622
2863
|
} catch (err) {
|
|
2623
2864
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2646,7 +2887,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2646
2887
|
a.postDocumentsApi12FoldersFolderIdTags(null, null, (data, error) => {
|
|
2647
2888
|
try {
|
|
2648
2889
|
const displayE = 'folderId is required';
|
|
2649
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2890
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdTags', displayE);
|
|
2650
2891
|
done();
|
|
2651
2892
|
} catch (err) {
|
|
2652
2893
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2663,7 +2904,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2663
2904
|
a.postDocumentsApi12FoldersFolderIdTags('fakeparam', null, (data, error) => {
|
|
2664
2905
|
try {
|
|
2665
2906
|
const displayE = 'payload is required';
|
|
2666
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2907
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdTags', displayE);
|
|
2667
2908
|
done();
|
|
2668
2909
|
} catch (err) {
|
|
2669
2910
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2692,7 +2933,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2692
2933
|
a.putDocumentsApi12FoldersFolderIdTags(null, null, (data, error) => {
|
|
2693
2934
|
try {
|
|
2694
2935
|
const displayE = 'folderId is required';
|
|
2695
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2936
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12FoldersFolderIdTags', displayE);
|
|
2696
2937
|
done();
|
|
2697
2938
|
} catch (err) {
|
|
2698
2939
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2709,7 +2950,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2709
2950
|
a.putDocumentsApi12FoldersFolderIdTags('fakeparam', null, (data, error) => {
|
|
2710
2951
|
try {
|
|
2711
2952
|
const displayE = 'payload is required';
|
|
2712
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2953
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12FoldersFolderIdTags', displayE);
|
|
2713
2954
|
done();
|
|
2714
2955
|
} catch (err) {
|
|
2715
2956
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2738,7 +2979,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2738
2979
|
a.deleteDocumentsApi12FoldersFolderIdTags(null, (data, error) => {
|
|
2739
2980
|
try {
|
|
2740
2981
|
const displayE = 'folderId is required';
|
|
2741
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2982
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FoldersFolderIdTags', displayE);
|
|
2742
2983
|
done();
|
|
2743
2984
|
} catch (err) {
|
|
2744
2985
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2767,7 +3008,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2767
3008
|
a.postDocumentsApi12FoldersFolderIdConversation(null, null, (data, error) => {
|
|
2768
3009
|
try {
|
|
2769
3010
|
const displayE = 'folderId is required';
|
|
2770
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3011
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdConversation', displayE);
|
|
2771
3012
|
done();
|
|
2772
3013
|
} catch (err) {
|
|
2773
3014
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2784,7 +3025,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2784
3025
|
a.postDocumentsApi12FoldersFolderIdConversation('fakeparam', null, (data, error) => {
|
|
2785
3026
|
try {
|
|
2786
3027
|
const displayE = 'payload is required';
|
|
2787
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3028
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FoldersFolderIdConversation', displayE);
|
|
2788
3029
|
done();
|
|
2789
3030
|
} catch (err) {
|
|
2790
3031
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2813,7 +3054,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2813
3054
|
a.postDocumentsApi12FilesData(null, null, null, (data, error) => {
|
|
2814
3055
|
try {
|
|
2815
3056
|
const displayE = 'jsonInputParameters is required';
|
|
2816
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3057
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesData', displayE);
|
|
2817
3058
|
done();
|
|
2818
3059
|
} catch (err) {
|
|
2819
3060
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2830,7 +3071,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2830
3071
|
a.postDocumentsApi12FilesData('fakeparam', null, null, (data, error) => {
|
|
2831
3072
|
try {
|
|
2832
3073
|
const displayE = 'primaryFile is required';
|
|
2833
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3074
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesData', displayE);
|
|
2834
3075
|
done();
|
|
2835
3076
|
} catch (err) {
|
|
2836
3077
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2859,7 +3100,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2859
3100
|
a.postDocumentsApi12FilesFileIdData(null, null, null, (data, error) => {
|
|
2860
3101
|
try {
|
|
2861
3102
|
const displayE = 'fileId is required';
|
|
2862
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3103
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdData', displayE);
|
|
2863
3104
|
done();
|
|
2864
3105
|
} catch (err) {
|
|
2865
3106
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2876,7 +3117,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2876
3117
|
a.postDocumentsApi12FilesFileIdData('fakeparam', null, null, (data, error) => {
|
|
2877
3118
|
try {
|
|
2878
3119
|
const displayE = 'primaryFile is required';
|
|
2879
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3120
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdData', displayE);
|
|
2880
3121
|
done();
|
|
2881
3122
|
} catch (err) {
|
|
2882
3123
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2905,7 +3146,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2905
3146
|
a.getDocumentsApi12FilesFileIdData(null, null, (data, error) => {
|
|
2906
3147
|
try {
|
|
2907
3148
|
const displayE = 'fileId is required';
|
|
2908
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3149
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdData', displayE);
|
|
2909
3150
|
done();
|
|
2910
3151
|
} catch (err) {
|
|
2911
3152
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2934,7 +3175,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2934
3175
|
a.postDocumentsApi12FilesFileIdMetadataCollectionName(null, null, (data, error) => {
|
|
2935
3176
|
try {
|
|
2936
3177
|
const displayE = 'fileId is required';
|
|
2937
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3178
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdMetadataCollectionName', displayE);
|
|
2938
3179
|
done();
|
|
2939
3180
|
} catch (err) {
|
|
2940
3181
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2951,7 +3192,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2951
3192
|
a.postDocumentsApi12FilesFileIdMetadataCollectionName('fakeparam', null, (data, error) => {
|
|
2952
3193
|
try {
|
|
2953
3194
|
const displayE = 'collectionName is required';
|
|
2954
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3195
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdMetadataCollectionName', displayE);
|
|
2955
3196
|
done();
|
|
2956
3197
|
} catch (err) {
|
|
2957
3198
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2980,7 +3221,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2980
3221
|
a.postDocumentsApi12FilesFileIdMetadata(null, null, (data, error) => {
|
|
2981
3222
|
try {
|
|
2982
3223
|
const displayE = 'fileId is required';
|
|
2983
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3224
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdMetadata', displayE);
|
|
2984
3225
|
done();
|
|
2985
3226
|
} catch (err) {
|
|
2986
3227
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2997,7 +3238,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
2997
3238
|
a.postDocumentsApi12FilesFileIdMetadata('fakeparam', null, (data, error) => {
|
|
2998
3239
|
try {
|
|
2999
3240
|
const displayE = 'payload is required';
|
|
3000
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3241
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdMetadata', displayE);
|
|
3001
3242
|
done();
|
|
3002
3243
|
} catch (err) {
|
|
3003
3244
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3026,7 +3267,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3026
3267
|
a.getDocumentsApi12FilesFileIdMetadata(null, null, (data, error) => {
|
|
3027
3268
|
try {
|
|
3028
3269
|
const displayE = 'fileId is required';
|
|
3029
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3270
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdMetadata', displayE);
|
|
3030
3271
|
done();
|
|
3031
3272
|
} catch (err) {
|
|
3032
3273
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3055,7 +3296,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3055
3296
|
a.deleteDocumentsApi12FilesFileIdMetadata(null, null, (data, error) => {
|
|
3056
3297
|
try {
|
|
3057
3298
|
const displayE = 'fileId is required';
|
|
3058
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3299
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FilesFileIdMetadata', displayE);
|
|
3059
3300
|
done();
|
|
3060
3301
|
} catch (err) {
|
|
3061
3302
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3072,7 +3313,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3072
3313
|
a.deleteDocumentsApi12FilesFileIdMetadata('fakeparam', null, (data, error) => {
|
|
3073
3314
|
try {
|
|
3074
3315
|
const displayE = 'payload is required';
|
|
3075
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3316
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FilesFileIdMetadata', displayE);
|
|
3076
3317
|
done();
|
|
3077
3318
|
} catch (err) {
|
|
3078
3319
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3101,7 +3342,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3101
3342
|
a.getDocumentsApi12FilesFileIdMetadataFields(null, null, (data, error) => {
|
|
3102
3343
|
try {
|
|
3103
3344
|
const displayE = 'fileId is required';
|
|
3104
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3345
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdMetadataFields', displayE);
|
|
3105
3346
|
done();
|
|
3106
3347
|
} catch (err) {
|
|
3107
3348
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3130,7 +3371,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3130
3371
|
a.getDocumentsApi12FilesLists(null, (data, error) => {
|
|
3131
3372
|
try {
|
|
3132
3373
|
const displayE = 'idList is required';
|
|
3133
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3374
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesLists', displayE);
|
|
3134
3375
|
done();
|
|
3135
3376
|
} catch (err) {
|
|
3136
3377
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3159,7 +3400,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3159
3400
|
a.getDocumentsApi12FilesFileId(null, null, null, null, (data, error) => {
|
|
3160
3401
|
try {
|
|
3161
3402
|
const displayE = 'fileId is required';
|
|
3162
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3403
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileId', displayE);
|
|
3163
3404
|
done();
|
|
3164
3405
|
} catch (err) {
|
|
3165
3406
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3188,7 +3429,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3188
3429
|
a.putDocumentsApi12FilesFileId(null, null, (data, error) => {
|
|
3189
3430
|
try {
|
|
3190
3431
|
const displayE = 'fileId is required';
|
|
3191
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3432
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12FilesFileId', displayE);
|
|
3192
3433
|
done();
|
|
3193
3434
|
} catch (err) {
|
|
3194
3435
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3217,7 +3458,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3217
3458
|
a.deleteDocumentsApi12FilesFileId(null, null, (data, error) => {
|
|
3218
3459
|
try {
|
|
3219
3460
|
const displayE = 'fileId is required';
|
|
3220
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3461
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FilesFileId', displayE);
|
|
3221
3462
|
done();
|
|
3222
3463
|
} catch (err) {
|
|
3223
3464
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3246,7 +3487,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3246
3487
|
a.postDocumentsApi12FilesFileIdCopy(null, null, (data, error) => {
|
|
3247
3488
|
try {
|
|
3248
3489
|
const displayE = 'fileId is required';
|
|
3249
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3490
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdCopy', displayE);
|
|
3250
3491
|
done();
|
|
3251
3492
|
} catch (err) {
|
|
3252
3493
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3263,7 +3504,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3263
3504
|
a.postDocumentsApi12FilesFileIdCopy('fakeparam', null, (data, error) => {
|
|
3264
3505
|
try {
|
|
3265
3506
|
const displayE = 'payload is required';
|
|
3266
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3507
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdCopy', displayE);
|
|
3267
3508
|
done();
|
|
3268
3509
|
} catch (err) {
|
|
3269
3510
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3292,7 +3533,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3292
3533
|
a.postDocumentsApi12FilesFileIdMove(null, null, (data, error) => {
|
|
3293
3534
|
try {
|
|
3294
3535
|
const displayE = 'fileId is required';
|
|
3295
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3536
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdMove', displayE);
|
|
3296
3537
|
done();
|
|
3297
3538
|
} catch (err) {
|
|
3298
3539
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3309,7 +3550,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3309
3550
|
a.postDocumentsApi12FilesFileIdMove('fakeparam', null, (data, error) => {
|
|
3310
3551
|
try {
|
|
3311
3552
|
const displayE = 'payload is required';
|
|
3312
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3553
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdMove', displayE);
|
|
3313
3554
|
done();
|
|
3314
3555
|
} catch (err) {
|
|
3315
3556
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3338,7 +3579,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3338
3579
|
a.getDocumentsApi12FilesFileIdVersions(null, (data, error) => {
|
|
3339
3580
|
try {
|
|
3340
3581
|
const displayE = 'fileId is required';
|
|
3341
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3582
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdVersions', displayE);
|
|
3342
3583
|
done();
|
|
3343
3584
|
} catch (err) {
|
|
3344
3585
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3367,7 +3608,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3367
3608
|
a.postDocumentsApi12FilesFileIdReserve(null, (data, error) => {
|
|
3368
3609
|
try {
|
|
3369
3610
|
const displayE = 'fileId is required';
|
|
3370
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3611
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdReserve', displayE);
|
|
3371
3612
|
done();
|
|
3372
3613
|
} catch (err) {
|
|
3373
3614
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3396,7 +3637,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3396
3637
|
a.postDocumentsApi12FilesFileIdUnreserve(null, null, (data, error) => {
|
|
3397
3638
|
try {
|
|
3398
3639
|
const displayE = 'fileId is required';
|
|
3399
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3640
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdUnreserve', displayE);
|
|
3400
3641
|
done();
|
|
3401
3642
|
} catch (err) {
|
|
3402
3643
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3413,7 +3654,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3413
3654
|
a.postDocumentsApi12FilesFileIdUnreserve('fakeparam', null, (data, error) => {
|
|
3414
3655
|
try {
|
|
3415
3656
|
const displayE = 'payload is required';
|
|
3416
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3657
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdUnreserve', displayE);
|
|
3417
3658
|
done();
|
|
3418
3659
|
} catch (err) {
|
|
3419
3660
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3442,7 +3683,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3442
3683
|
a.getDocumentsApi12FilesFileIdDataThumbnailImage(null, null, null, (data, error) => {
|
|
3443
3684
|
try {
|
|
3444
3685
|
const displayE = 'fileId is required';
|
|
3445
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3686
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataThumbnailImage', displayE);
|
|
3446
3687
|
done();
|
|
3447
3688
|
} catch (err) {
|
|
3448
3689
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3471,7 +3712,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3471
3712
|
a.getDocumentsApi12FilesFileIdDataSmallImage(null, null, null, (data, error) => {
|
|
3472
3713
|
try {
|
|
3473
3714
|
const displayE = 'fileId is required';
|
|
3474
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3715
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataSmallImage', displayE);
|
|
3475
3716
|
done();
|
|
3476
3717
|
} catch (err) {
|
|
3477
3718
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3500,7 +3741,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3500
3741
|
a.getDocumentsApi12FilesFileIdDataMediumImage(null, null, null, (data, error) => {
|
|
3501
3742
|
try {
|
|
3502
3743
|
const displayE = 'fileId is required';
|
|
3503
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3744
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataMediumImage', displayE);
|
|
3504
3745
|
done();
|
|
3505
3746
|
} catch (err) {
|
|
3506
3747
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3529,7 +3770,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3529
3770
|
a.getDocumentsApi12FilesFileIdDataLargeImage(null, null, null, (data, error) => {
|
|
3530
3771
|
try {
|
|
3531
3772
|
const displayE = 'fileId is required';
|
|
3532
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3773
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataLargeImage', displayE);
|
|
3533
3774
|
done();
|
|
3534
3775
|
} catch (err) {
|
|
3535
3776
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3558,7 +3799,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3558
3799
|
a.getDocumentsApi12FilesFileIdDataThumbnail(null, null, (data, error) => {
|
|
3559
3800
|
try {
|
|
3560
3801
|
const displayE = 'fileId is required';
|
|
3561
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3802
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataThumbnail', displayE);
|
|
3562
3803
|
done();
|
|
3563
3804
|
} catch (err) {
|
|
3564
3805
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3587,7 +3828,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3587
3828
|
a.getDocumentsApi12FilesFileIdDataRendition(null, null, null, null, (data, error) => {
|
|
3588
3829
|
try {
|
|
3589
3830
|
const displayE = 'fileId is required';
|
|
3590
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3831
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3591
3832
|
done();
|
|
3592
3833
|
} catch (err) {
|
|
3593
3834
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3604,7 +3845,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3604
3845
|
a.getDocumentsApi12FilesFileIdDataRendition('fakeparam', null, null, null, (data, error) => {
|
|
3605
3846
|
try {
|
|
3606
3847
|
const displayE = 'rendition is required';
|
|
3607
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3848
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3608
3849
|
done();
|
|
3609
3850
|
} catch (err) {
|
|
3610
3851
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3633,7 +3874,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3633
3874
|
a.postDocumentsApi12FilesFileIdDataRendition(null, null, null, (data, error) => {
|
|
3634
3875
|
try {
|
|
3635
3876
|
const displayE = 'fileId is required';
|
|
3636
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3877
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3637
3878
|
done();
|
|
3638
3879
|
} catch (err) {
|
|
3639
3880
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3650,7 +3891,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3650
3891
|
a.postDocumentsApi12FilesFileIdDataRendition('fakeparam', null, null, (data, error) => {
|
|
3651
3892
|
try {
|
|
3652
3893
|
const displayE = 'jsonInputParameters is required';
|
|
3653
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3894
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3654
3895
|
done();
|
|
3655
3896
|
} catch (err) {
|
|
3656
3897
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3667,7 +3908,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3667
3908
|
a.postDocumentsApi12FilesFileIdDataRendition('fakeparam', 'fakeparam', null, (data, error) => {
|
|
3668
3909
|
try {
|
|
3669
3910
|
const displayE = 'file is required';
|
|
3670
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3911
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3671
3912
|
done();
|
|
3672
3913
|
} catch (err) {
|
|
3673
3914
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3696,7 +3937,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3696
3937
|
a.deleteDocumentsApi12FilesFileIdDataRendition(null, null, null, (data, error) => {
|
|
3697
3938
|
try {
|
|
3698
3939
|
const displayE = 'fileId is required';
|
|
3699
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3940
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3700
3941
|
done();
|
|
3701
3942
|
} catch (err) {
|
|
3702
3943
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3713,7 +3954,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3713
3954
|
a.deleteDocumentsApi12FilesFileIdDataRendition('fakeparam', null, null, (data, error) => {
|
|
3714
3955
|
try {
|
|
3715
3956
|
const displayE = 'rendition is required';
|
|
3716
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3957
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FilesFileIdDataRendition', displayE);
|
|
3717
3958
|
done();
|
|
3718
3959
|
} catch (err) {
|
|
3719
3960
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3742,7 +3983,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3742
3983
|
a.getDocumentsApi12FilesFileIdDataRenditions(null, null, null, (data, error) => {
|
|
3743
3984
|
try {
|
|
3744
3985
|
const displayE = 'fileId is required';
|
|
3745
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3986
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdDataRenditions', displayE);
|
|
3746
3987
|
done();
|
|
3747
3988
|
} catch (err) {
|
|
3748
3989
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3771,7 +4012,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3771
4012
|
a.getDocumentsApi12FilesFileIdPages(null, null, (data, error) => {
|
|
3772
4013
|
try {
|
|
3773
4014
|
const displayE = 'fileId is required';
|
|
3774
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4015
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdPages', displayE);
|
|
3775
4016
|
done();
|
|
3776
4017
|
} catch (err) {
|
|
3777
4018
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3800,7 +4041,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3800
4041
|
a.postDocumentsApi12FilesFileIdPages(null, null, (data, error) => {
|
|
3801
4042
|
try {
|
|
3802
4043
|
const displayE = 'fileId is required';
|
|
3803
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4044
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdPages', displayE);
|
|
3804
4045
|
done();
|
|
3805
4046
|
} catch (err) {
|
|
3806
4047
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3829,7 +4070,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3829
4070
|
a.getDocumentsApi12FilesFileIdPreviewPath(null, null, null, (data, error) => {
|
|
3830
4071
|
try {
|
|
3831
4072
|
const displayE = 'fileId is required';
|
|
3832
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4073
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdPreviewPath', displayE);
|
|
3833
4074
|
done();
|
|
3834
4075
|
} catch (err) {
|
|
3835
4076
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3858,7 +4099,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3858
4099
|
a.getDocumentsApi12FilesFileIdTags(null, null, (data, error) => {
|
|
3859
4100
|
try {
|
|
3860
4101
|
const displayE = 'fileId is required';
|
|
3861
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4102
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdTags', displayE);
|
|
3862
4103
|
done();
|
|
3863
4104
|
} catch (err) {
|
|
3864
4105
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3887,7 +4128,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3887
4128
|
a.postDocumentsApi12FilesFileIdTags(null, null, (data, error) => {
|
|
3888
4129
|
try {
|
|
3889
4130
|
const displayE = 'fileId is required';
|
|
3890
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4131
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdTags', displayE);
|
|
3891
4132
|
done();
|
|
3892
4133
|
} catch (err) {
|
|
3893
4134
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3904,7 +4145,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3904
4145
|
a.postDocumentsApi12FilesFileIdTags('fakeparam', null, (data, error) => {
|
|
3905
4146
|
try {
|
|
3906
4147
|
const displayE = 'payload is required';
|
|
3907
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4148
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdTags', displayE);
|
|
3908
4149
|
done();
|
|
3909
4150
|
} catch (err) {
|
|
3910
4151
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3933,7 +4174,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3933
4174
|
a.putDocumentsApi12FilesFileIdTags(null, null, (data, error) => {
|
|
3934
4175
|
try {
|
|
3935
4176
|
const displayE = 'fileId is required';
|
|
3936
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4177
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12FilesFileIdTags', displayE);
|
|
3937
4178
|
done();
|
|
3938
4179
|
} catch (err) {
|
|
3939
4180
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3950,7 +4191,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3950
4191
|
a.putDocumentsApi12FilesFileIdTags('fakeparam', null, (data, error) => {
|
|
3951
4192
|
try {
|
|
3952
4193
|
const displayE = 'payload is required';
|
|
3953
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4194
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12FilesFileIdTags', displayE);
|
|
3954
4195
|
done();
|
|
3955
4196
|
} catch (err) {
|
|
3956
4197
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3979,7 +4220,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
3979
4220
|
a.deleteDocumentsApi12FilesFileIdTags(null, (data, error) => {
|
|
3980
4221
|
try {
|
|
3981
4222
|
const displayE = 'fileId is required';
|
|
3982
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4223
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12FilesFileIdTags', displayE);
|
|
3983
4224
|
done();
|
|
3984
4225
|
} catch (err) {
|
|
3985
4226
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4008,7 +4249,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4008
4249
|
a.postDocumentsApi12FilesFileIdConversation(null, null, (data, error) => {
|
|
4009
4250
|
try {
|
|
4010
4251
|
const displayE = 'fileId is required';
|
|
4011
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4252
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdConversation', displayE);
|
|
4012
4253
|
done();
|
|
4013
4254
|
} catch (err) {
|
|
4014
4255
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4025,7 +4266,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4025
4266
|
a.postDocumentsApi12FilesFileIdConversation('fakeparam', null, (data, error) => {
|
|
4026
4267
|
try {
|
|
4027
4268
|
const displayE = 'payload is required';
|
|
4028
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4269
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12FilesFileIdConversation', displayE);
|
|
4029
4270
|
done();
|
|
4030
4271
|
} catch (err) {
|
|
4031
4272
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4054,7 +4295,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4054
4295
|
a.getDocumentsApi12FilesFileIdAccesses(null, null, null, null, (data, error) => {
|
|
4055
4296
|
try {
|
|
4056
4297
|
const displayE = 'fileId is required';
|
|
4057
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4298
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12FilesFileIdAccesses', displayE);
|
|
4058
4299
|
done();
|
|
4059
4300
|
} catch (err) {
|
|
4060
4301
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4083,7 +4324,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4083
4324
|
a.postDocumentsApi12PubliclinksFolderFolderId(null, null, (data, error) => {
|
|
4084
4325
|
try {
|
|
4085
4326
|
const displayE = 'folderId is required';
|
|
4086
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4327
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12PubliclinksFolderFolderId', displayE);
|
|
4087
4328
|
done();
|
|
4088
4329
|
} catch (err) {
|
|
4089
4330
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4100,7 +4341,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4100
4341
|
a.postDocumentsApi12PubliclinksFolderFolderId('fakeparam', null, (data, error) => {
|
|
4101
4342
|
try {
|
|
4102
4343
|
const displayE = 'payload is required';
|
|
4103
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4344
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12PubliclinksFolderFolderId', displayE);
|
|
4104
4345
|
done();
|
|
4105
4346
|
} catch (err) {
|
|
4106
4347
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4129,7 +4370,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4129
4370
|
a.getDocumentsApi12PubliclinksFolderFolderId(null, (data, error) => {
|
|
4130
4371
|
try {
|
|
4131
4372
|
const displayE = 'folderId is required';
|
|
4132
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4373
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12PubliclinksFolderFolderId', displayE);
|
|
4133
4374
|
done();
|
|
4134
4375
|
} catch (err) {
|
|
4135
4376
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4158,7 +4399,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4158
4399
|
a.postDocumentsApi12PubliclinksFileFileId(null, null, (data, error) => {
|
|
4159
4400
|
try {
|
|
4160
4401
|
const displayE = 'fileId is required';
|
|
4161
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4402
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12PubliclinksFileFileId', displayE);
|
|
4162
4403
|
done();
|
|
4163
4404
|
} catch (err) {
|
|
4164
4405
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4175,7 +4416,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4175
4416
|
a.postDocumentsApi12PubliclinksFileFileId('fakeparam', null, (data, error) => {
|
|
4176
4417
|
try {
|
|
4177
4418
|
const displayE = 'payload is required';
|
|
4178
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4419
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12PubliclinksFileFileId', displayE);
|
|
4179
4420
|
done();
|
|
4180
4421
|
} catch (err) {
|
|
4181
4422
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4204,7 +4445,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4204
4445
|
a.getDocumentsApi12PubliclinksFileFileId(null, (data, error) => {
|
|
4205
4446
|
try {
|
|
4206
4447
|
const displayE = 'fileId is required';
|
|
4207
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4448
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12PubliclinksFileFileId', displayE);
|
|
4208
4449
|
done();
|
|
4209
4450
|
} catch (err) {
|
|
4210
4451
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4233,7 +4474,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4233
4474
|
a.getDocumentsApi12PubliclinksLinkId(null, (data, error) => {
|
|
4234
4475
|
try {
|
|
4235
4476
|
const displayE = 'linkId is required';
|
|
4236
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4477
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12PubliclinksLinkId', displayE);
|
|
4237
4478
|
done();
|
|
4238
4479
|
} catch (err) {
|
|
4239
4480
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4262,7 +4503,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4262
4503
|
a.putDocumentsApi12PubliclinksLinkId(null, null, (data, error) => {
|
|
4263
4504
|
try {
|
|
4264
4505
|
const displayE = 'linkId is required';
|
|
4265
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4506
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12PubliclinksLinkId', displayE);
|
|
4266
4507
|
done();
|
|
4267
4508
|
} catch (err) {
|
|
4268
4509
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4279,7 +4520,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4279
4520
|
a.putDocumentsApi12PubliclinksLinkId('fakeparam', null, (data, error) => {
|
|
4280
4521
|
try {
|
|
4281
4522
|
const displayE = 'payload is required';
|
|
4282
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4523
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12PubliclinksLinkId', displayE);
|
|
4283
4524
|
done();
|
|
4284
4525
|
} catch (err) {
|
|
4285
4526
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4308,7 +4549,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4308
4549
|
a.deleteDocumentsApi12PubliclinksLinkId(null, (data, error) => {
|
|
4309
4550
|
try {
|
|
4310
4551
|
const displayE = 'linkId is required';
|
|
4311
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4552
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12PubliclinksLinkId', displayE);
|
|
4312
4553
|
done();
|
|
4313
4554
|
} catch (err) {
|
|
4314
4555
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4337,7 +4578,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4337
4578
|
a.postDocumentsApi12Collections(null, (data, error) => {
|
|
4338
4579
|
try {
|
|
4339
4580
|
const displayE = 'payload is required';
|
|
4340
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4581
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12Collections', displayE);
|
|
4341
4582
|
done();
|
|
4342
4583
|
} catch (err) {
|
|
4343
4584
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4366,7 +4607,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4366
4607
|
a.deleteDocumentsApi12CollectionsCollectionId(null, (data, error) => {
|
|
4367
4608
|
try {
|
|
4368
4609
|
const displayE = 'collectionId is required';
|
|
4369
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4610
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12CollectionsCollectionId', displayE);
|
|
4370
4611
|
done();
|
|
4371
4612
|
} catch (err) {
|
|
4372
4613
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4395,7 +4636,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4395
4636
|
a.postDocumentsApi12CollectionsCollectionIdFilesFileId(null, null, (data, error) => {
|
|
4396
4637
|
try {
|
|
4397
4638
|
const displayE = 'collectionId is required';
|
|
4398
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4639
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12CollectionsCollectionIdFilesFileId', displayE);
|
|
4399
4640
|
done();
|
|
4400
4641
|
} catch (err) {
|
|
4401
4642
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4412,7 +4653,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4412
4653
|
a.postDocumentsApi12CollectionsCollectionIdFilesFileId('fakeparam', null, (data, error) => {
|
|
4413
4654
|
try {
|
|
4414
4655
|
const displayE = 'fileId is required';
|
|
4415
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4656
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12CollectionsCollectionIdFilesFileId', displayE);
|
|
4416
4657
|
done();
|
|
4417
4658
|
} catch (err) {
|
|
4418
4659
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4441,7 +4682,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4441
4682
|
a.deleteDocumentsApi12CollectionsCollectionIdFilesFileId(null, null, (data, error) => {
|
|
4442
4683
|
try {
|
|
4443
4684
|
const displayE = 'collectionId is required';
|
|
4444
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4685
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12CollectionsCollectionIdFilesFileId', displayE);
|
|
4445
4686
|
done();
|
|
4446
4687
|
} catch (err) {
|
|
4447
4688
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4458,7 +4699,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4458
4699
|
a.deleteDocumentsApi12CollectionsCollectionIdFilesFileId('fakeparam', null, (data, error) => {
|
|
4459
4700
|
try {
|
|
4460
4701
|
const displayE = 'fileId is required';
|
|
4461
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4702
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12CollectionsCollectionIdFilesFileId', displayE);
|
|
4462
4703
|
done();
|
|
4463
4704
|
} catch (err) {
|
|
4464
4705
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4487,7 +4728,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4487
4728
|
a.postDocumentsApi12CollectionsCollectionIdFiles(null, null, (data, error) => {
|
|
4488
4729
|
try {
|
|
4489
4730
|
const displayE = 'collectionId is required';
|
|
4490
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4731
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12CollectionsCollectionIdFiles', displayE);
|
|
4491
4732
|
done();
|
|
4492
4733
|
} catch (err) {
|
|
4493
4734
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4504,7 +4745,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4504
4745
|
a.postDocumentsApi12CollectionsCollectionIdFiles('fakeparam', null, (data, error) => {
|
|
4505
4746
|
try {
|
|
4506
4747
|
const displayE = 'payload is required';
|
|
4507
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4748
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12CollectionsCollectionIdFiles', displayE);
|
|
4508
4749
|
done();
|
|
4509
4750
|
} catch (err) {
|
|
4510
4751
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4533,7 +4774,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4533
4774
|
a.deleteDocumentsApi12CollectionsCollectionIdFiles(null, null, (data, error) => {
|
|
4534
4775
|
try {
|
|
4535
4776
|
const displayE = 'collectionId is required';
|
|
4536
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4777
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12CollectionsCollectionIdFiles', displayE);
|
|
4537
4778
|
done();
|
|
4538
4779
|
} catch (err) {
|
|
4539
4780
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4550,7 +4791,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4550
4791
|
a.deleteDocumentsApi12CollectionsCollectionIdFiles('fakeparam', null, (data, error) => {
|
|
4551
4792
|
try {
|
|
4552
4793
|
const displayE = 'payload is required';
|
|
4553
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4794
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-deleteDocumentsApi12CollectionsCollectionIdFiles', displayE);
|
|
4554
4795
|
done();
|
|
4555
4796
|
} catch (err) {
|
|
4556
4797
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4627,7 +4868,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4627
4868
|
a.putDocumentsApi12ConfigNotificationEmail(null, (data, error) => {
|
|
4628
4869
|
try {
|
|
4629
4870
|
const displayE = 'payload is required';
|
|
4630
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4871
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-putDocumentsApi12ConfigNotificationEmail', displayE);
|
|
4631
4872
|
done();
|
|
4632
4873
|
} catch (err) {
|
|
4633
4874
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4656,7 +4897,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4656
4897
|
a.postDocumentsApi12SitesSiteIdSite(null, null, (data, error) => {
|
|
4657
4898
|
try {
|
|
4658
4899
|
const displayE = 'siteId is required';
|
|
4659
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4900
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12SitesSiteIdSite', displayE);
|
|
4660
4901
|
done();
|
|
4661
4902
|
} catch (err) {
|
|
4662
4903
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4673,7 +4914,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4673
4914
|
a.postDocumentsApi12SitesSiteIdSite('fakeparam', null, (data, error) => {
|
|
4674
4915
|
try {
|
|
4675
4916
|
const displayE = 'payload is required';
|
|
4676
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4917
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12SitesSiteIdSite', displayE);
|
|
4677
4918
|
done();
|
|
4678
4919
|
} catch (err) {
|
|
4679
4920
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4702,7 +4943,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4702
4943
|
a.postDocumentsApi12TemplatesTemplateIdSite(null, null, (data, error) => {
|
|
4703
4944
|
try {
|
|
4704
4945
|
const displayE = 'templateId is required';
|
|
4705
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4946
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12TemplatesTemplateIdSite', displayE);
|
|
4706
4947
|
done();
|
|
4707
4948
|
} catch (err) {
|
|
4708
4949
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4719,7 +4960,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4719
4960
|
a.postDocumentsApi12TemplatesTemplateIdSite('fakeparam', null, (data, error) => {
|
|
4720
4961
|
try {
|
|
4721
4962
|
const displayE = 'payload is required';
|
|
4722
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4963
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12TemplatesTemplateIdSite', displayE);
|
|
4723
4964
|
done();
|
|
4724
4965
|
} catch (err) {
|
|
4725
4966
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4748,7 +4989,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4748
4989
|
a.postDocumentsApi12ApplinksFolderFolderId(null, null, (data, error) => {
|
|
4749
4990
|
try {
|
|
4750
4991
|
const displayE = 'folderId is required';
|
|
4751
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4992
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12ApplinksFolderFolderId', displayE);
|
|
4752
4993
|
done();
|
|
4753
4994
|
} catch (err) {
|
|
4754
4995
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4765,7 +5006,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4765
5006
|
a.postDocumentsApi12ApplinksFolderFolderId('fakeparam', null, (data, error) => {
|
|
4766
5007
|
try {
|
|
4767
5008
|
const displayE = 'payload is required';
|
|
4768
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5009
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12ApplinksFolderFolderId', displayE);
|
|
4769
5010
|
done();
|
|
4770
5011
|
} catch (err) {
|
|
4771
5012
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4794,7 +5035,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4794
5035
|
a.postDocumentsApi12ApplinksFileFileId(null, null, (data, error) => {
|
|
4795
5036
|
try {
|
|
4796
5037
|
const displayE = 'fileId is required';
|
|
4797
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5038
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12ApplinksFileFileId', displayE);
|
|
4798
5039
|
done();
|
|
4799
5040
|
} catch (err) {
|
|
4800
5041
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4811,7 +5052,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4811
5052
|
a.postDocumentsApi12ApplinksFileFileId('fakeparam', null, (data, error) => {
|
|
4812
5053
|
try {
|
|
4813
5054
|
const displayE = 'payload is required';
|
|
4814
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5055
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12ApplinksFileFileId', displayE);
|
|
4815
5056
|
done();
|
|
4816
5057
|
} catch (err) {
|
|
4817
5058
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4864,7 +5105,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4864
5105
|
a.getDocumentsApiVersion(null, (data, error) => {
|
|
4865
5106
|
try {
|
|
4866
5107
|
const displayE = 'version is required';
|
|
4867
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5108
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersion', displayE);
|
|
4868
5109
|
done();
|
|
4869
5110
|
} catch (err) {
|
|
4870
5111
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4893,7 +5134,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4893
5134
|
a.getDocumentsApiVersionMetadataCatalog(null, (data, error) => {
|
|
4894
5135
|
try {
|
|
4895
5136
|
const displayE = 'version is required';
|
|
4896
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5137
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalog', displayE);
|
|
4897
5138
|
done();
|
|
4898
5139
|
} catch (err) {
|
|
4899
5140
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4922,7 +5163,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4922
5163
|
a.getDocumentsApiVersionMetadataCatalogFolders(null, (data, error) => {
|
|
4923
5164
|
try {
|
|
4924
5165
|
const displayE = 'version is required';
|
|
4925
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5166
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogFolders', displayE);
|
|
4926
5167
|
done();
|
|
4927
5168
|
} catch (err) {
|
|
4928
5169
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4951,7 +5192,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4951
5192
|
a.getDocumentsApiVersionMetadataCatalogFiles(null, (data, error) => {
|
|
4952
5193
|
try {
|
|
4953
5194
|
const displayE = 'version is required';
|
|
4954
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5195
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogFiles', displayE);
|
|
4955
5196
|
done();
|
|
4956
5197
|
} catch (err) {
|
|
4957
5198
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4980,7 +5221,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
4980
5221
|
a.getDocumentsApiVersionMetadataCatalogUsers(null, (data, error) => {
|
|
4981
5222
|
try {
|
|
4982
5223
|
const displayE = 'version is required';
|
|
4983
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5224
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogUsers', displayE);
|
|
4984
5225
|
done();
|
|
4985
5226
|
} catch (err) {
|
|
4986
5227
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5009,7 +5250,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5009
5250
|
a.getDocumentsApiVersionMetadataCatalogApplinks(null, (data, error) => {
|
|
5010
5251
|
try {
|
|
5011
5252
|
const displayE = 'version is required';
|
|
5012
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5253
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogApplinks', displayE);
|
|
5013
5254
|
done();
|
|
5014
5255
|
} catch (err) {
|
|
5015
5256
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5038,7 +5279,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5038
5279
|
a.getDocumentsApiVersionMetadataCatalogShares(null, (data, error) => {
|
|
5039
5280
|
try {
|
|
5040
5281
|
const displayE = 'version is required';
|
|
5041
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5282
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogShares', displayE);
|
|
5042
5283
|
done();
|
|
5043
5284
|
} catch (err) {
|
|
5044
5285
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5067,7 +5308,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5067
5308
|
a.getDocumentsApiVersionMetadataCatalogPubliclinks(null, (data, error) => {
|
|
5068
5309
|
try {
|
|
5069
5310
|
const displayE = 'version is required';
|
|
5070
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5311
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogPubliclinks', displayE);
|
|
5071
5312
|
done();
|
|
5072
5313
|
} catch (err) {
|
|
5073
5314
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5096,7 +5337,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5096
5337
|
a.getDocumentsApiVersionMetadataCatalogMetadata(null, (data, error) => {
|
|
5097
5338
|
try {
|
|
5098
5339
|
const displayE = 'version is required';
|
|
5099
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5340
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogMetadata', displayE);
|
|
5100
5341
|
done();
|
|
5101
5342
|
} catch (err) {
|
|
5102
5343
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5125,7 +5366,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5125
5366
|
a.getDocumentsApiVersionMetadataCatalogConfiguration(null, (data, error) => {
|
|
5126
5367
|
try {
|
|
5127
5368
|
const displayE = 'version is required';
|
|
5128
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5369
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogConfiguration', displayE);
|
|
5129
5370
|
done();
|
|
5130
5371
|
} catch (err) {
|
|
5131
5372
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5154,7 +5395,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5154
5395
|
a.getDocumentsApiVersionMetadataCatalogCollections(null, (data, error) => {
|
|
5155
5396
|
try {
|
|
5156
5397
|
const displayE = 'version is required';
|
|
5157
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5398
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogCollections', displayE);
|
|
5158
5399
|
done();
|
|
5159
5400
|
} catch (err) {
|
|
5160
5401
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5183,7 +5424,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5183
5424
|
a.getDocumentsApiVersionMetadataCatalogSites(null, (data, error) => {
|
|
5184
5425
|
try {
|
|
5185
5426
|
const displayE = 'version is required';
|
|
5186
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5427
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogSites', displayE);
|
|
5187
5428
|
done();
|
|
5188
5429
|
} catch (err) {
|
|
5189
5430
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5212,7 +5453,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5212
5453
|
a.getDocumentsApiVersionMetadataCatalogTemplates(null, (data, error) => {
|
|
5213
5454
|
try {
|
|
5214
5455
|
const displayE = 'version is required';
|
|
5215
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5456
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApiVersionMetadataCatalogTemplates', displayE);
|
|
5216
5457
|
done();
|
|
5217
5458
|
} catch (err) {
|
|
5218
5459
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5241,7 +5482,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5241
5482
|
a.getDocumentsApi12UsersItems(null, (data, error) => {
|
|
5242
5483
|
try {
|
|
5243
5484
|
const displayE = 'info is required';
|
|
5244
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5485
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12UsersItems', displayE);
|
|
5245
5486
|
done();
|
|
5246
5487
|
} catch (err) {
|
|
5247
5488
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5270,7 +5511,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5270
5511
|
a.getDocumentsApi12UsersSearchItems(null, (data, error) => {
|
|
5271
5512
|
try {
|
|
5272
5513
|
const displayE = 'email is required';
|
|
5273
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5514
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-getDocumentsApi12UsersSearchItems', displayE);
|
|
5274
5515
|
done();
|
|
5275
5516
|
} catch (err) {
|
|
5276
5517
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5299,7 +5540,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5299
5540
|
a.postDocumentsApi12UsersUserIDTransferContent(null, null, (data, error) => {
|
|
5300
5541
|
try {
|
|
5301
5542
|
const displayE = 'userID is required';
|
|
5302
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5543
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12UsersUserIDTransferContent', displayE);
|
|
5303
5544
|
done();
|
|
5304
5545
|
} catch (err) {
|
|
5305
5546
|
log.error(`Test Failure: ${err}`);
|
|
@@ -5316,7 +5557,7 @@ describe('[unit] OracleCloud Adapter Test', () => {
|
|
|
5316
5557
|
a.postDocumentsApi12UsersUserIDTransferContent('fakeparam', null, (data, error) => {
|
|
5317
5558
|
try {
|
|
5318
5559
|
const displayE = 'targetUserID is required';
|
|
5319
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
5560
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-oracle_cloud-adapter-postDocumentsApi12UsersUserIDTransferContent', displayE);
|
|
5320
5561
|
done();
|
|
5321
5562
|
} catch (err) {
|
|
5322
5563
|
log.error(`Test Failure: ${err}`);
|