@itentialopensource/adapter-drivenets_networkorchestrator 0.1.1

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.
Files changed (72) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +39 -0
  5. package/BROKER.md +199 -0
  6. package/CALLS.md +314 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +172 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +641 -0
  13. package/README.md +337 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +11 -0
  16. package/TROUBLESHOOT.md +47 -0
  17. package/adapter.js +2778 -0
  18. package/adapterBase.js +1787 -0
  19. package/entities/.generic/action.json +214 -0
  20. package/entities/.generic/schema.json +28 -0
  21. package/entities/.system/action.json +50 -0
  22. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  23. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  24. package/entities/.system/schema.json +19 -0
  25. package/entities/.system/schemaTokenReq.json +53 -0
  26. package/entities/.system/schemaTokenResp.json +53 -0
  27. package/entities/MonitoringFaultManagementActiveAlarms/action.json +25 -0
  28. package/entities/MonitoringFaultManagementActiveAlarms/schema.json +19 -0
  29. package/entities/MonitoringFaultManagementAlarms/action.json +46 -0
  30. package/entities/MonitoringFaultManagementAlarms/schema.json +31 -0
  31. package/entities/NCEGroupManagement/action.json +85 -0
  32. package/entities/NCEGroupManagement/schema.json +33 -0
  33. package/entities/NCEManagement/action.json +144 -0
  34. package/entities/NCEManagement/schema.json +36 -0
  35. package/entities/Redundancy/action.json +64 -0
  36. package/entities/Redundancy/schema.json +21 -0
  37. package/entities/TaskManagement/action.json +146 -0
  38. package/entities/TaskManagement/schema.json +47 -0
  39. package/error.json +190 -0
  40. package/package.json +88 -0
  41. package/pronghorn.json +1598 -0
  42. package/propertiesDecorators.json +14 -0
  43. package/propertiesSchema.json +1248 -0
  44. package/refs?service=git-upload-pack +0 -0
  45. package/report/adapterInfo.json +10 -0
  46. package/report/creationReport.json +405 -0
  47. package/report/openapi_dnor.json +1634 -0
  48. package/sampleProperties.json +195 -0
  49. package/test/integration/adapterTestBasicGet.js +83 -0
  50. package/test/integration/adapterTestConnectivity.js +93 -0
  51. package/test/integration/adapterTestIntegration.js +963 -0
  52. package/test/unit/adapterBaseTestUnit.js +949 -0
  53. package/test/unit/adapterTestUnit.js +1888 -0
  54. package/utils/adapterInfo.js +206 -0
  55. package/utils/addAuth.js +94 -0
  56. package/utils/artifactize.js +146 -0
  57. package/utils/basicGet.js +50 -0
  58. package/utils/checkMigrate.js +63 -0
  59. package/utils/entitiesToDB.js +178 -0
  60. package/utils/findPath.js +74 -0
  61. package/utils/methodDocumentor.js +225 -0
  62. package/utils/modify.js +154 -0
  63. package/utils/packModificationScript.js +35 -0
  64. package/utils/patches2bundledDeps.js +90 -0
  65. package/utils/pre-commit.sh +32 -0
  66. package/utils/removeHooks.js +20 -0
  67. package/utils/setup.js +33 -0
  68. package/utils/tbScript.js +246 -0
  69. package/utils/tbUtils.js +490 -0
  70. package/utils/testRunner.js +298 -0
  71. package/utils/troubleshootingAdapter.js +195 -0
  72. package/workflows/README.md +3 -0
Binary file
@@ -0,0 +1,10 @@
1
+ {
2
+ "version": "0.1.0",
3
+ "configLines": 3037,
4
+ "scriptLines": 1795,
5
+ "codeLines": 4567,
6
+ "testLines": 3981,
7
+ "testCases": 183,
8
+ "totalCodeLines": 10343,
9
+ "wfTasks": 41
10
+ }
@@ -0,0 +1,405 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "Standard adapter errors available for use",
7
+ "value": 31
8
+ },
9
+ {
10
+ "owner": "packageJson",
11
+ "description": "Number of production dependencies",
12
+ "value": 16
13
+ },
14
+ {
15
+ "owner": "packageJson",
16
+ "description": "Number of development dependencies",
17
+ "value": 7
18
+ },
19
+ {
20
+ "owner": "packageJson",
21
+ "description": "Number of npm scripts",
22
+ "value": 22
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Runtime Library dependency",
27
+ "value": "^4.48.0"
28
+ },
29
+ {
30
+ "owner": "propertiesSchemaJson",
31
+ "description": "Adapter properties defined in the propertiesSchema file",
32
+ "value": 70
33
+ },
34
+ {
35
+ "owner": "adapterJS",
36
+ "description": "Lines of code generated in adapter.js",
37
+ "value": 2779
38
+ },
39
+ {
40
+ "owner": "adapterJS",
41
+ "description": "Number of Functions added to adapter.js",
42
+ "value": 24
43
+ },
44
+ {
45
+ "owner": "pronghornJson",
46
+ "description": "Number of Methods added to pronghorn.json",
47
+ "value": 24
48
+ },
49
+ {
50
+ "owner": "markdown",
51
+ "description": "Number of lines in the README.md",
52
+ "value": 338
53
+ },
54
+ {
55
+ "owner": "markdown",
56
+ "description": "Number of lines in the SUMMARY.md",
57
+ "value": 9
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the PROPERTIES.md",
62
+ "value": 642
63
+ },
64
+ {
65
+ "owner": "markdown",
66
+ "description": "Number of lines in the TROUBLESHOOT.md",
67
+ "value": 48
68
+ },
69
+ {
70
+ "owner": "markdown",
71
+ "description": "Number of lines in the ENHANCE.md",
72
+ "value": 70
73
+ },
74
+ {
75
+ "owner": "markdown",
76
+ "description": "Number of lines in the BROKER.md",
77
+ "value": 200
78
+ },
79
+ {
80
+ "owner": "markdown",
81
+ "description": "Number of lines in the CALLS.md",
82
+ "value": 171
83
+ },
84
+ {
85
+ "owner": "markdown",
86
+ "description": "Number of lines in the AUTH.md",
87
+ "value": 40
88
+ },
89
+ {
90
+ "owner": "markdown",
91
+ "description": "Number of lines in the SYSTEMINFO.md",
92
+ "value": 11
93
+ },
94
+ {
95
+ "owner": "unitTestJS",
96
+ "description": "Number of lines of code in unit tests",
97
+ "value": 1889
98
+ },
99
+ {
100
+ "owner": "unitTestJS",
101
+ "description": "Number of unit tests",
102
+ "value": 96
103
+ },
104
+ {
105
+ "owner": "integrationTestJS",
106
+ "description": "Number of lines of code in integration tests",
107
+ "value": 964
108
+ },
109
+ {
110
+ "owner": "integrationTestJS",
111
+ "description": "Number of integration tests",
112
+ "value": 29
113
+ },
114
+ {
115
+ "owner": "actionJson",
116
+ "description": "Number of actions for NCEManagement entity",
117
+ "value": 7
118
+ },
119
+ {
120
+ "owner": "actionJson",
121
+ "description": "Number of actions for Redundancy entity",
122
+ "value": 3
123
+ },
124
+ {
125
+ "owner": "actionJson",
126
+ "description": "Number of actions for NCEGroupManagement entity",
127
+ "value": 4
128
+ },
129
+ {
130
+ "owner": "actionJson",
131
+ "description": "Number of actions for TaskManagement entity",
132
+ "value": 7
133
+ },
134
+ {
135
+ "owner": "actionJson",
136
+ "description": "Number of actions for MonitoringFaultManagementAlarms entity",
137
+ "value": 2
138
+ },
139
+ {
140
+ "owner": "actionJson",
141
+ "description": "Number of actions for MonitoringFaultManagementActiveAlarms entity",
142
+ "value": 1
143
+ },
144
+ {
145
+ "owner": "actionJson",
146
+ "description": "Total number of actions",
147
+ "value": 24
148
+ },
149
+ {
150
+ "owner": "actionJson",
151
+ "description": "Total number of entities",
152
+ "value": 6
153
+ },
154
+ {
155
+ "owner": "schemaJson",
156
+ "description": "Number of schemas for NCEManagement entity",
157
+ "value": 1
158
+ },
159
+ {
160
+ "owner": "schemaJson",
161
+ "description": "Number of schemas for Redundancy entity",
162
+ "value": 1
163
+ },
164
+ {
165
+ "owner": "schemaJson",
166
+ "description": "Number of schemas for NCEGroupManagement entity",
167
+ "value": 1
168
+ },
169
+ {
170
+ "owner": "schemaJson",
171
+ "description": "Number of schemas for TaskManagement entity",
172
+ "value": 1
173
+ },
174
+ {
175
+ "owner": "schemaJson",
176
+ "description": "Number of schemas for MonitoringFaultManagementAlarms entity",
177
+ "value": 1
178
+ },
179
+ {
180
+ "owner": "schemaJson",
181
+ "description": "Number of schemas for MonitoringFaultManagementActiveAlarms entity",
182
+ "value": 1
183
+ },
184
+ {
185
+ "owner": "schemaJson",
186
+ "description": "Total number of schemas",
187
+ "value": 6
188
+ },
189
+ {
190
+ "owner": "mockdata",
191
+ "description": "Number of mock data files for NCEManagement entity",
192
+ "value": 0
193
+ },
194
+ {
195
+ "owner": "mockdata",
196
+ "description": "Number of mock data files for Redundancy entity",
197
+ "value": 0
198
+ },
199
+ {
200
+ "owner": "mockdata",
201
+ "description": "Number of mock data files for NCEGroupManagement entity",
202
+ "value": 0
203
+ },
204
+ {
205
+ "owner": "mockdata",
206
+ "description": "Number of mock data files for TaskManagement entity",
207
+ "value": 0
208
+ },
209
+ {
210
+ "owner": "mockdata",
211
+ "description": "Number of mock data files for MonitoringFaultManagementAlarms entity",
212
+ "value": 0
213
+ },
214
+ {
215
+ "owner": "mockdata",
216
+ "description": "Number of mock data files for MonitoringFaultManagementActiveAlarms entity",
217
+ "value": 0
218
+ },
219
+ {
220
+ "owner": "mockdata",
221
+ "description": "Total number of mock data files",
222
+ "value": 0
223
+ },
224
+ {
225
+ "owner": "actionJson",
226
+ "description": "Number of actions for .system entity",
227
+ "value": 2
228
+ },
229
+ {
230
+ "owner": "schemaJson",
231
+ "description": "Number of schemas for .system entity",
232
+ "value": 3
233
+ },
234
+ {
235
+ "owner": "mockdata",
236
+ "description": "Number of mock data files for .system entity",
237
+ "value": 2
238
+ },
239
+ {
240
+ "owner": "System",
241
+ "description": "System entity files",
242
+ "value": 6
243
+ },
244
+ {
245
+ "owner": "usecases",
246
+ "description": "Number of workflows",
247
+ "value": 0
248
+ },
249
+ {
250
+ "owner": "staticFile",
251
+ "description": "Number of lines of code in adapterBase.js",
252
+ "value": 1788
253
+ },
254
+ {
255
+ "owner": "staticFile",
256
+ "description": "Number of static files added",
257
+ "value": 38
258
+ },
259
+ {
260
+ "owner": "Overall",
261
+ "description": "Total lines of Code",
262
+ "value": 7420
263
+ },
264
+ {
265
+ "owner": "Overall",
266
+ "description": "Total Tests",
267
+ "value": 125
268
+ },
269
+ {
270
+ "owner": "Overall",
271
+ "description": "Total Files",
272
+ "value": 64
273
+ }
274
+ ],
275
+ "warnings": [],
276
+ "apiParsingReport": {
277
+ "no_mockdata": [
278
+ {
279
+ "fnName": "deploy",
280
+ "method": "post",
281
+ "path": "/nce-management/deploy"
282
+ },
283
+ {
284
+ "fnName": "updateNCEbyClusterID",
285
+ "method": "put",
286
+ "path": "/nce-management/{cluster-id}"
287
+ },
288
+ {
289
+ "fnName": "deleteNCEbyClusterID",
290
+ "method": "delete",
291
+ "path": "/nce-management/{cluster-id}"
292
+ },
293
+ {
294
+ "fnName": "nceManagementDownload",
295
+ "method": "post",
296
+ "path": "/nce-management/download/{cluster-id}"
297
+ },
298
+ {
299
+ "fnName": "nceManagementUpgrade",
300
+ "method": "post",
301
+ "path": "/nce-management/upgrade/{cluster-id}"
302
+ },
303
+ {
304
+ "fnName": "nceManagementCancel",
305
+ "method": "post",
306
+ "path": "/nce-management/cancel/{cluster-id}"
307
+ },
308
+ {
309
+ "fnName": "nceManagementPrecheck",
310
+ "method": "post",
311
+ "path": "/nce-management/precheck/{cluster-id}"
312
+ },
313
+ {
314
+ "fnName": "redundancyDisable",
315
+ "method": "put",
316
+ "path": "/redundancy/disable"
317
+ },
318
+ {
319
+ "fnName": "redundancyEnable",
320
+ "method": "put",
321
+ "path": "/redundancy/enable"
322
+ },
323
+ {
324
+ "fnName": "redundancy",
325
+ "method": "put",
326
+ "path": "/redundancy"
327
+ },
328
+ {
329
+ "fnName": "targetGroupGroups",
330
+ "method": "get",
331
+ "path": "/target-group/groups"
332
+ },
333
+ {
334
+ "fnName": "targetGroupCreateGroup",
335
+ "method": "post",
336
+ "path": "/target-group/create-group"
337
+ },
338
+ {
339
+ "fnName": "targetGroupUpdateGroupGroupID",
340
+ "method": "put",
341
+ "path": "/target-group/update-group/{group-id}"
342
+ },
343
+ {
344
+ "fnName": "deleteTargetGroupGroupId",
345
+ "method": "delete",
346
+ "path": "/target-group/target-group/{group-id}"
347
+ },
348
+ {
349
+ "fnName": "getTaskManagementTaskExecutions",
350
+ "method": "get",
351
+ "path": "/task-management/task-executions"
352
+ },
353
+ {
354
+ "fnName": "getTaskManagementTasks",
355
+ "method": "get",
356
+ "path": "/task-management/tasks"
357
+ },
358
+ {
359
+ "fnName": "postTaskManagementCreateTask",
360
+ "method": "post",
361
+ "path": "/task-management/create-task"
362
+ },
363
+ {
364
+ "fnName": "putTaskManagementUpdateTask",
365
+ "method": "put",
366
+ "path": "/task-management/update-task/{task-id}"
367
+ },
368
+ {
369
+ "fnName": "postTaskManagementExecuteTask",
370
+ "method": "post",
371
+ "path": "/task-management/execute-task/{task-id}"
372
+ },
373
+ {
374
+ "fnName": "postTaskManagementCancelTask",
375
+ "method": "post",
376
+ "path": "/task-management/cancel-task/{task-execution-id}"
377
+ },
378
+ {
379
+ "fnName": "taskManagementDeleteTask",
380
+ "method": "delete",
381
+ "path": "/task-management/delete-task/{task-id}"
382
+ },
383
+ {
384
+ "fnName": "getFaultManagementAlarmConfiguration",
385
+ "method": "get",
386
+ "path": "/services/monitoring/fault-management/alarms/{alarm-name}"
387
+ },
388
+ {
389
+ "fnName": "getAllFaultManagementAlarmConfiguration",
390
+ "method": "get",
391
+ "path": "/services/monitoring/fault-management/alarms/"
392
+ },
393
+ {
394
+ "fnName": "getAllFaultManagementActiveAlarms",
395
+ "method": "get",
396
+ "path": "/services/monitoring/fault-management/active-alarms/"
397
+ }
398
+ ],
399
+ "errors": [],
400
+ "warnings": [],
401
+ "callsTotal": 24,
402
+ "callsConverted": 24,
403
+ "no_mockdata_num": 24
404
+ }
405
+ }