@itentialopensource/adapter-etsi_sol005 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 (129) hide show
  1. package/.eslintignore +5 -0
  2. package/.eslintrc.js +18 -0
  3. package/.jshintrc +3 -0
  4. package/CHANGELOG.md +9 -0
  5. package/CODE_OF_CONDUCT.md +48 -0
  6. package/CONTRIBUTING.md +158 -0
  7. package/LICENSE +201 -0
  8. package/README.md +687 -0
  9. package/adapter.js +10403 -0
  10. package/adapterBase.js +1028 -0
  11. package/entities/.generic/action.json +109 -0
  12. package/entities/.generic/schema.json +23 -0
  13. package/entities/.system/action.json +50 -0
  14. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  15. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  16. package/entities/.system/schema.json +19 -0
  17. package/entities/.system/schemaTokenReq.json +53 -0
  18. package/entities/.system/schemaTokenResp.json +53 -0
  19. package/entities/Alarms/action.json +66 -0
  20. package/entities/Alarms/mockdatafiles/getAlarms-default.json +126 -0
  21. package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +45 -0
  22. package/entities/Alarms/mockdatafiles/patchAlarmsAlarmId-default.json +3 -0
  23. package/entities/Alarms/schema.json +21 -0
  24. package/entities/ApiVersions/action.json +25 -0
  25. package/entities/ApiVersions/mockdatafiles/getApiVersions-default.json +55 -0
  26. package/entities/ApiVersions/schema.json +19 -0
  27. package/entities/CapacityThresholds/action.json +106 -0
  28. package/entities/CapacityThresholds/mockdatafiles/getCapacityThresholds-default.json +193 -0
  29. package/entities/CapacityThresholds/mockdatafiles/getCapacityThresholdsCapacityThresholdId-default.json +63 -0
  30. package/entities/CapacityThresholds/mockdatafiles/patchCapacityThresholdsCapacityThresholdId-default.json +26 -0
  31. package/entities/CapacityThresholds/mockdatafiles/postCapacityThresholds-default.json +50 -0
  32. package/entities/CapacityThresholds/schema.json +23 -0
  33. package/entities/NfviCapacityInfos/action.json +46 -0
  34. package/entities/NfviCapacityInfos/mockdatafiles/getNfviCapacityInfos-default.json +1457 -0
  35. package/entities/NfviCapacityInfos/mockdatafiles/getNfviCapacityInfosVimId-default.json +487 -0
  36. package/entities/NfviCapacityInfos/schema.json +20 -0
  37. package/entities/NsDescriptors/action.json +210 -0
  38. package/entities/NsDescriptors/mockdatafiles/getNsDescriptors-default.json +354 -0
  39. package/entities/NsDescriptors/mockdatafiles/getNsDescriptorsNsdInfoId-default.json +101 -0
  40. package/entities/NsDescriptors/mockdatafiles/patchNsDescriptorsNsdInfoId-default.json +10 -0
  41. package/entities/NsDescriptors/mockdatafiles/postNsDescriptors-default.json +136 -0
  42. package/entities/NsDescriptors/schema.json +83 -0
  43. package/entities/NsInstances/action.json +186 -0
  44. package/entities/NsInstances/mockdatafiles/querymultipleNSinstances-default.json +85311 -0
  45. package/entities/NsInstances/schema.json +27 -0
  46. package/entities/NsLcmOpOccs/action.json +106 -0
  47. package/entities/NsLcmOpOccs/mockdatafiles/querymultipleNSLCMoperationoccurrences-default.json +57603 -0
  48. package/entities/NsLcmOpOccs/schema.json +23 -0
  49. package/entities/Nslcm/action.json +44 -0
  50. package/entities/Nslcm/schema.json +20 -0
  51. package/entities/PmJobs/action.json +127 -0
  52. package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +122 -0
  53. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +60 -0
  54. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +148 -0
  55. package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +22 -0
  56. package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +52 -0
  57. package/entities/PmJobs/schema.json +24 -0
  58. package/entities/PnfDescriptors/action.json +210 -0
  59. package/entities/PnfDescriptors/mockdatafiles/getPnfDescriptors-default.json +113 -0
  60. package/entities/PnfDescriptors/mockdatafiles/getPnfDescriptorsPnfdInfoId-default.json +57 -0
  61. package/entities/PnfDescriptors/mockdatafiles/patchPnfDescriptorsPnfdInfoId-default.json +3 -0
  62. package/entities/PnfDescriptors/mockdatafiles/postPnfDescriptors-default.json +102 -0
  63. package/entities/PnfDescriptors/schema.json +83 -0
  64. package/entities/Subscriptions/action.json +86 -0
  65. package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +482 -0
  66. package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +152 -0
  67. package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +151 -0
  68. package/entities/Subscriptions/schema.json +33 -0
  69. package/entities/Thresholds/action.json +106 -0
  70. package/entities/Thresholds/mockdatafiles/getThresholds-default.json +34 -0
  71. package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +30 -0
  72. package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +18 -0
  73. package/entities/Thresholds/mockdatafiles/postThresholds-default.json +32 -0
  74. package/entities/Thresholds/schema.json +23 -0
  75. package/entities/VnfPackages/action.json +292 -0
  76. package/entities/VnfPackages/mockdatafiles/getVnfPackages-default.json +453 -0
  77. package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgId-default.json +204 -0
  78. package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgIdExtArtifactsAccess-default.json +14 -0
  79. package/entities/VnfPackages/mockdatafiles/patchVnfPackagesVnfPkgId-default.json +4 -0
  80. package/entities/VnfPackages/mockdatafiles/postVnfPackages-default.json +236 -0
  81. package/entities/VnfPackages/mockdatafiles/putVnfPackagesVnfPkgIdExtArtifactsAccess-default.json +14 -0
  82. package/entities/VnfPackages/schema.json +32 -0
  83. package/entities/VnfSnapshotPackages/action.json +289 -0
  84. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackages-default.json +227 -0
  85. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json +268 -0
  86. package/entities/VnfSnapshotPackages/mockdatafiles/patchVnfSnapshotPackagesVnfSnapshotPkgId-default.json +5 -0
  87. package/entities/VnfSnapshotPackages/mockdatafiles/postVnfSnapshotPackages-default.json +146 -0
  88. package/entities/VnfSnapshotPackages/schema.json +32 -0
  89. package/entities/VnfSnapshots/action.json +66 -0
  90. package/entities/VnfSnapshots/mockdatafiles/queryVNFsnapshots-default.json +1694 -0
  91. package/entities/VnfSnapshots/schema.json +21 -0
  92. package/error.json +184 -0
  93. package/package.json +85 -0
  94. package/pronghorn.json +18371 -0
  95. package/propertiesSchema.json +840 -0
  96. package/refs?service=git-upload-pack +0 -0
  97. package/report/creationReport.json +279 -0
  98. package/report/sol005_NSDmgmt_openapi.json +24207 -0
  99. package/report/sol005_capacity_openapi.json +14837 -0
  100. package/report/sol005_fault_openapi.json +8757 -0
  101. package/report/sol005_lifecycle_opneapi.json +61923 -0
  102. package/report/sol005_lifecycle_opneapi.json-OpenApi3Json.json +24758 -0
  103. package/report/sol005_package_openapi.json +19471 -0
  104. package/report/sol005_perf_openapi.json +11124 -0
  105. package/report/sol005_snapshot_openapi.json +16610 -0
  106. package/report/updateReport1646246505328.json +95 -0
  107. package/sampleProperties.json +106 -0
  108. package/test/integration/adapterTestBasicGet.js +85 -0
  109. package/test/integration/adapterTestConnectivity.js +93 -0
  110. package/test/integration/adapterTestIntegration.js +3685 -0
  111. package/test/unit/adapterBaseTestUnit.js +944 -0
  112. package/test/unit/adapterTestUnit.js +4287 -0
  113. package/utils/addAuth.js +94 -0
  114. package/utils/artifactize.js +146 -0
  115. package/utils/basicGet.js +50 -0
  116. package/utils/checkMigrate.js +63 -0
  117. package/utils/entitiesToDB.js +224 -0
  118. package/utils/findPath.js +74 -0
  119. package/utils/modify.js +154 -0
  120. package/utils/packModificationScript.js +35 -0
  121. package/utils/patches2bundledDeps.js +90 -0
  122. package/utils/pre-commit.sh +27 -0
  123. package/utils/removeHooks.js +20 -0
  124. package/utils/setup.js +33 -0
  125. package/utils/tbScript.js +169 -0
  126. package/utils/tbUtils.js +451 -0
  127. package/utils/testRunner.js +298 -0
  128. package/utils/troubleshootingAdapter.js +190 -0
  129. package/workflows/README.md +3 -0
Binary file
@@ -0,0 +1,279 @@
1
+ {
2
+ "errors": [],
3
+ "statistics": [
4
+ {
5
+ "owner": "errorJson",
6
+ "description": "Standard adapter errors available for use",
7
+ "value": 30
8
+ },
9
+ {
10
+ "owner": "packageJson",
11
+ "description": "Number of production dependencies",
12
+ "value": 13
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": 23
23
+ },
24
+ {
25
+ "owner": "packageJson",
26
+ "description": "Runtime Library dependency",
27
+ "value": "^4.44.11"
28
+ },
29
+ {
30
+ "owner": "propertiesSchemaJson",
31
+ "description": "Adapter properties defined in the propertiesSchema file",
32
+ "value": 64
33
+ },
34
+ {
35
+ "owner": "adapterJS",
36
+ "description": "Lines of code generated in adapter.js",
37
+ "value": 3088
38
+ },
39
+ {
40
+ "owner": "adapterJS",
41
+ "description": "Number of Functions added to adapter.js",
42
+ "value": 25
43
+ },
44
+ {
45
+ "owner": "pronghornJson",
46
+ "description": "Number of Methods added to pronghorn.json",
47
+ "value": 25
48
+ },
49
+ {
50
+ "owner": "readmeMd",
51
+ "description": "Number of lines in the README.md",
52
+ "value": 688
53
+ },
54
+ {
55
+ "owner": "unitTestJS",
56
+ "description": "Number of lines of code in unit tests",
57
+ "value": 1993
58
+ },
59
+ {
60
+ "owner": "unitTestJS",
61
+ "description": "Number of unit tests",
62
+ "value": 97
63
+ },
64
+ {
65
+ "owner": "integrationTestJS",
66
+ "description": "Number of lines of code in integration tests",
67
+ "value": 1308
68
+ },
69
+ {
70
+ "owner": "integrationTestJS",
71
+ "description": "Number of integration tests",
72
+ "value": 31
73
+ },
74
+ {
75
+ "owner": "actionJson",
76
+ "description": "Number of actions for ApiVersions entity",
77
+ "value": 1
78
+ },
79
+ {
80
+ "owner": "actionJson",
81
+ "description": "Number of actions for NsDescriptors entity",
82
+ "value": 10
83
+ },
84
+ {
85
+ "owner": "actionJson",
86
+ "description": "Number of actions for PnfDescriptors entity",
87
+ "value": 10
88
+ },
89
+ {
90
+ "owner": "actionJson",
91
+ "description": "Number of actions for Subscriptions entity",
92
+ "value": 4
93
+ },
94
+ {
95
+ "owner": "actionJson",
96
+ "description": "Total number of actions",
97
+ "value": 25
98
+ },
99
+ {
100
+ "owner": "actionJson",
101
+ "description": "Total number of entities",
102
+ "value": 4
103
+ },
104
+ {
105
+ "owner": "schemaJson",
106
+ "description": "Number of schemas for ApiVersions entity",
107
+ "value": 1
108
+ },
109
+ {
110
+ "owner": "schemaJson",
111
+ "description": "Number of schemas for NsDescriptors entity",
112
+ "value": 1
113
+ },
114
+ {
115
+ "owner": "schemaJson",
116
+ "description": "Number of schemas for PnfDescriptors entity",
117
+ "value": 1
118
+ },
119
+ {
120
+ "owner": "schemaJson",
121
+ "description": "Number of schemas for Subscriptions entity",
122
+ "value": 1
123
+ },
124
+ {
125
+ "owner": "schemaJson",
126
+ "description": "Total number of schemas",
127
+ "value": 4
128
+ },
129
+ {
130
+ "owner": "mockdata",
131
+ "description": "Number of mock data files for ApiVersions entity",
132
+ "value": 1
133
+ },
134
+ {
135
+ "owner": "mockdata",
136
+ "description": "Number of mock data files for NsDescriptors entity",
137
+ "value": 4
138
+ },
139
+ {
140
+ "owner": "mockdata",
141
+ "description": "Number of mock data files for PnfDescriptors entity",
142
+ "value": 4
143
+ },
144
+ {
145
+ "owner": "mockdata",
146
+ "description": "Number of mock data files for Subscriptions entity",
147
+ "value": 3
148
+ },
149
+ {
150
+ "owner": "mockdata",
151
+ "description": "Total number of mock data files",
152
+ "value": 12
153
+ },
154
+ {
155
+ "owner": "actionJson",
156
+ "description": "Number of actions for .system entity",
157
+ "value": 2
158
+ },
159
+ {
160
+ "owner": "schemaJson",
161
+ "description": "Number of schemas for .system entity",
162
+ "value": 3
163
+ },
164
+ {
165
+ "owner": "mockdata",
166
+ "description": "Number of mock data files for .system entity",
167
+ "value": 2
168
+ },
169
+ {
170
+ "owner": "System",
171
+ "description": "System entity files",
172
+ "value": 6
173
+ },
174
+ {
175
+ "owner": "usecases",
176
+ "description": "Number of workflows",
177
+ "value": 0
178
+ },
179
+ {
180
+ "owner": "staticFile",
181
+ "description": "Number of lines of code in adapterBase.js",
182
+ "value": 1029
183
+ },
184
+ {
185
+ "owner": "staticFile",
186
+ "description": "Number of static files added",
187
+ "value": 35
188
+ },
189
+ {
190
+ "owner": "Overall",
191
+ "description": "Total lines of Code",
192
+ "value": 7418
193
+ },
194
+ {
195
+ "owner": "Overall",
196
+ "description": "Total Tests",
197
+ "value": 128
198
+ },
199
+ {
200
+ "owner": "Overall",
201
+ "description": "Total Files",
202
+ "value": 69
203
+ }
204
+ ],
205
+ "apiParsingReport": {
206
+ "no_mockdata": [
207
+ {
208
+ "fnName": "deleteNs_descriptorsNsdInfoId",
209
+ "method": "delete",
210
+ "path": "/ns_descriptors/{nsdInfoId}"
211
+ },
212
+ {
213
+ "fnName": "getNs_descriptorsNsdInfoIdNsd_content",
214
+ "method": "get",
215
+ "path": "/ns_descriptors/{nsdInfoId}/nsd_content"
216
+ },
217
+ {
218
+ "fnName": "putNs_descriptorsNsdInfoIdNsd_content",
219
+ "method": "put",
220
+ "path": "/ns_descriptors/{nsdInfoId}/nsd_content"
221
+ },
222
+ {
223
+ "fnName": "getNs_descriptorsNsdInfoIdNsd",
224
+ "method": "get",
225
+ "path": "/ns_descriptors/{nsdInfoId}/nsd"
226
+ },
227
+ {
228
+ "fnName": "getNs_descriptorsNsdInfoIdManifest",
229
+ "method": "get",
230
+ "path": "/ns_descriptors/{nsdInfoId}/manifest"
231
+ },
232
+ {
233
+ "fnName": "getNs_descriptorsNsdInfoIdArtifactsArtifactPath",
234
+ "method": "get",
235
+ "path": "/ns_descriptors/{nsdInfoId}/artifacts/{artifactPath}"
236
+ },
237
+ {
238
+ "fnName": "deletePnf_descriptorsPnfdInfoId",
239
+ "method": "delete",
240
+ "path": "/pnf_descriptors/{pnfdInfoId}"
241
+ },
242
+ {
243
+ "fnName": "getPnf_descriptorsPnfdInfoIdPnfd_content",
244
+ "method": "get",
245
+ "path": "/pnf_descriptors/{pnfdInfoId}/pnfd_content"
246
+ },
247
+ {
248
+ "fnName": "putPnf_descriptorsPnfdInfoIdPnfd_content",
249
+ "method": "put",
250
+ "path": "/pnf_descriptors/{pnfdInfoId}/pnfd_content"
251
+ },
252
+ {
253
+ "fnName": "getPnf_descriptorsPnfdInfoIdPnfd",
254
+ "method": "get",
255
+ "path": "/pnf_descriptors/{pnfdInfoId}/pnfd"
256
+ },
257
+ {
258
+ "fnName": "getPnf_descriptorsPnfdInfoIdManifest",
259
+ "method": "get",
260
+ "path": "/pnf_descriptors/{pnfdInfoId}/manifest"
261
+ },
262
+ {
263
+ "fnName": "getPnf_descriptorsPnfdInfoIdArtifactsArtifactPath",
264
+ "method": "get",
265
+ "path": "/pnf_descriptors/{pnfdInfoId}/artifacts/{artifactPath}"
266
+ },
267
+ {
268
+ "fnName": "deleteSubscriptionsSubscriptionId",
269
+ "method": "delete",
270
+ "path": "/subscriptions/{subscriptionId}"
271
+ }
272
+ ],
273
+ "errors": [],
274
+ "warnings": [],
275
+ "callsTotal": 25,
276
+ "callsConverted": 25,
277
+ "no_mockdata_num": 13
278
+ }
279
+ }