@itentialopensource/adapter-gogetssl 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 +476 -0
- package/CHANGELOG.md +3 -3
- 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 +367 -266
- 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.yaml +20538 -0
- package/report/adapterInfo.json +10 -0
- package/report/updateReport1653710772448.json +120 -0
- package/report/updateReport1691508724487.json +120 -0
- package/report/updateReport1692203182238.json +120 -0
- package/report/updateReport1694468184582.json +120 -0
- package/report/updateReport1698422557075.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 +166 -117
- package/test/unit/adapterBaseTestUnit.js +388 -308
- package/test/unit/adapterTestUnit.js +659 -418
- 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
- /package/report/{gogetssl_apimatic_openapi3.json → adapter-openapi.json} +0 -0
|
@@ -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-gogetssl',
|
|
47
59
|
type: 'GoGetSSL',
|
|
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: 'no_authentication',
|
|
60
|
-
username,
|
|
61
|
-
password,
|
|
62
|
-
token: '',
|
|
63
|
-
invalid_token_error: 401,
|
|
64
|
-
token_timeout: -1,
|
|
65
|
-
token_cache: 'local',
|
|
66
|
-
auth_field: 'header.headers.Authorization',
|
|
67
|
-
auth_field_format: 'Basic {b64}{username}:{password}{/b64}',
|
|
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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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.3', 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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] GoGetSSL 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
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
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
|
+
});
|
|
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
|
+
});
|
|
1257
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-gogetssl', 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-gogetssl', 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] GoGetSSL Adapter Test', () => {
|
|
|
1279
1520
|
a.getAllProducts(null, (data, error) => {
|
|
1280
1521
|
try {
|
|
1281
1522
|
const displayE = 'authKey is required';
|
|
1282
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1523
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAllProducts', displayE);
|
|
1283
1524
|
done();
|
|
1284
1525
|
} catch (err) {
|
|
1285
1526
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1308,7 +1549,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1308
1549
|
a.getAllProductPrices(null, (data, error) => {
|
|
1309
1550
|
try {
|
|
1310
1551
|
const displayE = 'authKey is required';
|
|
1311
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1552
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAllProductPrices', displayE);
|
|
1312
1553
|
done();
|
|
1313
1554
|
} catch (err) {
|
|
1314
1555
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1337,7 +1578,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1337
1578
|
a.getProductDetails(null, null, (data, error) => {
|
|
1338
1579
|
try {
|
|
1339
1580
|
const displayE = 'authKey is required';
|
|
1340
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1581
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getProductDetails', displayE);
|
|
1341
1582
|
done();
|
|
1342
1583
|
} catch (err) {
|
|
1343
1584
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1354,7 +1595,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1354
1595
|
a.getProductDetails('fakeparam', null, (data, error) => {
|
|
1355
1596
|
try {
|
|
1356
1597
|
const displayE = 'productId is required';
|
|
1357
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1598
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getProductDetails', displayE);
|
|
1358
1599
|
done();
|
|
1359
1600
|
} catch (err) {
|
|
1360
1601
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1383,7 +1624,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1383
1624
|
a.getProductPrice(null, null, (data, error) => {
|
|
1384
1625
|
try {
|
|
1385
1626
|
const displayE = 'authKey is required';
|
|
1386
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1627
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getProductPrice', displayE);
|
|
1387
1628
|
done();
|
|
1388
1629
|
} catch (err) {
|
|
1389
1630
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1400,7 +1641,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1400
1641
|
a.getProductPrice('fakeparam', null, (data, error) => {
|
|
1401
1642
|
try {
|
|
1402
1643
|
const displayE = 'productId is required';
|
|
1403
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1644
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getProductPrice', displayE);
|
|
1404
1645
|
done();
|
|
1405
1646
|
} catch (err) {
|
|
1406
1647
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1429,7 +1670,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1429
1670
|
a.getProductAgreement(null, null, (data, error) => {
|
|
1430
1671
|
try {
|
|
1431
1672
|
const displayE = 'authKey is required';
|
|
1432
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1673
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getProductAgreement', displayE);
|
|
1433
1674
|
done();
|
|
1434
1675
|
} catch (err) {
|
|
1435
1676
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1446,7 +1687,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1446
1687
|
a.getProductAgreement('fakeparam', null, (data, error) => {
|
|
1447
1688
|
try {
|
|
1448
1689
|
const displayE = 'productId is required';
|
|
1449
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1690
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getProductAgreement', displayE);
|
|
1450
1691
|
done();
|
|
1451
1692
|
} catch (err) {
|
|
1452
1693
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1475,7 +1716,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1475
1716
|
a.getSslProducts(null, (data, error) => {
|
|
1476
1717
|
try {
|
|
1477
1718
|
const displayE = 'authKey is required';
|
|
1478
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1719
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getSslProducts', displayE);
|
|
1479
1720
|
done();
|
|
1480
1721
|
} catch (err) {
|
|
1481
1722
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1504,7 +1745,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1504
1745
|
a.getSslProduct(null, null, (data, error) => {
|
|
1505
1746
|
try {
|
|
1506
1747
|
const displayE = 'authKey is required';
|
|
1507
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1748
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getSslProduct', displayE);
|
|
1508
1749
|
done();
|
|
1509
1750
|
} catch (err) {
|
|
1510
1751
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1521,7 +1762,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1521
1762
|
a.getSslProduct('fakeparam', null, (data, error) => {
|
|
1522
1763
|
try {
|
|
1523
1764
|
const displayE = 'productId is required';
|
|
1524
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1765
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getSslProduct', displayE);
|
|
1525
1766
|
done();
|
|
1526
1767
|
} catch (err) {
|
|
1527
1768
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1550,7 +1791,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1550
1791
|
a.decodeCSR(null, (data, error) => {
|
|
1551
1792
|
try {
|
|
1552
1793
|
const displayE = 'csr is required';
|
|
1553
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1794
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-decodeCSR', displayE);
|
|
1554
1795
|
done();
|
|
1555
1796
|
} catch (err) {
|
|
1556
1797
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1579,7 +1820,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1579
1820
|
a.generateCSR(null, null, null, null, null, null, null, (data, error) => {
|
|
1580
1821
|
try {
|
|
1581
1822
|
const displayE = 'csrCommonname is required';
|
|
1582
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1823
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1583
1824
|
done();
|
|
1584
1825
|
} catch (err) {
|
|
1585
1826
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1596,7 +1837,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1596
1837
|
a.generateCSR('fakeparam', null, null, null, null, null, null, (data, error) => {
|
|
1597
1838
|
try {
|
|
1598
1839
|
const displayE = 'csrOrganization is required';
|
|
1599
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1840
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1600
1841
|
done();
|
|
1601
1842
|
} catch (err) {
|
|
1602
1843
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1613,7 +1854,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1613
1854
|
a.generateCSR('fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
|
|
1614
1855
|
try {
|
|
1615
1856
|
const displayE = 'csrDepartment is required';
|
|
1616
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1857
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1617
1858
|
done();
|
|
1618
1859
|
} catch (err) {
|
|
1619
1860
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1630,7 +1871,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1630
1871
|
a.generateCSR('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, (data, error) => {
|
|
1631
1872
|
try {
|
|
1632
1873
|
const displayE = 'csrCity is required';
|
|
1633
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1874
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1634
1875
|
done();
|
|
1635
1876
|
} catch (err) {
|
|
1636
1877
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1647,7 +1888,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1647
1888
|
a.generateCSR('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
1648
1889
|
try {
|
|
1649
1890
|
const displayE = 'csrState is required';
|
|
1650
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1891
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1651
1892
|
done();
|
|
1652
1893
|
} catch (err) {
|
|
1653
1894
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1664,7 +1905,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1664
1905
|
a.generateCSR('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
1665
1906
|
try {
|
|
1666
1907
|
const displayE = 'csrCountry is required';
|
|
1667
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1908
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1668
1909
|
done();
|
|
1669
1910
|
} catch (err) {
|
|
1670
1911
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1681,7 +1922,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1681
1922
|
a.generateCSR('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
1682
1923
|
try {
|
|
1683
1924
|
const displayE = 'csrEmail is required';
|
|
1684
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1925
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-generateCSR', displayE);
|
|
1685
1926
|
done();
|
|
1686
1927
|
} catch (err) {
|
|
1687
1928
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1710,7 +1951,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1710
1951
|
a.validateCSR(null, (data, error) => {
|
|
1711
1952
|
try {
|
|
1712
1953
|
const displayE = 'csr is required';
|
|
1713
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1954
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-validateCSR', displayE);
|
|
1714
1955
|
done();
|
|
1715
1956
|
} catch (err) {
|
|
1716
1957
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1739,7 +1980,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1739
1980
|
a.getDomainAlternative(null, null, (data, error) => {
|
|
1740
1981
|
try {
|
|
1741
1982
|
const displayE = 'authKey is required';
|
|
1742
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
1983
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getDomainAlternative', displayE);
|
|
1743
1984
|
done();
|
|
1744
1985
|
} catch (err) {
|
|
1745
1986
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1756,7 +1997,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1756
1997
|
a.getDomainAlternative('fakeparam', null, (data, error) => {
|
|
1757
1998
|
try {
|
|
1758
1999
|
const displayE = 'csr is required';
|
|
1759
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2000
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getDomainAlternative', displayE);
|
|
1760
2001
|
done();
|
|
1761
2002
|
} catch (err) {
|
|
1762
2003
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1785,7 +2026,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1785
2026
|
a.getDomainEmails(null, null, (data, error) => {
|
|
1786
2027
|
try {
|
|
1787
2028
|
const displayE = 'authKey is required';
|
|
1788
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2029
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getDomainEmails', displayE);
|
|
1789
2030
|
done();
|
|
1790
2031
|
} catch (err) {
|
|
1791
2032
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1802,7 +2043,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1802
2043
|
a.getDomainEmails('fakeparam', null, (data, error) => {
|
|
1803
2044
|
try {
|
|
1804
2045
|
const displayE = 'domain is required';
|
|
1805
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2046
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getDomainEmails', displayE);
|
|
1806
2047
|
done();
|
|
1807
2048
|
} catch (err) {
|
|
1808
2049
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1831,7 +2072,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1831
2072
|
a.getDomainEmailsForGeotrust(null, null, (data, error) => {
|
|
1832
2073
|
try {
|
|
1833
2074
|
const displayE = 'authKey is required';
|
|
1834
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2075
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getDomainEmailsForGeotrust', displayE);
|
|
1835
2076
|
done();
|
|
1836
2077
|
} catch (err) {
|
|
1837
2078
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1848,7 +2089,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1848
2089
|
a.getDomainEmailsForGeotrust('fakeparam', null, (data, error) => {
|
|
1849
2090
|
try {
|
|
1850
2091
|
const displayE = 'domain is required';
|
|
1851
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2092
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getDomainEmailsForGeotrust', displayE);
|
|
1852
2093
|
done();
|
|
1853
2094
|
} catch (err) {
|
|
1854
2095
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1877,7 +2118,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1877
2118
|
a.domainGetFromWhois(null, null, (data, error) => {
|
|
1878
2119
|
try {
|
|
1879
2120
|
const displayE = 'authKey is required';
|
|
1880
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2121
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-domainGetFromWhois', displayE);
|
|
1881
2122
|
done();
|
|
1882
2123
|
} catch (err) {
|
|
1883
2124
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1894,7 +2135,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1894
2135
|
a.domainGetFromWhois('fakeparam', null, (data, error) => {
|
|
1895
2136
|
try {
|
|
1896
2137
|
const displayE = 'domain is required';
|
|
1897
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2138
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-domainGetFromWhois', displayE);
|
|
1898
2139
|
done();
|
|
1899
2140
|
} catch (err) {
|
|
1900
2141
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1923,7 +2164,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1923
2164
|
a.getWebServers(null, null, (data, error) => {
|
|
1924
2165
|
try {
|
|
1925
2166
|
const displayE = 'authKey is required';
|
|
1926
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2167
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getWebServers', displayE);
|
|
1927
2168
|
done();
|
|
1928
2169
|
} catch (err) {
|
|
1929
2170
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1940,7 +2181,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1940
2181
|
a.getWebServers('fakeparam', null, (data, error) => {
|
|
1941
2182
|
try {
|
|
1942
2183
|
const displayE = 'supplierId is required';
|
|
1943
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2184
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getWebServers', displayE);
|
|
1944
2185
|
done();
|
|
1945
2186
|
} catch (err) {
|
|
1946
2187
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1969,7 +2210,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1969
2210
|
a.getAccountDetails(null, (data, error) => {
|
|
1970
2211
|
try {
|
|
1971
2212
|
const displayE = 'authKey is required';
|
|
1972
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2213
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAccountDetails', displayE);
|
|
1973
2214
|
done();
|
|
1974
2215
|
} catch (err) {
|
|
1975
2216
|
log.error(`Test Failure: ${err}`);
|
|
@@ -1998,7 +2239,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
1998
2239
|
a.getAccountBalance(null, (data, error) => {
|
|
1999
2240
|
try {
|
|
2000
2241
|
const displayE = 'authKey is required';
|
|
2001
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2242
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAccountBalance', displayE);
|
|
2002
2243
|
done();
|
|
2003
2244
|
} catch (err) {
|
|
2004
2245
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2027,7 +2268,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2027
2268
|
a.createNewLEI(null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2028
2269
|
try {
|
|
2029
2270
|
const displayE = 'authKey is required';
|
|
2030
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2271
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2031
2272
|
done();
|
|
2032
2273
|
} catch (err) {
|
|
2033
2274
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2044,7 +2285,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2044
2285
|
a.createNewLEI('fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2045
2286
|
try {
|
|
2046
2287
|
const displayE = 'test is required';
|
|
2047
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2288
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2048
2289
|
done();
|
|
2049
2290
|
} catch (err) {
|
|
2050
2291
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2061,7 +2302,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2061
2302
|
a.createNewLEI('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2062
2303
|
try {
|
|
2063
2304
|
const displayE = 'productId is required';
|
|
2064
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2305
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2065
2306
|
done();
|
|
2066
2307
|
} catch (err) {
|
|
2067
2308
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2078,7 +2319,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2078
2319
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2079
2320
|
try {
|
|
2080
2321
|
const displayE = 'legalName is required';
|
|
2081
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2322
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2082
2323
|
done();
|
|
2083
2324
|
} catch (err) {
|
|
2084
2325
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2095,7 +2336,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2095
2336
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2096
2337
|
try {
|
|
2097
2338
|
const displayE = 'lastName is required';
|
|
2098
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2339
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2099
2340
|
done();
|
|
2100
2341
|
} catch (err) {
|
|
2101
2342
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2112,7 +2353,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2112
2353
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
|
|
2113
2354
|
try {
|
|
2114
2355
|
const displayE = 'isLevel2DataAvailable is required';
|
|
2115
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2356
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2116
2357
|
done();
|
|
2117
2358
|
} catch (err) {
|
|
2118
2359
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2129,7 +2370,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2129
2370
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
|
|
2130
2371
|
try {
|
|
2131
2372
|
const displayE = 'incorporationDate is required';
|
|
2132
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2373
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2133
2374
|
done();
|
|
2134
2375
|
} catch (err) {
|
|
2135
2376
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2146,7 +2387,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2146
2387
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, (data, error) => {
|
|
2147
2388
|
try {
|
|
2148
2389
|
const displayE = 'legalState is required';
|
|
2149
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2390
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2150
2391
|
done();
|
|
2151
2392
|
} catch (err) {
|
|
2152
2393
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2163,7 +2404,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2163
2404
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
|
|
2164
2405
|
try {
|
|
2165
2406
|
const displayE = 'legalPostal is required';
|
|
2166
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2407
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2167
2408
|
done();
|
|
2168
2409
|
} catch (err) {
|
|
2169
2410
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2180,7 +2421,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2180
2421
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, (data, error) => {
|
|
2181
2422
|
try {
|
|
2182
2423
|
const displayE = 'legalfirstAddressLine is required';
|
|
2183
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2424
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2184
2425
|
done();
|
|
2185
2426
|
} catch (err) {
|
|
2186
2427
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2197,7 +2438,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2197
2438
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
2198
2439
|
try {
|
|
2199
2440
|
const displayE = 'legalCountry is required';
|
|
2200
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2441
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2201
2442
|
done();
|
|
2202
2443
|
} catch (err) {
|
|
2203
2444
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2214,7 +2455,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2214
2455
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
2215
2456
|
try {
|
|
2216
2457
|
const displayE = 'legalCity is required';
|
|
2217
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2458
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2218
2459
|
done();
|
|
2219
2460
|
} catch (err) {
|
|
2220
2461
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2231,7 +2472,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2231
2472
|
a.createNewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
2232
2473
|
try {
|
|
2233
2474
|
const displayE = 'multiYearSupport is required';
|
|
2234
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2475
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-createNewLEI', displayE);
|
|
2235
2476
|
done();
|
|
2236
2477
|
} catch (err) {
|
|
2237
2478
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2260,7 +2501,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2260
2501
|
a.getLEIJurisdictions(null, (data, error) => {
|
|
2261
2502
|
try {
|
|
2262
2503
|
const displayE = 'authKey is required';
|
|
2263
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2504
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getLEIJurisdictions', displayE);
|
|
2264
2505
|
done();
|
|
2265
2506
|
} catch (err) {
|
|
2266
2507
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2289,7 +2530,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2289
2530
|
a.confirmLEIDataQuality(null, null, null, (data, error) => {
|
|
2290
2531
|
try {
|
|
2291
2532
|
const displayE = 'authKey is required';
|
|
2292
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2533
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-confirmLEIDataQuality', displayE);
|
|
2293
2534
|
done();
|
|
2294
2535
|
} catch (err) {
|
|
2295
2536
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2306,7 +2547,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2306
2547
|
a.confirmLEIDataQuality('fakeparam', null, null, (data, error) => {
|
|
2307
2548
|
try {
|
|
2308
2549
|
const displayE = 'orderId is required';
|
|
2309
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2550
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-confirmLEIDataQuality', displayE);
|
|
2310
2551
|
done();
|
|
2311
2552
|
} catch (err) {
|
|
2312
2553
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2323,7 +2564,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2323
2564
|
a.confirmLEIDataQuality('fakeparam', 'fakeparam', null, (data, error) => {
|
|
2324
2565
|
try {
|
|
2325
2566
|
const displayE = 'confirm is required';
|
|
2326
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2567
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-confirmLEIDataQuality', displayE);
|
|
2327
2568
|
done();
|
|
2328
2569
|
} catch (err) {
|
|
2329
2570
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2352,7 +2593,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2352
2593
|
a.getLeiStatus(null, null, (data, error) => {
|
|
2353
2594
|
try {
|
|
2354
2595
|
const displayE = 'authKey is required';
|
|
2355
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2596
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getLeiStatus', displayE);
|
|
2356
2597
|
done();
|
|
2357
2598
|
} catch (err) {
|
|
2358
2599
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2369,7 +2610,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2369
2610
|
a.getLeiStatus('fakeparam', null, (data, error) => {
|
|
2370
2611
|
try {
|
|
2371
2612
|
const displayE = 'orderId is required';
|
|
2372
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2613
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getLeiStatus', displayE);
|
|
2373
2614
|
done();
|
|
2374
2615
|
} catch (err) {
|
|
2375
2616
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2398,7 +2639,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2398
2639
|
a.renewLEI(null, null, null, null, null, (data, error) => {
|
|
2399
2640
|
try {
|
|
2400
2641
|
const displayE = 'authKey is required';
|
|
2401
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2642
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-renewLEI', displayE);
|
|
2402
2643
|
done();
|
|
2403
2644
|
} catch (err) {
|
|
2404
2645
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2415,7 +2656,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2415
2656
|
a.renewLEI('fakeparam', null, null, null, null, (data, error) => {
|
|
2416
2657
|
try {
|
|
2417
2658
|
const displayE = 'orderId is required';
|
|
2418
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2659
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-renewLEI', displayE);
|
|
2419
2660
|
done();
|
|
2420
2661
|
} catch (err) {
|
|
2421
2662
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2432,7 +2673,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2432
2673
|
a.renewLEI('fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
2433
2674
|
try {
|
|
2434
2675
|
const displayE = 'isLevel1DataSame is required';
|
|
2435
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2676
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-renewLEI', displayE);
|
|
2436
2677
|
done();
|
|
2437
2678
|
} catch (err) {
|
|
2438
2679
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2449,7 +2690,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2449
2690
|
a.renewLEI('fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
2450
2691
|
try {
|
|
2451
2692
|
const displayE = 'firstName is required';
|
|
2452
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2693
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-renewLEI', displayE);
|
|
2453
2694
|
done();
|
|
2454
2695
|
} catch (err) {
|
|
2455
2696
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2466,7 +2707,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2466
2707
|
a.renewLEI('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
2467
2708
|
try {
|
|
2468
2709
|
const displayE = 'lastName is required';
|
|
2469
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2710
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-renewLEI', displayE);
|
|
2470
2711
|
done();
|
|
2471
2712
|
} catch (err) {
|
|
2472
2713
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2495,7 +2736,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2495
2736
|
a.leiLoolup(null, null, (data, error) => {
|
|
2496
2737
|
try {
|
|
2497
2738
|
const displayE = 'authKey is required';
|
|
2498
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2739
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-leiLoolup', displayE);
|
|
2499
2740
|
done();
|
|
2500
2741
|
} catch (err) {
|
|
2501
2742
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2512,7 +2753,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2512
2753
|
a.leiLoolup('fakeparam', null, (data, error) => {
|
|
2513
2754
|
try {
|
|
2514
2755
|
const displayE = 'query is required';
|
|
2515
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2756
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-leiLoolup', displayE);
|
|
2516
2757
|
done();
|
|
2517
2758
|
} catch (err) {
|
|
2518
2759
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2541,7 +2782,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2541
2782
|
a.addSSLOrder(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2542
2783
|
try {
|
|
2543
2784
|
const displayE = 'authKey is required';
|
|
2544
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2785
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2545
2786
|
done();
|
|
2546
2787
|
} catch (err) {
|
|
2547
2788
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2558,7 +2799,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2558
2799
|
a.addSSLOrder('fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2559
2800
|
try {
|
|
2560
2801
|
const displayE = 'productId is required';
|
|
2561
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2802
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2562
2803
|
done();
|
|
2563
2804
|
} catch (err) {
|
|
2564
2805
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2575,7 +2816,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2575
2816
|
a.addSSLOrder('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2576
2817
|
try {
|
|
2577
2818
|
const displayE = 'csr is required';
|
|
2578
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2819
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2579
2820
|
done();
|
|
2580
2821
|
} catch (err) {
|
|
2581
2822
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2592,7 +2833,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2592
2833
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2593
2834
|
try {
|
|
2594
2835
|
const displayE = 'serverCount is required';
|
|
2595
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2836
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2596
2837
|
done();
|
|
2597
2838
|
} catch (err) {
|
|
2598
2839
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2609,7 +2850,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2609
2850
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2610
2851
|
try {
|
|
2611
2852
|
const displayE = 'period is required';
|
|
2612
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2853
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2613
2854
|
done();
|
|
2614
2855
|
} catch (err) {
|
|
2615
2856
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2626,7 +2867,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2626
2867
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2627
2868
|
try {
|
|
2628
2869
|
const displayE = 'webserverType is required';
|
|
2629
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2870
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2630
2871
|
done();
|
|
2631
2872
|
} catch (err) {
|
|
2632
2873
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2643,7 +2884,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2643
2884
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2644
2885
|
try {
|
|
2645
2886
|
const displayE = 'adminFirstname is required';
|
|
2646
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2887
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2647
2888
|
done();
|
|
2648
2889
|
} catch (err) {
|
|
2649
2890
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2660,7 +2901,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2660
2901
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2661
2902
|
try {
|
|
2662
2903
|
const displayE = 'adminLastname is required';
|
|
2663
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2904
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2664
2905
|
done();
|
|
2665
2906
|
} catch (err) {
|
|
2666
2907
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2677,7 +2918,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2677
2918
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2678
2919
|
try {
|
|
2679
2920
|
const displayE = 'adminPhone is required';
|
|
2680
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2921
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2681
2922
|
done();
|
|
2682
2923
|
} catch (err) {
|
|
2683
2924
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2694,7 +2935,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2694
2935
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2695
2936
|
try {
|
|
2696
2937
|
const displayE = 'adminTitle is required';
|
|
2697
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2938
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2698
2939
|
done();
|
|
2699
2940
|
} catch (err) {
|
|
2700
2941
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2711,7 +2952,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2711
2952
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2712
2953
|
try {
|
|
2713
2954
|
const displayE = 'adminEmail is required';
|
|
2714
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2955
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2715
2956
|
done();
|
|
2716
2957
|
} catch (err) {
|
|
2717
2958
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2728,7 +2969,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2728
2969
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2729
2970
|
try {
|
|
2730
2971
|
const displayE = 'adminCity is required';
|
|
2731
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2972
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2732
2973
|
done();
|
|
2733
2974
|
} catch (err) {
|
|
2734
2975
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2745,7 +2986,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2745
2986
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2746
2987
|
try {
|
|
2747
2988
|
const displayE = 'adminCountry is required';
|
|
2748
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
2989
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2749
2990
|
done();
|
|
2750
2991
|
} catch (err) {
|
|
2751
2992
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2762,7 +3003,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2762
3003
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2763
3004
|
try {
|
|
2764
3005
|
const displayE = 'adminPostalcode is required';
|
|
2765
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3006
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2766
3007
|
done();
|
|
2767
3008
|
} catch (err) {
|
|
2768
3009
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2779,7 +3020,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2779
3020
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
|
|
2780
3021
|
try {
|
|
2781
3022
|
const displayE = 'dcvMethod is required';
|
|
2782
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3023
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2783
3024
|
done();
|
|
2784
3025
|
} catch (err) {
|
|
2785
3026
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2796,7 +3037,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2796
3037
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
|
|
2797
3038
|
try {
|
|
2798
3039
|
const displayE = 'techFirstname is required';
|
|
2799
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3040
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2800
3041
|
done();
|
|
2801
3042
|
} catch (err) {
|
|
2802
3043
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2813,7 +3054,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2813
3054
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, (data, error) => {
|
|
2814
3055
|
try {
|
|
2815
3056
|
const displayE = 'techLastname is required';
|
|
2816
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3057
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2817
3058
|
done();
|
|
2818
3059
|
} catch (err) {
|
|
2819
3060
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2830,7 +3071,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2830
3071
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
|
|
2831
3072
|
try {
|
|
2832
3073
|
const displayE = 'techPhone is required';
|
|
2833
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3074
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2834
3075
|
done();
|
|
2835
3076
|
} catch (err) {
|
|
2836
3077
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2847,7 +3088,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2847
3088
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, (data, error) => {
|
|
2848
3089
|
try {
|
|
2849
3090
|
const displayE = 'techTitle is required';
|
|
2850
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3091
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2851
3092
|
done();
|
|
2852
3093
|
} catch (err) {
|
|
2853
3094
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2864,7 +3105,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2864
3105
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
2865
3106
|
try {
|
|
2866
3107
|
const displayE = 'techEmail is required';
|
|
2867
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3108
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2868
3109
|
done();
|
|
2869
3110
|
} catch (err) {
|
|
2870
3111
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2881,7 +3122,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2881
3122
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
2882
3123
|
try {
|
|
2883
3124
|
const displayE = 'techAddressline1 is required';
|
|
2884
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3125
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2885
3126
|
done();
|
|
2886
3127
|
} catch (err) {
|
|
2887
3128
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2898,7 +3139,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2898
3139
|
a.addSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
2899
3140
|
try {
|
|
2900
3141
|
const displayE = 'adminAddressline1 is required';
|
|
2901
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3142
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLOrder', displayE);
|
|
2902
3143
|
done();
|
|
2903
3144
|
} catch (err) {
|
|
2904
3145
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2927,7 +3168,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2927
3168
|
a.reissueSSLOrder(null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2928
3169
|
try {
|
|
2929
3170
|
const displayE = 'authKey is required';
|
|
2930
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3171
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
2931
3172
|
done();
|
|
2932
3173
|
} catch (err) {
|
|
2933
3174
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2944,7 +3185,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2944
3185
|
a.reissueSSLOrder('fakeparam', null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
2945
3186
|
try {
|
|
2946
3187
|
const displayE = 'orderId is required';
|
|
2947
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3188
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
2948
3189
|
done();
|
|
2949
3190
|
} catch (err) {
|
|
2950
3191
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2961,7 +3202,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2961
3202
|
a.reissueSSLOrder('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
|
|
2962
3203
|
try {
|
|
2963
3204
|
const displayE = 'webserverType is required';
|
|
2964
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3205
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
2965
3206
|
done();
|
|
2966
3207
|
} catch (err) {
|
|
2967
3208
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2978,7 +3219,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2978
3219
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
|
|
2979
3220
|
try {
|
|
2980
3221
|
const displayE = 'csr is required';
|
|
2981
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3222
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
2982
3223
|
done();
|
|
2983
3224
|
} catch (err) {
|
|
2984
3225
|
log.error(`Test Failure: ${err}`);
|
|
@@ -2995,7 +3236,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
2995
3236
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, (data, error) => {
|
|
2996
3237
|
try {
|
|
2997
3238
|
const displayE = 'dcvMethod is required';
|
|
2998
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3239
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
2999
3240
|
done();
|
|
3000
3241
|
} catch (err) {
|
|
3001
3242
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3012,7 +3253,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3012
3253
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
|
|
3013
3254
|
try {
|
|
3014
3255
|
const displayE = 'dnsNames is required';
|
|
3015
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3256
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
3016
3257
|
done();
|
|
3017
3258
|
} catch (err) {
|
|
3018
3259
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3029,7 +3270,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3029
3270
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, (data, error) => {
|
|
3030
3271
|
try {
|
|
3031
3272
|
const displayE = 'approverEmails is required';
|
|
3032
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3273
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
3033
3274
|
done();
|
|
3034
3275
|
} catch (err) {
|
|
3035
3276
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3046,7 +3287,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3046
3287
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
3047
3288
|
try {
|
|
3048
3289
|
const displayE = 'approverEmail is required';
|
|
3049
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3290
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
3050
3291
|
done();
|
|
3051
3292
|
} catch (err) {
|
|
3052
3293
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3063,7 +3304,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3063
3304
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
3064
3305
|
try {
|
|
3065
3306
|
const displayE = 'signatureHash is required';
|
|
3066
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3307
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
3067
3308
|
done();
|
|
3068
3309
|
} catch (err) {
|
|
3069
3310
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3080,7 +3321,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3080
3321
|
a.reissueSSLOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
3081
3322
|
try {
|
|
3082
3323
|
const displayE = 'uniqueCode is required';
|
|
3083
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3324
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-reissueSSLOrder', displayE);
|
|
3084
3325
|
done();
|
|
3085
3326
|
} catch (err) {
|
|
3086
3327
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3109,7 +3350,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3109
3350
|
a.addSSLRenewOrder(null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3110
3351
|
try {
|
|
3111
3352
|
const displayE = 'authKey is required';
|
|
3112
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3353
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3113
3354
|
done();
|
|
3114
3355
|
} catch (err) {
|
|
3115
3356
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3126,7 +3367,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3126
3367
|
a.addSSLRenewOrder('fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3127
3368
|
try {
|
|
3128
3369
|
const displayE = 'productId is required';
|
|
3129
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3370
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3130
3371
|
done();
|
|
3131
3372
|
} catch (err) {
|
|
3132
3373
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3143,7 +3384,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3143
3384
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3144
3385
|
try {
|
|
3145
3386
|
const displayE = 'csr is required';
|
|
3146
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3387
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3147
3388
|
done();
|
|
3148
3389
|
} catch (err) {
|
|
3149
3390
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3160,7 +3401,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3160
3401
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3161
3402
|
try {
|
|
3162
3403
|
const displayE = 'serverCount is required';
|
|
3163
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3404
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3164
3405
|
done();
|
|
3165
3406
|
} catch (err) {
|
|
3166
3407
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3177,7 +3418,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3177
3418
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3178
3419
|
try {
|
|
3179
3420
|
const displayE = 'period is required';
|
|
3180
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3421
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3181
3422
|
done();
|
|
3182
3423
|
} catch (err) {
|
|
3183
3424
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3194,7 +3435,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3194
3435
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3195
3436
|
try {
|
|
3196
3437
|
const displayE = 'approverEmail is required';
|
|
3197
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3438
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3198
3439
|
done();
|
|
3199
3440
|
} catch (err) {
|
|
3200
3441
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3211,7 +3452,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3211
3452
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3212
3453
|
try {
|
|
3213
3454
|
const displayE = 'webserverType is required';
|
|
3214
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3455
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3215
3456
|
done();
|
|
3216
3457
|
} catch (err) {
|
|
3217
3458
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3228,7 +3469,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3228
3469
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3229
3470
|
try {
|
|
3230
3471
|
const displayE = 'adminFirstname is required';
|
|
3231
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3472
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3232
3473
|
done();
|
|
3233
3474
|
} catch (err) {
|
|
3234
3475
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3245,7 +3486,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3245
3486
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3246
3487
|
try {
|
|
3247
3488
|
const displayE = 'adminLastname is required';
|
|
3248
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3489
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3249
3490
|
done();
|
|
3250
3491
|
} catch (err) {
|
|
3251
3492
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3262,7 +3503,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3262
3503
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3263
3504
|
try {
|
|
3264
3505
|
const displayE = 'adminPhone is required';
|
|
3265
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3506
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3266
3507
|
done();
|
|
3267
3508
|
} catch (err) {
|
|
3268
3509
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3279,7 +3520,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3279
3520
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3280
3521
|
try {
|
|
3281
3522
|
const displayE = 'adminTitle is required';
|
|
3282
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3523
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3283
3524
|
done();
|
|
3284
3525
|
} catch (err) {
|
|
3285
3526
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3296,7 +3537,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3296
3537
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3297
3538
|
try {
|
|
3298
3539
|
const displayE = 'adminEmail is required';
|
|
3299
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3540
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3300
3541
|
done();
|
|
3301
3542
|
} catch (err) {
|
|
3302
3543
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3313,7 +3554,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3313
3554
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3314
3555
|
try {
|
|
3315
3556
|
const displayE = 'adminCity is required';
|
|
3316
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3557
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3317
3558
|
done();
|
|
3318
3559
|
} catch (err) {
|
|
3319
3560
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3330,7 +3571,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3330
3571
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3331
3572
|
try {
|
|
3332
3573
|
const displayE = 'adminCountry is required';
|
|
3333
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3574
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3334
3575
|
done();
|
|
3335
3576
|
} catch (err) {
|
|
3336
3577
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3347,7 +3588,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3347
3588
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3348
3589
|
try {
|
|
3349
3590
|
const displayE = 'adminOrganization is required';
|
|
3350
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3591
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3351
3592
|
done();
|
|
3352
3593
|
} catch (err) {
|
|
3353
3594
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3364,7 +3605,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3364
3605
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3365
3606
|
try {
|
|
3366
3607
|
const displayE = 'dcvMethod is required';
|
|
3367
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3608
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3368
3609
|
done();
|
|
3369
3610
|
} catch (err) {
|
|
3370
3611
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3381,7 +3622,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3381
3622
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3382
3623
|
try {
|
|
3383
3624
|
const displayE = 'techFirstname is required';
|
|
3384
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3625
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3385
3626
|
done();
|
|
3386
3627
|
} catch (err) {
|
|
3387
3628
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3398,7 +3639,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3398
3639
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3399
3640
|
try {
|
|
3400
3641
|
const displayE = 'techLastname is required';
|
|
3401
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3642
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3402
3643
|
done();
|
|
3403
3644
|
} catch (err) {
|
|
3404
3645
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3415,7 +3656,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3415
3656
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3416
3657
|
try {
|
|
3417
3658
|
const displayE = 'techPhone is required';
|
|
3418
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3659
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3419
3660
|
done();
|
|
3420
3661
|
} catch (err) {
|
|
3421
3662
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3432,7 +3673,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3432
3673
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3433
3674
|
try {
|
|
3434
3675
|
const displayE = 'techTitle is required';
|
|
3435
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3676
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3436
3677
|
done();
|
|
3437
3678
|
} catch (err) {
|
|
3438
3679
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3449,7 +3690,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3449
3690
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3450
3691
|
try {
|
|
3451
3692
|
const displayE = 'techEmail is required';
|
|
3452
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3693
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3453
3694
|
done();
|
|
3454
3695
|
} catch (err) {
|
|
3455
3696
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3466,7 +3707,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3466
3707
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3467
3708
|
try {
|
|
3468
3709
|
const displayE = 'techAddressline1 is required';
|
|
3469
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3710
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3470
3711
|
done();
|
|
3471
3712
|
} catch (err) {
|
|
3472
3713
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3483,7 +3724,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3483
3724
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3484
3725
|
try {
|
|
3485
3726
|
const displayE = 'adminAddressline1 is required';
|
|
3486
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3727
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3487
3728
|
done();
|
|
3488
3729
|
} catch (err) {
|
|
3489
3730
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3500,7 +3741,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3500
3741
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3501
3742
|
try {
|
|
3502
3743
|
const displayE = 'techOrganization is required';
|
|
3503
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3744
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3504
3745
|
done();
|
|
3505
3746
|
} catch (err) {
|
|
3506
3747
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3517,7 +3758,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3517
3758
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3518
3759
|
try {
|
|
3519
3760
|
const displayE = 'techCity is required';
|
|
3520
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3761
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3521
3762
|
done();
|
|
3522
3763
|
} catch (err) {
|
|
3523
3764
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3534,7 +3775,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3534
3775
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3535
3776
|
try {
|
|
3536
3777
|
const displayE = 'techCountry is required';
|
|
3537
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3778
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3538
3779
|
done();
|
|
3539
3780
|
} catch (err) {
|
|
3540
3781
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3551,7 +3792,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3551
3792
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3552
3793
|
try {
|
|
3553
3794
|
const displayE = 'orgDivision is required';
|
|
3554
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3795
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3555
3796
|
done();
|
|
3556
3797
|
} catch (err) {
|
|
3557
3798
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3568,7 +3809,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3568
3809
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3569
3810
|
try {
|
|
3570
3811
|
const displayE = 'orgAddressline1 is required';
|
|
3571
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3812
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3572
3813
|
done();
|
|
3573
3814
|
} catch (err) {
|
|
3574
3815
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3585,7 +3826,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3585
3826
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, null, (data, error) => {
|
|
3586
3827
|
try {
|
|
3587
3828
|
const displayE = 'orgCity is required';
|
|
3588
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3829
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3589
3830
|
done();
|
|
3590
3831
|
} catch (err) {
|
|
3591
3832
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3602,7 +3843,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3602
3843
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, null, (data, error) => {
|
|
3603
3844
|
try {
|
|
3604
3845
|
const displayE = 'orgCountry is required';
|
|
3605
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3846
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3606
3847
|
done();
|
|
3607
3848
|
} catch (err) {
|
|
3608
3849
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3619,7 +3860,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3619
3860
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, null, (data, error) => {
|
|
3620
3861
|
try {
|
|
3621
3862
|
const displayE = 'orgPhone is required';
|
|
3622
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3863
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3623
3864
|
done();
|
|
3624
3865
|
} catch (err) {
|
|
3625
3866
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3636,7 +3877,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3636
3877
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, null, (data, error) => {
|
|
3637
3878
|
try {
|
|
3638
3879
|
const displayE = 'orgPostalcode is required';
|
|
3639
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3880
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3640
3881
|
done();
|
|
3641
3882
|
} catch (err) {
|
|
3642
3883
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3653,7 +3894,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3653
3894
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, null, (data, error) => {
|
|
3654
3895
|
try {
|
|
3655
3896
|
const displayE = 'orgRegion is required';
|
|
3656
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3897
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3657
3898
|
done();
|
|
3658
3899
|
} catch (err) {
|
|
3659
3900
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3670,7 +3911,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3670
3911
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, null, (data, error) => {
|
|
3671
3912
|
try {
|
|
3672
3913
|
const displayE = 'approverEmails is required';
|
|
3673
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3914
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3674
3915
|
done();
|
|
3675
3916
|
} catch (err) {
|
|
3676
3917
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3687,7 +3928,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3687
3928
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
3688
3929
|
try {
|
|
3689
3930
|
const displayE = 'dnsNames is required';
|
|
3690
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3931
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3691
3932
|
done();
|
|
3692
3933
|
} catch (err) {
|
|
3693
3934
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3704,7 +3945,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3704
3945
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
3705
3946
|
try {
|
|
3706
3947
|
const displayE = 'signatureHash is required';
|
|
3707
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3948
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3708
3949
|
done();
|
|
3709
3950
|
} catch (err) {
|
|
3710
3951
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3721,7 +3962,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3721
3962
|
a.addSSLRenewOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
3722
3963
|
try {
|
|
3723
3964
|
const displayE = 'test is required';
|
|
3724
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3965
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLRenewOrder', displayE);
|
|
3725
3966
|
done();
|
|
3726
3967
|
} catch (err) {
|
|
3727
3968
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3750,7 +3991,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3750
3991
|
a.addSSLSANOrder(null, null, null, null, null, (data, error) => {
|
|
3751
3992
|
try {
|
|
3752
3993
|
const displayE = 'authKey is required';
|
|
3753
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
3994
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLSANOrder', displayE);
|
|
3754
3995
|
done();
|
|
3755
3996
|
} catch (err) {
|
|
3756
3997
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3767,7 +4008,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3767
4008
|
a.addSSLSANOrder('fakeparam', null, null, null, null, (data, error) => {
|
|
3768
4009
|
try {
|
|
3769
4010
|
const displayE = 'orderId is required';
|
|
3770
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4011
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLSANOrder', displayE);
|
|
3771
4012
|
done();
|
|
3772
4013
|
} catch (err) {
|
|
3773
4014
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3784,7 +4025,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3784
4025
|
a.addSSLSANOrder('fakeparam', 'fakeparam', null, null, null, (data, error) => {
|
|
3785
4026
|
try {
|
|
3786
4027
|
const displayE = 'count is required';
|
|
3787
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4028
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLSANOrder', displayE);
|
|
3788
4029
|
done();
|
|
3789
4030
|
} catch (err) {
|
|
3790
4031
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3801,7 +4042,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3801
4042
|
a.addSSLSANOrder('fakeparam', 'fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
3802
4043
|
try {
|
|
3803
4044
|
const displayE = 'wildcardSanCount is required';
|
|
3804
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4045
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLSANOrder', displayE);
|
|
3805
4046
|
done();
|
|
3806
4047
|
} catch (err) {
|
|
3807
4048
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3818,7 +4059,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3818
4059
|
a.addSSLSANOrder('fakeparam', 'fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
3819
4060
|
try {
|
|
3820
4061
|
const displayE = 'singleSanCount is required';
|
|
3821
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4062
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-addSSLSANOrder', displayE);
|
|
3822
4063
|
done();
|
|
3823
4064
|
} catch (err) {
|
|
3824
4065
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3847,7 +4088,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3847
4088
|
a.cancelOrder(null, null, null, (data, error) => {
|
|
3848
4089
|
try {
|
|
3849
4090
|
const displayE = 'authKey is required';
|
|
3850
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4091
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-cancelOrder', displayE);
|
|
3851
4092
|
done();
|
|
3852
4093
|
} catch (err) {
|
|
3853
4094
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3864,7 +4105,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3864
4105
|
a.cancelOrder('fakeparam', null, null, (data, error) => {
|
|
3865
4106
|
try {
|
|
3866
4107
|
const displayE = 'orderId is required';
|
|
3867
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4108
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-cancelOrder', displayE);
|
|
3868
4109
|
done();
|
|
3869
4110
|
} catch (err) {
|
|
3870
4111
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3881,7 +4122,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3881
4122
|
a.cancelOrder('fakeparam', 'fakeparam', null, (data, error) => {
|
|
3882
4123
|
try {
|
|
3883
4124
|
const displayE = 'reason is required';
|
|
3884
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4125
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-cancelOrder', displayE);
|
|
3885
4126
|
done();
|
|
3886
4127
|
} catch (err) {
|
|
3887
4128
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3910,7 +4151,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3910
4151
|
a.getOrdersStatuses(null, null, (data, error) => {
|
|
3911
4152
|
try {
|
|
3912
4153
|
const displayE = 'authKey is required';
|
|
3913
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4154
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getOrdersStatuses', displayE);
|
|
3914
4155
|
done();
|
|
3915
4156
|
} catch (err) {
|
|
3916
4157
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3927,7 +4168,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3927
4168
|
a.getOrdersStatuses('fakeparam', null, (data, error) => {
|
|
3928
4169
|
try {
|
|
3929
4170
|
const displayE = 'cids is required';
|
|
3930
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4171
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getOrdersStatuses', displayE);
|
|
3931
4172
|
done();
|
|
3932
4173
|
} catch (err) {
|
|
3933
4174
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3956,7 +4197,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3956
4197
|
a.getOrderStatus(null, null, (data, error) => {
|
|
3957
4198
|
try {
|
|
3958
4199
|
const displayE = 'authKey is required';
|
|
3959
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4200
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getOrderStatus', displayE);
|
|
3960
4201
|
done();
|
|
3961
4202
|
} catch (err) {
|
|
3962
4203
|
log.error(`Test Failure: ${err}`);
|
|
@@ -3973,7 +4214,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
3973
4214
|
a.getOrderStatus('fakeparam', null, (data, error) => {
|
|
3974
4215
|
try {
|
|
3975
4216
|
const displayE = 'orderId is required';
|
|
3976
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4217
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getOrderStatus', displayE);
|
|
3977
4218
|
done();
|
|
3978
4219
|
} catch (err) {
|
|
3979
4220
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4002,7 +4243,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4002
4243
|
a.recheckCAA(null, null, (data, error) => {
|
|
4003
4244
|
try {
|
|
4004
4245
|
const displayE = 'authKey is required';
|
|
4005
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4246
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-recheckCAA', displayE);
|
|
4006
4247
|
done();
|
|
4007
4248
|
} catch (err) {
|
|
4008
4249
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4019,7 +4260,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4019
4260
|
a.recheckCAA('fakeparam', null, (data, error) => {
|
|
4020
4261
|
try {
|
|
4021
4262
|
const displayE = 'orderId is required';
|
|
4022
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4263
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-recheckCAA', displayE);
|
|
4023
4264
|
done();
|
|
4024
4265
|
} catch (err) {
|
|
4025
4266
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4048,7 +4289,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4048
4289
|
a.getUnpaidOrders(null, (data, error) => {
|
|
4049
4290
|
try {
|
|
4050
4291
|
const displayE = 'authKey is required';
|
|
4051
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4292
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getUnpaidOrders', displayE);
|
|
4052
4293
|
done();
|
|
4053
4294
|
} catch (err) {
|
|
4054
4295
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4077,7 +4318,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4077
4318
|
a.getAllSSLOrders(null, null, null, (data, error) => {
|
|
4078
4319
|
try {
|
|
4079
4320
|
const displayE = 'authKey is required';
|
|
4080
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4321
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAllSSLOrders', displayE);
|
|
4081
4322
|
done();
|
|
4082
4323
|
} catch (err) {
|
|
4083
4324
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4094,7 +4335,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4094
4335
|
a.getAllSSLOrders('fakeparam', null, null, (data, error) => {
|
|
4095
4336
|
try {
|
|
4096
4337
|
const displayE = 'limit is required';
|
|
4097
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4338
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAllSSLOrders', displayE);
|
|
4098
4339
|
done();
|
|
4099
4340
|
} catch (err) {
|
|
4100
4341
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4111,7 +4352,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4111
4352
|
a.getAllSSLOrders('fakeparam', 'fakeparam', null, (data, error) => {
|
|
4112
4353
|
try {
|
|
4113
4354
|
const displayE = 'offset is required';
|
|
4114
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4355
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAllSSLOrders', displayE);
|
|
4115
4356
|
done();
|
|
4116
4357
|
} catch (err) {
|
|
4117
4358
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4140,7 +4381,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4140
4381
|
a.comodoClaimFreeEV(null, null, (data, error) => {
|
|
4141
4382
|
try {
|
|
4142
4383
|
const displayE = 'authKey is required';
|
|
4143
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4384
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-comodoClaimFreeEV', displayE);
|
|
4144
4385
|
done();
|
|
4145
4386
|
} catch (err) {
|
|
4146
4387
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4157,7 +4398,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4157
4398
|
a.comodoClaimFreeEV('fakeparam', null, (data, error) => {
|
|
4158
4399
|
try {
|
|
4159
4400
|
const displayE = 'orderId is required';
|
|
4160
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4401
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-comodoClaimFreeEV', displayE);
|
|
4161
4402
|
done();
|
|
4162
4403
|
} catch (err) {
|
|
4163
4404
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4186,7 +4427,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4186
4427
|
a.getTotalOrders(null, (data, error) => {
|
|
4187
4428
|
try {
|
|
4188
4429
|
const displayE = 'authKey is required';
|
|
4189
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4430
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getTotalOrders', displayE);
|
|
4190
4431
|
done();
|
|
4191
4432
|
} catch (err) {
|
|
4192
4433
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4215,7 +4456,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4215
4456
|
a.changeDomainsValidationMethod(null, null, null, null, (data, error) => {
|
|
4216
4457
|
try {
|
|
4217
4458
|
const displayE = 'authKey is required';
|
|
4218
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4459
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDomainsValidationMethod', displayE);
|
|
4219
4460
|
done();
|
|
4220
4461
|
} catch (err) {
|
|
4221
4462
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4232,7 +4473,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4232
4473
|
a.changeDomainsValidationMethod('fakeparam', null, null, null, (data, error) => {
|
|
4233
4474
|
try {
|
|
4234
4475
|
const displayE = 'orderId is required';
|
|
4235
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4476
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDomainsValidationMethod', displayE);
|
|
4236
4477
|
done();
|
|
4237
4478
|
} catch (err) {
|
|
4238
4479
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4249,7 +4490,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4249
4490
|
a.changeDomainsValidationMethod('fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
4250
4491
|
try {
|
|
4251
4492
|
const displayE = 'newMethods is required';
|
|
4252
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4493
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDomainsValidationMethod', displayE);
|
|
4253
4494
|
done();
|
|
4254
4495
|
} catch (err) {
|
|
4255
4496
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4266,7 +4507,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4266
4507
|
a.changeDomainsValidationMethod('fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
4267
4508
|
try {
|
|
4268
4509
|
const displayE = 'domains is required';
|
|
4269
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4510
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDomainsValidationMethod', displayE);
|
|
4270
4511
|
done();
|
|
4271
4512
|
} catch (err) {
|
|
4272
4513
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4295,7 +4536,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4295
4536
|
a.changeValidationMethod(null, null, null, null, (data, error) => {
|
|
4296
4537
|
try {
|
|
4297
4538
|
const displayE = 'authKey is required';
|
|
4298
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4539
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationMethod', displayE);
|
|
4299
4540
|
done();
|
|
4300
4541
|
} catch (err) {
|
|
4301
4542
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4312,7 +4553,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4312
4553
|
a.changeValidationMethod('fakeparam', null, null, null, (data, error) => {
|
|
4313
4554
|
try {
|
|
4314
4555
|
const displayE = 'orderId is required';
|
|
4315
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4556
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationMethod', displayE);
|
|
4316
4557
|
done();
|
|
4317
4558
|
} catch (err) {
|
|
4318
4559
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4329,7 +4570,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4329
4570
|
a.changeValidationMethod('fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
4330
4571
|
try {
|
|
4331
4572
|
const displayE = 'domain is required';
|
|
4332
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4573
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationMethod', displayE);
|
|
4333
4574
|
done();
|
|
4334
4575
|
} catch (err) {
|
|
4335
4576
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4346,7 +4587,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4346
4587
|
a.changeValidationMethod('fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
4347
4588
|
try {
|
|
4348
4589
|
const displayE = 'newMethod is required';
|
|
4349
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4590
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationMethod', displayE);
|
|
4350
4591
|
done();
|
|
4351
4592
|
} catch (err) {
|
|
4352
4593
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4375,7 +4616,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4375
4616
|
a.changeValidationEmail(null, null, null, (data, error) => {
|
|
4376
4617
|
try {
|
|
4377
4618
|
const displayE = 'authKey is required';
|
|
4378
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4619
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationEmail', displayE);
|
|
4379
4620
|
done();
|
|
4380
4621
|
} catch (err) {
|
|
4381
4622
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4392,7 +4633,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4392
4633
|
a.changeValidationEmail('fakeparam', null, null, (data, error) => {
|
|
4393
4634
|
try {
|
|
4394
4635
|
const displayE = 'orderId is required';
|
|
4395
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4636
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationEmail', displayE);
|
|
4396
4637
|
done();
|
|
4397
4638
|
} catch (err) {
|
|
4398
4639
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4409,7 +4650,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4409
4650
|
a.changeValidationEmail('fakeparam', 'fakeparam', null, (data, error) => {
|
|
4410
4651
|
try {
|
|
4411
4652
|
const displayE = 'approverEmail is required';
|
|
4412
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4653
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeValidationEmail', displayE);
|
|
4413
4654
|
done();
|
|
4414
4655
|
} catch (err) {
|
|
4415
4656
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4438,7 +4679,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4438
4679
|
a.resendValidationEmail(null, null, (data, error) => {
|
|
4439
4680
|
try {
|
|
4440
4681
|
const displayE = 'authKey is required';
|
|
4441
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4682
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-resendValidationEmail', displayE);
|
|
4442
4683
|
done();
|
|
4443
4684
|
} catch (err) {
|
|
4444
4685
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4455,7 +4696,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4455
4696
|
a.resendValidationEmail('fakeparam', null, (data, error) => {
|
|
4456
4697
|
try {
|
|
4457
4698
|
const displayE = 'orderId is required';
|
|
4458
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4699
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-resendValidationEmail', displayE);
|
|
4459
4700
|
done();
|
|
4460
4701
|
} catch (err) {
|
|
4461
4702
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4484,7 +4725,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4484
4725
|
a.changeDcv(null, null, null, null, (data, error) => {
|
|
4485
4726
|
try {
|
|
4486
4727
|
const displayE = 'authKey is required';
|
|
4487
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4728
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDcv', displayE);
|
|
4488
4729
|
done();
|
|
4489
4730
|
} catch (err) {
|
|
4490
4731
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4501,7 +4742,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4501
4742
|
a.changeDcv('fakeparam', null, null, null, (data, error) => {
|
|
4502
4743
|
try {
|
|
4503
4744
|
const displayE = 'orderId is required';
|
|
4504
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4745
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDcv', displayE);
|
|
4505
4746
|
done();
|
|
4506
4747
|
} catch (err) {
|
|
4507
4748
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4518,7 +4759,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4518
4759
|
a.changeDcv('fakeparam', 'fakeparam', null, null, (data, error) => {
|
|
4519
4760
|
try {
|
|
4520
4761
|
const displayE = 'domainName is required';
|
|
4521
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4762
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDcv', displayE);
|
|
4522
4763
|
done();
|
|
4523
4764
|
} catch (err) {
|
|
4524
4765
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4535,7 +4776,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4535
4776
|
a.changeDcv('fakeparam', 'fakeparam', 'fakeparam', null, (data, error) => {
|
|
4536
4777
|
try {
|
|
4537
4778
|
const displayE = 'newMethod is required';
|
|
4538
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4779
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-changeDcv', displayE);
|
|
4539
4780
|
done();
|
|
4540
4781
|
} catch (err) {
|
|
4541
4782
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4564,7 +4805,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4564
4805
|
a.revalidate(null, null, (data, error) => {
|
|
4565
4806
|
try {
|
|
4566
4807
|
const displayE = 'authKey is required';
|
|
4567
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4808
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-revalidate', displayE);
|
|
4568
4809
|
done();
|
|
4569
4810
|
} catch (err) {
|
|
4570
4811
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4581,7 +4822,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4581
4822
|
a.revalidate('fakeparam', null, (data, error) => {
|
|
4582
4823
|
try {
|
|
4583
4824
|
const displayE = 'orderId is required';
|
|
4584
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4825
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-revalidate', displayE);
|
|
4585
4826
|
done();
|
|
4586
4827
|
} catch (err) {
|
|
4587
4828
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4610,7 +4851,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4610
4851
|
a.resend(null, null, null, (data, error) => {
|
|
4611
4852
|
try {
|
|
4612
4853
|
const displayE = 'authKey is required';
|
|
4613
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4854
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-resend', displayE);
|
|
4614
4855
|
done();
|
|
4615
4856
|
} catch (err) {
|
|
4616
4857
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4627,7 +4868,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4627
4868
|
a.resend('fakeparam', null, null, (data, error) => {
|
|
4628
4869
|
try {
|
|
4629
4870
|
const displayE = 'orderId is required';
|
|
4630
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4871
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-resend', displayE);
|
|
4631
4872
|
done();
|
|
4632
4873
|
} catch (err) {
|
|
4633
4874
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4644,7 +4885,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4644
4885
|
a.resend('fakeparam', 'fakeparam', null, (data, error) => {
|
|
4645
4886
|
try {
|
|
4646
4887
|
const displayE = 'domain is required';
|
|
4647
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4888
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-resend', displayE);
|
|
4648
4889
|
done();
|
|
4649
4890
|
} catch (err) {
|
|
4650
4891
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4673,7 +4914,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4673
4914
|
a.getAllInvoices(null, (data, error) => {
|
|
4674
4915
|
try {
|
|
4675
4916
|
const displayE = 'authKey is required';
|
|
4676
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4917
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getAllInvoices', displayE);
|
|
4677
4918
|
done();
|
|
4678
4919
|
} catch (err) {
|
|
4679
4920
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4702,7 +4943,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4702
4943
|
a.getUnpaidInvoices(null, (data, error) => {
|
|
4703
4944
|
try {
|
|
4704
4945
|
const displayE = 'authKey is required';
|
|
4705
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4946
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getUnpaidInvoices', displayE);
|
|
4706
4947
|
done();
|
|
4707
4948
|
} catch (err) {
|
|
4708
4949
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4731,7 +4972,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4731
4972
|
a.getOrderInvoice(null, null, (data, error) => {
|
|
4732
4973
|
try {
|
|
4733
4974
|
const displayE = 'authKey is required';
|
|
4734
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4975
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getOrderInvoice', displayE);
|
|
4735
4976
|
done();
|
|
4736
4977
|
} catch (err) {
|
|
4737
4978
|
log.error(`Test Failure: ${err}`);
|
|
@@ -4748,7 +4989,7 @@ describe('[unit] GoGetSSL Adapter Test', () => {
|
|
|
4748
4989
|
a.getOrderInvoice('fakeparam', null, (data, error) => {
|
|
4749
4990
|
try {
|
|
4750
4991
|
const displayE = 'orderId is required';
|
|
4751
|
-
runErrorAsserts(data, error, 'AD.300', 'Test-
|
|
4992
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-gogetssl-adapter-getOrderInvoice', displayE);
|
|
4752
4993
|
done();
|
|
4753
4994
|
} catch (err) {
|
|
4754
4995
|
log.error(`Test Failure: ${err}`);
|