@itentialopensource/adapter-onap_blueprint_processor 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 (94) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/AUTH.md +37 -0
  5. package/BROKER.md +211 -0
  6. package/CALLS.md +476 -0
  7. package/CHANGELOG.md +9 -0
  8. package/CODE_OF_CONDUCT.md +43 -0
  9. package/CONTRIBUTING.md +13 -0
  10. package/ENHANCE.md +69 -0
  11. package/LICENSE +201 -0
  12. package/PROPERTIES.md +646 -0
  13. package/README.md +343 -0
  14. package/SUMMARY.md +9 -0
  15. package/SYSTEMINFO.md +19 -0
  16. package/TAB1.md +11 -0
  17. package/TAB2.md +319 -0
  18. package/TROUBLESHOOT.md +47 -0
  19. package/adapter.js +4563 -0
  20. package/adapterBase.js +1452 -0
  21. package/changelogs/CHANGELOG.md +0 -0
  22. package/entities/.generic/action.json +214 -0
  23. package/entities/.generic/schema.json +28 -0
  24. package/entities/.system/action.json +50 -0
  25. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  26. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  27. package/entities/.system/schema.json +19 -0
  28. package/entities/.system/schemaTokenReq.json +53 -0
  29. package/entities/.system/schemaTokenResp.json +53 -0
  30. package/entities/BlueprintModelCatalog/action.json +374 -0
  31. package/entities/BlueprintModelCatalog/mockdatafiles/getAllBlueprintModels-default.json +41 -0
  32. package/entities/BlueprintModelCatalog/mockdatafiles/getAllBlueprintModelsByKeyword-default.json +28 -0
  33. package/entities/BlueprintModelCatalog/mockdatafiles/searchBlueprintModelsByTags-default.json +28 -0
  34. package/entities/BlueprintModelCatalog/schema.json +36 -0
  35. package/entities/ExecutionServiceCatalog/action.json +24 -0
  36. package/entities/ExecutionServiceCatalog/schema.json +19 -0
  37. package/entities/ModelTypeCatalog/action.json +87 -0
  38. package/entities/ModelTypeCatalog/mockdatafiles/getModelTypeByDefinitionType-default.json +68 -0
  39. package/entities/ModelTypeCatalog/mockdatafiles/searchModelTypesByTags-default.json +68 -0
  40. package/entities/ModelTypeCatalog/schema.json +22 -0
  41. package/entities/ResourceConfiguration/action.json +107 -0
  42. package/entities/ResourceConfiguration/mockdatafiles/getAllConfigSnapshotsByID-default.json +26 -0
  43. package/entities/ResourceConfiguration/mockdatafiles/getAllConfigSnapshotsByType-default.json +18 -0
  44. package/entities/ResourceConfiguration/schema.json +23 -0
  45. package/entities/ResourceDictionary/action.json +209 -0
  46. package/entities/ResourceDictionary/mockdatafiles/getAllResourceDictionaryGroups-default.json +6 -0
  47. package/entities/ResourceDictionary/mockdatafiles/searchResourceDictionaryByNames-default.json +14609 -0
  48. package/entities/ResourceDictionary/mockdatafiles/searchResourceDictionaryByTags-default.json +5329 -0
  49. package/entities/ResourceDictionary/schema.json +28 -0
  50. package/entities/ResourceTemplate/action.json +65 -0
  51. package/entities/ResourceTemplate/mockdatafiles/getTemplatesWithOccurrences-default.json +26 -0
  52. package/entities/ResourceTemplate/schema.json +21 -0
  53. package/entities/Resources/action.json +87 -0
  54. package/entities/Resources/mockdatafiles/getAllResourcesUsingResolutionKey-default.json +70 -0
  55. package/entities/Resources/mockdatafiles/getResourcesWithOccurrences-default.json +70 -0
  56. package/entities/Resources/schema.json +22 -0
  57. package/error.json +190 -0
  58. package/metadata.json +89 -0
  59. package/package.json +80 -0
  60. package/pronghorn.json +22633 -0
  61. package/propertiesDecorators.json +14 -0
  62. package/propertiesSchema.json +1658 -0
  63. package/refs?service=git-upload-pack +0 -0
  64. package/report/adapter-openapi.json +3789 -0
  65. package/report/adapter-openapi.yaml +2624 -0
  66. package/report/adapterInfo.json +10 -0
  67. package/report/cds-bp-processor-api-swagger.json +3203 -0
  68. package/report/creationReport.json +460 -0
  69. package/report/updateReport1727443189469.json +120 -0
  70. package/sampleProperties.json +268 -0
  71. package/test/integration/adapterTestBasicGet.js +83 -0
  72. package/test/integration/adapterTestConnectivity.js +142 -0
  73. package/test/integration/adapterTestIntegration.js +1693 -0
  74. package/test/unit/adapterBaseTestUnit.js +1024 -0
  75. package/test/unit/adapterTestUnit.js +3287 -0
  76. package/utils/adapterInfo.js +206 -0
  77. package/utils/addAuth.js +94 -0
  78. package/utils/artifactize.js +146 -0
  79. package/utils/basicGet.js +50 -0
  80. package/utils/checkMigrate.js +63 -0
  81. package/utils/entitiesToDB.js +179 -0
  82. package/utils/findPath.js +74 -0
  83. package/utils/methodDocumentor.js +273 -0
  84. package/utils/modify.js +152 -0
  85. package/utils/packModificationScript.js +35 -0
  86. package/utils/patches2bundledDeps.js +90 -0
  87. package/utils/pre-commit.sh +32 -0
  88. package/utils/removeHooks.js +20 -0
  89. package/utils/setup.js +33 -0
  90. package/utils/taskMover.js +309 -0
  91. package/utils/tbScript.js +239 -0
  92. package/utils/tbUtils.js +489 -0
  93. package/utils/testRunner.js +298 -0
  94. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,460 @@
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": 4735
38
+ },
39
+ {
40
+ "owner": "adapterJS",
41
+ "description": "Number of Functions added to adapter.js",
42
+ "value": 45
43
+ },
44
+ {
45
+ "owner": "pronghornJson",
46
+ "description": "Number of Methods added to pronghorn.json",
47
+ "value": 45
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": 3093
98
+ },
99
+ {
100
+ "owner": "unitTestJS",
101
+ "description": "Number of unit tests",
102
+ "value": 173
103
+ },
104
+ {
105
+ "owner": "integrationTestJS",
106
+ "description": "Number of lines of code in integration tests",
107
+ "value": 1565
108
+ },
109
+ {
110
+ "owner": "integrationTestJS",
111
+ "description": "Number of integration tests",
112
+ "value": 50
113
+ },
114
+ {
115
+ "owner": "actionJson",
116
+ "description": "Number of actions for BlueprintModelCatalog entity",
117
+ "value": 18
118
+ },
119
+ {
120
+ "owner": "actionJson",
121
+ "description": "Number of actions for ResourceConfiguration entity",
122
+ "value": 5
123
+ },
124
+ {
125
+ "owner": "actionJson",
126
+ "description": "Number of actions for ResourceDictionary entity",
127
+ "value": 10
128
+ },
129
+ {
130
+ "owner": "actionJson",
131
+ "description": "Number of actions for ExecutionServiceCatalog entity",
132
+ "value": 1
133
+ },
134
+ {
135
+ "owner": "actionJson",
136
+ "description": "Number of actions for ModelTypeCatalog entity",
137
+ "value": 4
138
+ },
139
+ {
140
+ "owner": "actionJson",
141
+ "description": "Number of actions for Resources entity",
142
+ "value": 4
143
+ },
144
+ {
145
+ "owner": "actionJson",
146
+ "description": "Number of actions for ResourceTemplate entity",
147
+ "value": 3
148
+ },
149
+ {
150
+ "owner": "actionJson",
151
+ "description": "Total number of actions",
152
+ "value": 45
153
+ },
154
+ {
155
+ "owner": "actionJson",
156
+ "description": "Total number of entities",
157
+ "value": 7
158
+ },
159
+ {
160
+ "owner": "schemaJson",
161
+ "description": "Number of schemas for BlueprintModelCatalog entity",
162
+ "value": 1
163
+ },
164
+ {
165
+ "owner": "schemaJson",
166
+ "description": "Number of schemas for ResourceConfiguration entity",
167
+ "value": 1
168
+ },
169
+ {
170
+ "owner": "schemaJson",
171
+ "description": "Number of schemas for ResourceDictionary entity",
172
+ "value": 1
173
+ },
174
+ {
175
+ "owner": "schemaJson",
176
+ "description": "Number of schemas for ExecutionServiceCatalog entity",
177
+ "value": 1
178
+ },
179
+ {
180
+ "owner": "schemaJson",
181
+ "description": "Number of schemas for ModelTypeCatalog entity",
182
+ "value": 1
183
+ },
184
+ {
185
+ "owner": "schemaJson",
186
+ "description": "Number of schemas for Resources entity",
187
+ "value": 1
188
+ },
189
+ {
190
+ "owner": "schemaJson",
191
+ "description": "Number of schemas for ResourceTemplate entity",
192
+ "value": 1
193
+ },
194
+ {
195
+ "owner": "schemaJson",
196
+ "description": "Total number of schemas",
197
+ "value": 7
198
+ },
199
+ {
200
+ "owner": "mockdata",
201
+ "description": "Number of mock data files for BlueprintModelCatalog entity",
202
+ "value": 3
203
+ },
204
+ {
205
+ "owner": "mockdata",
206
+ "description": "Number of mock data files for ResourceConfiguration entity",
207
+ "value": 2
208
+ },
209
+ {
210
+ "owner": "mockdata",
211
+ "description": "Number of mock data files for ResourceDictionary entity",
212
+ "value": 3
213
+ },
214
+ {
215
+ "owner": "mockdata",
216
+ "description": "Number of mock data files for ExecutionServiceCatalog entity",
217
+ "value": 0
218
+ },
219
+ {
220
+ "owner": "mockdata",
221
+ "description": "Number of mock data files for ModelTypeCatalog entity",
222
+ "value": 2
223
+ },
224
+ {
225
+ "owner": "mockdata",
226
+ "description": "Number of mock data files for Resources entity",
227
+ "value": 2
228
+ },
229
+ {
230
+ "owner": "mockdata",
231
+ "description": "Number of mock data files for ResourceTemplate entity",
232
+ "value": 1
233
+ },
234
+ {
235
+ "owner": "mockdata",
236
+ "description": "Total number of mock data files",
237
+ "value": 13
238
+ },
239
+ {
240
+ "owner": "actionJson",
241
+ "description": "Number of actions for .system entity",
242
+ "value": 2
243
+ },
244
+ {
245
+ "owner": "schemaJson",
246
+ "description": "Number of schemas for .system entity",
247
+ "value": 3
248
+ },
249
+ {
250
+ "owner": "mockdata",
251
+ "description": "Number of mock data files for .system entity",
252
+ "value": 2
253
+ },
254
+ {
255
+ "owner": "System",
256
+ "description": "System entity files",
257
+ "value": 6
258
+ },
259
+ {
260
+ "owner": "usecases",
261
+ "description": "Number of workflows",
262
+ "value": 0
263
+ },
264
+ {
265
+ "owner": "staticFile",
266
+ "description": "Number of lines of code in adapterBase.js",
267
+ "value": 1788
268
+ },
269
+ {
270
+ "owner": "staticFile",
271
+ "description": "Number of static files added",
272
+ "value": 38
273
+ },
274
+ {
275
+ "owner": "Overall",
276
+ "description": "Total lines of Code",
277
+ "value": 11181
278
+ },
279
+ {
280
+ "owner": "Overall",
281
+ "description": "Total Tests",
282
+ "value": 223
283
+ },
284
+ {
285
+ "owner": "Overall",
286
+ "description": "Total Files",
287
+ "value": 79
288
+ }
289
+ ],
290
+ "warnings": [],
291
+ "apiParsingReport": {
292
+ "no_mockdata": [
293
+ {
294
+ "fnName": "saveBlueprintModel",
295
+ "method": "post",
296
+ "path": "/blueprint-model"
297
+ },
298
+ {
299
+ "fnName": "bootstrapCDS",
300
+ "method": "post",
301
+ "path": "/blueprint-model/bootstrap"
302
+ },
303
+ {
304
+ "fnName": "getBlueprintModelByNameAndVersion",
305
+ "method": "get",
306
+ "path": "/blueprint-model/by-name/{name}/version/{version}"
307
+ },
308
+ {
309
+ "fnName": "downloadBlueprintModelByNameAndVersion",
310
+ "method": "get",
311
+ "path": "/blueprint-model/download/by-name/{name}/version/{version}"
312
+ },
313
+ {
314
+ "fnName": "downloadBlueprintModelByID",
315
+ "method": "get",
316
+ "path": "/blueprint-model/download/{id}"
317
+ },
318
+ {
319
+ "fnName": "enrichBlueprintModel",
320
+ "method": "post",
321
+ "path": "/blueprint-model/enrich"
322
+ },
323
+ {
324
+ "fnName": "enrichAndPublishBlueprintModel",
325
+ "method": "post",
326
+ "path": "/blueprint-model/enrichandpublish"
327
+ },
328
+ {
329
+ "fnName": "deleteBlueprintModelByNameAndVersion",
330
+ "method": "delete",
331
+ "path": "/blueprint-model/name/{name}/version/{version}"
332
+ },
333
+ {
334
+ "fnName": "getAllBlueprintModelPaged",
335
+ "method": "get",
336
+ "path": "/blueprint-model/paged"
337
+ },
338
+ {
339
+ "fnName": "getAllBlueprintModelsPagedByKeyword",
340
+ "method": "get",
341
+ "path": "/blueprint-model/paged/meta-data/{keyword}"
342
+ },
343
+ {
344
+ "fnName": "publishBlueprintModel",
345
+ "method": "post",
346
+ "path": "/blueprint-model/publish"
347
+ },
348
+ {
349
+ "fnName": "getWorkflowSpecification",
350
+ "method": "post",
351
+ "path": "/blueprint-model/workflow-spec"
352
+ },
353
+ {
354
+ "fnName": "getBlueprintWorkflowsByNameAndVersion",
355
+ "method": "get",
356
+ "path": "/blueprint-model/workflows/blueprint-name/{name}/version/{version}"
357
+ },
358
+ {
359
+ "fnName": "getBlueprintModelByID",
360
+ "method": "get",
361
+ "path": "/blueprint-model/{id}"
362
+ },
363
+ {
364
+ "fnName": "deleteBlueprintModelByID",
365
+ "method": "delete",
366
+ "path": "/blueprint-model/{id}"
367
+ },
368
+ {
369
+ "fnName": "getResourceConfigSnapshot",
370
+ "method": "get",
371
+ "path": "/configs"
372
+ },
373
+ {
374
+ "fnName": "storeConfigSnapshotByResourceIdAndResourceType",
375
+ "method": "post",
376
+ "path": "/configs/{resourceType}/{resourceId}/{status}"
377
+ },
378
+ {
379
+ "fnName": "deleteConfigSnapshotByResourceIdAndResourceType",
380
+ "method": "delete",
381
+ "path": "/configs/{resourceType}/{resourceId}/{status}"
382
+ },
383
+ {
384
+ "fnName": "saveResourceDictionary",
385
+ "method": "post",
386
+ "path": "/dictionary"
387
+ },
388
+ {
389
+ "fnName": "saveResourceDictionaryByDefinition",
390
+ "method": "post",
391
+ "path": "/dictionary/definition"
392
+ },
393
+ {
394
+ "fnName": "saveMultipleDictionariesByDefinition",
395
+ "method": "post",
396
+ "path": "/dictionary/definition-bulk"
397
+ },
398
+ {
399
+ "fnName": "getAllBlueprintDictionaryPaged",
400
+ "method": "get",
401
+ "path": "/dictionary/paged"
402
+ },
403
+ {
404
+ "fnName": "getSourceMapping",
405
+ "method": "get",
406
+ "path": "/dictionary/source-mapping"
407
+ },
408
+ {
409
+ "fnName": "getResourceDictionaryByName",
410
+ "method": "get",
411
+ "path": "/dictionary/{name}"
412
+ },
413
+ {
414
+ "fnName": "deleteResourceDictionaryByName",
415
+ "method": "delete",
416
+ "path": "/dictionary/{name}"
417
+ },
418
+ {
419
+ "fnName": "executeCBAWorkflowAction",
420
+ "method": "post",
421
+ "path": "/execution-service/process"
422
+ },
423
+ {
424
+ "fnName": "getModelTypeByName",
425
+ "method": "get",
426
+ "path": "/model-type/{name}"
427
+ },
428
+ {
429
+ "fnName": "deleteModelTypeByName",
430
+ "method": "delete",
431
+ "path": "/model-type/{name}"
432
+ },
433
+ {
434
+ "fnName": "deleteAllResourcesUsingResolutionKey",
435
+ "method": "delete",
436
+ "path": "/resources"
437
+ },
438
+ {
439
+ "fnName": "getResourceValueUsingResolutionKey",
440
+ "method": "get",
441
+ "path": "/resources/resource"
442
+ },
443
+ {
444
+ "fnName": "storeTemplateWithResolutionKey",
445
+ "method": "post",
446
+ "path": "/template/{bpName}/{bpVersion}/{artifactName}/{resolutionKey}"
447
+ },
448
+ {
449
+ "fnName": "storeTemplateWithResourceIdAndResourceType",
450
+ "method": "post",
451
+ "path": "/template/{bpName}/{bpVersion}/{artifactName}/{resourceType}/{resourceId}"
452
+ }
453
+ ],
454
+ "errors": [],
455
+ "warnings": [],
456
+ "callsTotal": 45,
457
+ "callsConverted": 45,
458
+ "no_mockdata_num": 32
459
+ }
460
+ }
@@ -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": 16
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": 21
33
+ },
34
+ {
35
+ "owner": "packageJson",
36
+ "description": "Runtime Library dependency",
37
+ "value": "^5.6.0"
38
+ },
39
+ {
40
+ "owner": "propertiesSchemaJson",
41
+ "description": "Adapter properties defined in the propertiesSchema file",
42
+ "value": 77
43
+ },
44
+ {
45
+ "owner": "markdown",
46
+ "description": "Number of lines in the README.md",
47
+ "value": 344
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": 647
58
+ },
59
+ {
60
+ "owner": "markdown",
61
+ "description": "Number of lines in the TROUBLESHOOT.md",
62
+ "value": 48
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": 3288
78
+ },
79
+ {
80
+ "owner": "unitTestJS",
81
+ "description": "Number of unit tests",
82
+ "value": 186
83
+ },
84
+ {
85
+ "owner": "integrationTestJS",
86
+ "description": "Number of lines of code in integration tests",
87
+ "value": 1694
88
+ },
89
+ {
90
+ "owner": "integrationTestJS",
91
+ "description": "Number of integration tests",
92
+ "value": 54
93
+ },
94
+ {
95
+ "owner": "staticFile",
96
+ "description": "Number of lines of code in adapterBase.js",
97
+ "value": 1453
98
+ },
99
+ {
100
+ "owner": "staticFile",
101
+ "description": "Number of static files added",
102
+ "value": 36
103
+ },
104
+ {
105
+ "owner": "Overall",
106
+ "description": "Total lines of Code",
107
+ "value": 6435
108
+ },
109
+ {
110
+ "owner": "Overall",
111
+ "description": "Total Tests",
112
+ "value": 240
113
+ },
114
+ {
115
+ "owner": "Overall",
116
+ "description": "Total Files",
117
+ "value": 6
118
+ }
119
+ ]
120
+ }