@itentialopensource/adapter-paragon_pathfinder 1.7.1 → 1.8.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/PROPERTIES.md +6 -1
- package/adapter.js +636 -0
- package/entities/Authentication/action.json +24 -0
- package/entities/Authentication/schema.json +19 -0
- package/entities/Links/action.json +45 -0
- package/entities/Links/schema.json +20 -0
- package/entities/TELSPs/action.json +65 -0
- package/entities/TELSPs/schema.json +21 -0
- package/package.json +3 -3
- package/pronghorn.json +344 -0
- package/propertiesSchema.json +7 -1
- package/report/auto-adapter-openapi.json +37 -5
- package/report/updateReport1766083427477.json +120 -0
- package/sampleProperties.json +1 -1
- package/test/integration/adapterTestIntegration.js +156 -0
- package/test/unit/adapterTestUnit.js +208 -0
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
{
|
|
2
|
+
"errors": [],
|
|
3
|
+
"statistics": [
|
|
4
|
+
{
|
|
5
|
+
"owner": "errorJson",
|
|
6
|
+
"description": "New adapter errors available for use",
|
|
7
|
+
"value": 0
|
|
8
|
+
},
|
|
9
|
+
{
|
|
10
|
+
"owner": "errorJson",
|
|
11
|
+
"description": "Adapter errors no longer available for use",
|
|
12
|
+
"value": 0
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"owner": "errorJson",
|
|
16
|
+
"description": "Adapter errors that have been updated (e.g. recommendation changes)",
|
|
17
|
+
"value": 31
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
"owner": "packageJson",
|
|
21
|
+
"description": "Number of production dependencies",
|
|
22
|
+
"value": 15
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"owner": "packageJson",
|
|
26
|
+
"description": "Number of development dependencies",
|
|
27
|
+
"value": 6
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"owner": "packageJson",
|
|
31
|
+
"description": "Number of npm scripts",
|
|
32
|
+
"value": 17
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"owner": "packageJson",
|
|
36
|
+
"description": "Runtime Library dependency",
|
|
37
|
+
"value": "6.1.7"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"owner": "propertiesSchemaJson",
|
|
41
|
+
"description": "Adapter properties defined in the propertiesSchema file",
|
|
42
|
+
"value": 83
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"owner": "markdown",
|
|
46
|
+
"description": "Number of lines in the README.md",
|
|
47
|
+
"value": 345
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"owner": "markdown",
|
|
51
|
+
"description": "Number of lines in the SUMMARY.md",
|
|
52
|
+
"value": 9
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"owner": "markdown",
|
|
56
|
+
"description": "Number of lines in the PROPERTIES.md",
|
|
57
|
+
"value": 682
|
|
58
|
+
},
|
|
59
|
+
{
|
|
60
|
+
"owner": "markdown",
|
|
61
|
+
"description": "Number of lines in the TROUBLESHOOT.md",
|
|
62
|
+
"value": 57
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"owner": "markdown",
|
|
66
|
+
"description": "Number of lines in the ENHANCE.md",
|
|
67
|
+
"value": 70
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"owner": "markdown",
|
|
71
|
+
"description": "Number of lines in the BROKER.md",
|
|
72
|
+
"value": 70
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"owner": "unitTestJS",
|
|
76
|
+
"description": "Number of lines of code in unit tests",
|
|
77
|
+
"value": 6536
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"owner": "unitTestJS",
|
|
81
|
+
"description": "Number of unit tests",
|
|
82
|
+
"value": 412
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
"owner": "integrationTestJS",
|
|
86
|
+
"description": "Number of lines of code in integration tests",
|
|
87
|
+
"value": 8020
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"owner": "integrationTestJS",
|
|
91
|
+
"description": "Number of integration tests",
|
|
92
|
+
"value": 167
|
|
93
|
+
},
|
|
94
|
+
{
|
|
95
|
+
"owner": "staticFile",
|
|
96
|
+
"description": "Number of lines of code in adapterBase.js",
|
|
97
|
+
"value": 1527
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"owner": "staticFile",
|
|
101
|
+
"description": "Number of static files added",
|
|
102
|
+
"value": 37
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
"owner": "Overall",
|
|
106
|
+
"description": "Total lines of Code",
|
|
107
|
+
"value": 16083
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"owner": "Overall",
|
|
111
|
+
"description": "Total Tests",
|
|
112
|
+
"value": 579
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"owner": "Overall",
|
|
116
|
+
"description": "Total Files",
|
|
117
|
+
"value": 6
|
|
118
|
+
}
|
|
119
|
+
]
|
|
120
|
+
}
|
package/sampleProperties.json
CHANGED
|
@@ -7859,5 +7859,161 @@ describe('[integration] Paragon_pathfinder Adapter Test', () => {
|
|
|
7859
7859
|
}
|
|
7860
7860
|
}).timeout(attemptTimeout);
|
|
7861
7861
|
});
|
|
7862
|
+
|
|
7863
|
+
const authenticationAuthenticationTokenBodyParam = {};
|
|
7864
|
+
describe('#authenticationToken - errors', () => {
|
|
7865
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
7866
|
+
try {
|
|
7867
|
+
a.authenticationToken(authenticationAuthenticationTokenBodyParam, null, (data, error) => {
|
|
7868
|
+
try {
|
|
7869
|
+
if (stub) {
|
|
7870
|
+
const displayE = 'Error 400 received on request';
|
|
7871
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-paragon_pathfinder-connectorRest-handleEndResponse', displayE);
|
|
7872
|
+
} else {
|
|
7873
|
+
runCommonAsserts(data, error);
|
|
7874
|
+
}
|
|
7875
|
+
saveMockData('Authentication', 'authenticationToken', 'default', data);
|
|
7876
|
+
done();
|
|
7877
|
+
} catch (err) {
|
|
7878
|
+
log.error(`Test Failure: ${err}`);
|
|
7879
|
+
done(err);
|
|
7880
|
+
}
|
|
7881
|
+
});
|
|
7882
|
+
} catch (error) {
|
|
7883
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7884
|
+
done(error);
|
|
7885
|
+
}
|
|
7886
|
+
}).timeout(attemptTimeout);
|
|
7887
|
+
});
|
|
7888
|
+
|
|
7889
|
+
const linksSearchLinksBodyParam = {};
|
|
7890
|
+
describe('#searchLinks - errors', () => {
|
|
7891
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
7892
|
+
try {
|
|
7893
|
+
a.searchLinks('fakedata', linksSearchLinksBodyParam, null, (data, error) => {
|
|
7894
|
+
try {
|
|
7895
|
+
if (stub) {
|
|
7896
|
+
const displayE = 'Error 400 received on request';
|
|
7897
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-paragon_pathfinder-connectorRest-handleEndResponse', displayE);
|
|
7898
|
+
} else {
|
|
7899
|
+
runCommonAsserts(data, error);
|
|
7900
|
+
}
|
|
7901
|
+
saveMockData('Links', 'searchLinks', 'default', data);
|
|
7902
|
+
done();
|
|
7903
|
+
} catch (err) {
|
|
7904
|
+
log.error(`Test Failure: ${err}`);
|
|
7905
|
+
done(err);
|
|
7906
|
+
}
|
|
7907
|
+
});
|
|
7908
|
+
} catch (error) {
|
|
7909
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7910
|
+
done(error);
|
|
7911
|
+
}
|
|
7912
|
+
}).timeout(attemptTimeout);
|
|
7913
|
+
});
|
|
7914
|
+
|
|
7915
|
+
const linksPatchLinkBodyParam = {};
|
|
7916
|
+
describe('#patchLink - errors', () => {
|
|
7917
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
7918
|
+
try {
|
|
7919
|
+
a.patchLink('fakedata', 'fakedata', linksPatchLinkBodyParam, null, (data, error) => {
|
|
7920
|
+
try {
|
|
7921
|
+
if (stub) {
|
|
7922
|
+
const displayE = 'Error 400 received on request';
|
|
7923
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-paragon_pathfinder-connectorRest-handleEndResponse', displayE);
|
|
7924
|
+
} else {
|
|
7925
|
+
runCommonAsserts(data, error);
|
|
7926
|
+
}
|
|
7927
|
+
saveMockData('Links', 'patchLink', 'default', data);
|
|
7928
|
+
done();
|
|
7929
|
+
} catch (err) {
|
|
7930
|
+
log.error(`Test Failure: ${err}`);
|
|
7931
|
+
done(err);
|
|
7932
|
+
}
|
|
7933
|
+
});
|
|
7934
|
+
} catch (error) {
|
|
7935
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7936
|
+
done(error);
|
|
7937
|
+
}
|
|
7938
|
+
}).timeout(attemptTimeout);
|
|
7939
|
+
});
|
|
7940
|
+
|
|
7941
|
+
const tELSPsSearchLSPsBodyParam = {};
|
|
7942
|
+
describe('#searchLSPs - errors', () => {
|
|
7943
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
7944
|
+
try {
|
|
7945
|
+
a.searchLSPs('fakedata', tELSPsSearchLSPsBodyParam, null, (data, error) => {
|
|
7946
|
+
try {
|
|
7947
|
+
if (stub) {
|
|
7948
|
+
const displayE = 'Error 400 received on request';
|
|
7949
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-paragon_pathfinder-connectorRest-handleEndResponse', displayE);
|
|
7950
|
+
} else {
|
|
7951
|
+
runCommonAsserts(data, error);
|
|
7952
|
+
}
|
|
7953
|
+
saveMockData('TELSPs', 'searchLSPs', 'default', data);
|
|
7954
|
+
done();
|
|
7955
|
+
} catch (err) {
|
|
7956
|
+
log.error(`Test Failure: ${err}`);
|
|
7957
|
+
done(err);
|
|
7958
|
+
}
|
|
7959
|
+
});
|
|
7960
|
+
} catch (error) {
|
|
7961
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7962
|
+
done(error);
|
|
7963
|
+
}
|
|
7964
|
+
}).timeout(attemptTimeout);
|
|
7965
|
+
});
|
|
7966
|
+
|
|
7967
|
+
const tELSPsPatchATELSPBodyParam = {};
|
|
7968
|
+
describe('#patchATELSP - errors', () => {
|
|
7969
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
7970
|
+
try {
|
|
7971
|
+
a.patchATELSP('fakedata', 'fakedata', tELSPsPatchATELSPBodyParam, null, (data, error) => {
|
|
7972
|
+
try {
|
|
7973
|
+
if (stub) {
|
|
7974
|
+
const displayE = 'Error 400 received on request';
|
|
7975
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-paragon_pathfinder-connectorRest-handleEndResponse', displayE);
|
|
7976
|
+
} else {
|
|
7977
|
+
runCommonAsserts(data, error);
|
|
7978
|
+
}
|
|
7979
|
+
saveMockData('TELSPs', 'patchATELSP', 'default', data);
|
|
7980
|
+
done();
|
|
7981
|
+
} catch (err) {
|
|
7982
|
+
log.error(`Test Failure: ${err}`);
|
|
7983
|
+
done(err);
|
|
7984
|
+
}
|
|
7985
|
+
});
|
|
7986
|
+
} catch (error) {
|
|
7987
|
+
log.error(`Adapter Exception: ${error}`);
|
|
7988
|
+
done(error);
|
|
7989
|
+
}
|
|
7990
|
+
}).timeout(attemptTimeout);
|
|
7991
|
+
});
|
|
7992
|
+
|
|
7993
|
+
const tELSPsDeleteATELSPBodyParam = {};
|
|
7994
|
+
describe('#deleteATELSP - errors', () => {
|
|
7995
|
+
it('should work if integrated but since no mockdata should error when run standalone', (done) => {
|
|
7996
|
+
try {
|
|
7997
|
+
a.deleteATELSP('fakedata', 'fakedata', tELSPsDeleteATELSPBodyParam, null, (data, error) => {
|
|
7998
|
+
try {
|
|
7999
|
+
if (stub) {
|
|
8000
|
+
const displayE = 'Error 400 received on request';
|
|
8001
|
+
runErrorAsserts(data, error, 'AD.500', 'Test-paragon_pathfinder-connectorRest-handleEndResponse', displayE);
|
|
8002
|
+
} else {
|
|
8003
|
+
runCommonAsserts(data, error);
|
|
8004
|
+
}
|
|
8005
|
+
saveMockData('TELSPs', 'deleteATELSP', 'default', data);
|
|
8006
|
+
done();
|
|
8007
|
+
} catch (err) {
|
|
8008
|
+
log.error(`Test Failure: ${err}`);
|
|
8009
|
+
done(err);
|
|
8010
|
+
}
|
|
8011
|
+
});
|
|
8012
|
+
} catch (error) {
|
|
8013
|
+
log.error(`Adapter Exception: ${error}`);
|
|
8014
|
+
done(error);
|
|
8015
|
+
}
|
|
8016
|
+
}).timeout(attemptTimeout);
|
|
8017
|
+
});
|
|
7862
8018
|
});
|
|
7863
8019
|
});
|
|
@@ -6323,5 +6323,213 @@ describe('[unit] Paragon_pathfinder Adapter Test', () => {
|
|
|
6323
6323
|
}
|
|
6324
6324
|
}).timeout(attemptTimeout);
|
|
6325
6325
|
});
|
|
6326
|
+
|
|
6327
|
+
describe('#authenticationToken - errors', () => {
|
|
6328
|
+
it('should have a authenticationToken function', (done) => {
|
|
6329
|
+
try {
|
|
6330
|
+
assert.equal(true, typeof a.authenticationToken === 'function');
|
|
6331
|
+
done();
|
|
6332
|
+
} catch (error) {
|
|
6333
|
+
log.error(`Test Failure: ${error}`);
|
|
6334
|
+
done(error);
|
|
6335
|
+
}
|
|
6336
|
+
}).timeout(attemptTimeout);
|
|
6337
|
+
});
|
|
6338
|
+
|
|
6339
|
+
describe('#searchLinks - errors', () => {
|
|
6340
|
+
it('should have a searchLinks function', (done) => {
|
|
6341
|
+
try {
|
|
6342
|
+
assert.equal(true, typeof a.searchLinks === 'function');
|
|
6343
|
+
done();
|
|
6344
|
+
} catch (error) {
|
|
6345
|
+
log.error(`Test Failure: ${error}`);
|
|
6346
|
+
done(error);
|
|
6347
|
+
}
|
|
6348
|
+
}).timeout(attemptTimeout);
|
|
6349
|
+
it('should error if - missing topologyId', (done) => {
|
|
6350
|
+
try {
|
|
6351
|
+
a.searchLinks(null, null, null, (data, error) => {
|
|
6352
|
+
try {
|
|
6353
|
+
const displayE = 'topologyId is required';
|
|
6354
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-searchLinks', displayE);
|
|
6355
|
+
done();
|
|
6356
|
+
} catch (err) {
|
|
6357
|
+
log.error(`Test Failure: ${err}`);
|
|
6358
|
+
done(err);
|
|
6359
|
+
}
|
|
6360
|
+
});
|
|
6361
|
+
} catch (error) {
|
|
6362
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6363
|
+
done(error);
|
|
6364
|
+
}
|
|
6365
|
+
}).timeout(attemptTimeout);
|
|
6366
|
+
});
|
|
6367
|
+
|
|
6368
|
+
describe('#patchLink - errors', () => {
|
|
6369
|
+
it('should have a patchLink function', (done) => {
|
|
6370
|
+
try {
|
|
6371
|
+
assert.equal(true, typeof a.patchLink === 'function');
|
|
6372
|
+
done();
|
|
6373
|
+
} catch (error) {
|
|
6374
|
+
log.error(`Test Failure: ${error}`);
|
|
6375
|
+
done(error);
|
|
6376
|
+
}
|
|
6377
|
+
}).timeout(attemptTimeout);
|
|
6378
|
+
it('should error if - missing topologyId', (done) => {
|
|
6379
|
+
try {
|
|
6380
|
+
a.patchLink(null, null, null, null, (data, error) => {
|
|
6381
|
+
try {
|
|
6382
|
+
const displayE = 'topologyId is required';
|
|
6383
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchLink', displayE);
|
|
6384
|
+
done();
|
|
6385
|
+
} catch (err) {
|
|
6386
|
+
log.error(`Test Failure: ${err}`);
|
|
6387
|
+
done(err);
|
|
6388
|
+
}
|
|
6389
|
+
});
|
|
6390
|
+
} catch (error) {
|
|
6391
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6392
|
+
done(error);
|
|
6393
|
+
}
|
|
6394
|
+
}).timeout(attemptTimeout);
|
|
6395
|
+
it('should error if - missing linkIndex', (done) => {
|
|
6396
|
+
try {
|
|
6397
|
+
a.patchLink('fakeparam', null, null, null, (data, error) => {
|
|
6398
|
+
try {
|
|
6399
|
+
const displayE = 'linkIndex is required';
|
|
6400
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchLink', displayE);
|
|
6401
|
+
done();
|
|
6402
|
+
} catch (err) {
|
|
6403
|
+
log.error(`Test Failure: ${err}`);
|
|
6404
|
+
done(err);
|
|
6405
|
+
}
|
|
6406
|
+
});
|
|
6407
|
+
} catch (error) {
|
|
6408
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6409
|
+
done(error);
|
|
6410
|
+
}
|
|
6411
|
+
}).timeout(attemptTimeout);
|
|
6412
|
+
});
|
|
6413
|
+
|
|
6414
|
+
describe('#searchLSPs - errors', () => {
|
|
6415
|
+
it('should have a searchLSPs function', (done) => {
|
|
6416
|
+
try {
|
|
6417
|
+
assert.equal(true, typeof a.searchLSPs === 'function');
|
|
6418
|
+
done();
|
|
6419
|
+
} catch (error) {
|
|
6420
|
+
log.error(`Test Failure: ${error}`);
|
|
6421
|
+
done(error);
|
|
6422
|
+
}
|
|
6423
|
+
}).timeout(attemptTimeout);
|
|
6424
|
+
it('should error if - missing topologyId', (done) => {
|
|
6425
|
+
try {
|
|
6426
|
+
a.searchLSPs(null, null, null, (data, error) => {
|
|
6427
|
+
try {
|
|
6428
|
+
const displayE = 'topologyId is required';
|
|
6429
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-searchLSPs', displayE);
|
|
6430
|
+
done();
|
|
6431
|
+
} catch (err) {
|
|
6432
|
+
log.error(`Test Failure: ${err}`);
|
|
6433
|
+
done(err);
|
|
6434
|
+
}
|
|
6435
|
+
});
|
|
6436
|
+
} catch (error) {
|
|
6437
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6438
|
+
done(error);
|
|
6439
|
+
}
|
|
6440
|
+
}).timeout(attemptTimeout);
|
|
6441
|
+
});
|
|
6442
|
+
|
|
6443
|
+
describe('#patchATELSP - errors', () => {
|
|
6444
|
+
it('should have a patchATELSP function', (done) => {
|
|
6445
|
+
try {
|
|
6446
|
+
assert.equal(true, typeof a.patchATELSP === 'function');
|
|
6447
|
+
done();
|
|
6448
|
+
} catch (error) {
|
|
6449
|
+
log.error(`Test Failure: ${error}`);
|
|
6450
|
+
done(error);
|
|
6451
|
+
}
|
|
6452
|
+
}).timeout(attemptTimeout);
|
|
6453
|
+
it('should error if - missing topologyId', (done) => {
|
|
6454
|
+
try {
|
|
6455
|
+
a.patchATELSP(null, null, null, null, (data, error) => {
|
|
6456
|
+
try {
|
|
6457
|
+
const displayE = 'topologyId is required';
|
|
6458
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchATELSP', displayE);
|
|
6459
|
+
done();
|
|
6460
|
+
} catch (err) {
|
|
6461
|
+
log.error(`Test Failure: ${err}`);
|
|
6462
|
+
done(err);
|
|
6463
|
+
}
|
|
6464
|
+
});
|
|
6465
|
+
} catch (error) {
|
|
6466
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6467
|
+
done(error);
|
|
6468
|
+
}
|
|
6469
|
+
}).timeout(attemptTimeout);
|
|
6470
|
+
it('should error if - missing lspIndex', (done) => {
|
|
6471
|
+
try {
|
|
6472
|
+
a.patchATELSP('fakeparam', null, null, null, (data, error) => {
|
|
6473
|
+
try {
|
|
6474
|
+
const displayE = 'lspIndex is required';
|
|
6475
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-patchATELSP', displayE);
|
|
6476
|
+
done();
|
|
6477
|
+
} catch (err) {
|
|
6478
|
+
log.error(`Test Failure: ${err}`);
|
|
6479
|
+
done(err);
|
|
6480
|
+
}
|
|
6481
|
+
});
|
|
6482
|
+
} catch (error) {
|
|
6483
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6484
|
+
done(error);
|
|
6485
|
+
}
|
|
6486
|
+
}).timeout(attemptTimeout);
|
|
6487
|
+
});
|
|
6488
|
+
|
|
6489
|
+
describe('#deleteATELSP - errors', () => {
|
|
6490
|
+
it('should have a deleteATELSP function', (done) => {
|
|
6491
|
+
try {
|
|
6492
|
+
assert.equal(true, typeof a.deleteATELSP === 'function');
|
|
6493
|
+
done();
|
|
6494
|
+
} catch (error) {
|
|
6495
|
+
log.error(`Test Failure: ${error}`);
|
|
6496
|
+
done(error);
|
|
6497
|
+
}
|
|
6498
|
+
}).timeout(attemptTimeout);
|
|
6499
|
+
it('should error if - missing topologyId', (done) => {
|
|
6500
|
+
try {
|
|
6501
|
+
a.deleteATELSP(null, null, null, null, (data, error) => {
|
|
6502
|
+
try {
|
|
6503
|
+
const displayE = 'topologyId is required';
|
|
6504
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteATELSP', displayE);
|
|
6505
|
+
done();
|
|
6506
|
+
} catch (err) {
|
|
6507
|
+
log.error(`Test Failure: ${err}`);
|
|
6508
|
+
done(err);
|
|
6509
|
+
}
|
|
6510
|
+
});
|
|
6511
|
+
} catch (error) {
|
|
6512
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6513
|
+
done(error);
|
|
6514
|
+
}
|
|
6515
|
+
}).timeout(attemptTimeout);
|
|
6516
|
+
it('should error if - missing lspIndex', (done) => {
|
|
6517
|
+
try {
|
|
6518
|
+
a.deleteATELSP('fakeparam', null, null, null, (data, error) => {
|
|
6519
|
+
try {
|
|
6520
|
+
const displayE = 'lspIndex is required';
|
|
6521
|
+
runErrorAsserts(data, error, 'AD.300', 'Test-paragon_pathfinder-adapter-deleteATELSP', displayE);
|
|
6522
|
+
done();
|
|
6523
|
+
} catch (err) {
|
|
6524
|
+
log.error(`Test Failure: ${err}`);
|
|
6525
|
+
done(err);
|
|
6526
|
+
}
|
|
6527
|
+
});
|
|
6528
|
+
} catch (error) {
|
|
6529
|
+
log.error(`Adapter Exception: ${error}`);
|
|
6530
|
+
done(error);
|
|
6531
|
+
}
|
|
6532
|
+
}).timeout(attemptTimeout);
|
|
6533
|
+
});
|
|
6326
6534
|
});
|
|
6327
6535
|
});
|