@itentialopensource/adapter-etsi_sol003 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 (113) 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 +8178 -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 +46 -0
  21. package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +50 -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 +10 -0
  26. package/entities/ApiVersions/schema.json +19 -0
  27. package/entities/Grants/action.json +45 -0
  28. package/entities/Grants/mockdatafiles/getGrantsGrantId-default.json +1041 -0
  29. package/entities/Grants/mockdatafiles/postGrants-default.json +1290 -0
  30. package/entities/Grants/schema.json +20 -0
  31. package/entities/Indicators/action.json +108 -0
  32. package/entities/Indicators/mockdatafiles/getIndicators-default.json +58 -0
  33. package/entities/Indicators/mockdatafiles/getIndicatorsSubscriptionsSubscriptionId-default.json +2038 -0
  34. package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceId-default.json +16 -0
  35. package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceIdIndicatorId-default.json +14 -0
  36. package/entities/Indicators/schema.json +23 -0
  37. package/entities/OnboardedVnfPackages/action.json +151 -0
  38. package/entities/OnboardedVnfPackages/mockdatafiles/getOnboardedVnfPackages-default.json +161 -0
  39. package/entities/OnboardedVnfPackages/mockdatafiles/getOnboardedVnfPackagesVnfdId-default.json +235 -0
  40. package/entities/OnboardedVnfPackages/schema.json +25 -0
  41. package/entities/PmJobs/action.json +127 -0
  42. package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +217 -0
  43. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +77 -0
  44. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +212 -0
  45. package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +26 -0
  46. package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +77 -0
  47. package/entities/PmJobs/schema.json +24 -0
  48. package/entities/Subscriptions/action.json +86 -0
  49. package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +147 -0
  50. package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +41 -0
  51. package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +44 -0
  52. package/entities/Subscriptions/schema.json +33 -0
  53. package/entities/Thresholds/action.json +106 -0
  54. package/entities/Thresholds/mockdatafiles/getThresholds-default.json +62 -0
  55. package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +30 -0
  56. package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +18 -0
  57. package/entities/Thresholds/mockdatafiles/postThresholds-default.json +31 -0
  58. package/entities/Thresholds/schema.json +23 -0
  59. package/entities/VnfInstances/action.json +326 -0
  60. package/entities/VnfInstances/mockdatafiles/getVnfInstances-default.json +76043 -0
  61. package/entities/VnfInstances/mockdatafiles/getVnfInstancesVnfInstanceId-default.json +16746 -0
  62. package/entities/VnfInstances/mockdatafiles/patchVnfInstancesVnfInstanceId-default.json +14159 -0
  63. package/entities/VnfInstances/mockdatafiles/postVnfInstances-default.json +24811 -0
  64. package/entities/VnfInstances/schema.json +34 -0
  65. package/entities/VnfLcmOpOccs/action.json +126 -0
  66. package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccs-default.json +1098 -0
  67. package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccsVnfLcmOpOccId-default.json +755 -0
  68. package/entities/VnfLcmOpOccs/mockdatafiles/postVnfLcmOpOccsVnfLcmOpOccIdFail-default.json +988 -0
  69. package/entities/VnfLcmOpOccs/schema.json +24 -0
  70. package/entities/VnfPackages/action.json +130 -0
  71. package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgId-default.json +166 -0
  72. package/entities/VnfPackages/schema.json +24 -0
  73. package/entities/VnfSnapshotPackages/action.json +88 -0
  74. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackages-default.json +178 -0
  75. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json +44 -0
  76. package/entities/VnfSnapshotPackages/schema.json +22 -0
  77. package/entities/VnfSnapshots/action.json +127 -0
  78. package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshots-default.json +3832 -0
  79. package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshotsVnfSnapshotInfoId-default.json +97152 -0
  80. package/entities/VnfSnapshots/mockdatafiles/patchVnfSnapshotsVnfSnapshotInfoId-default.json +30772 -0
  81. package/entities/VnfSnapshots/mockdatafiles/postVnfSnapshots-default.json +13292 -0
  82. package/entities/VnfSnapshots/schema.json +24 -0
  83. package/error.json +184 -0
  84. package/package.json +85 -0
  85. package/pronghorn.json +27747 -0
  86. package/propertiesSchema.json +840 -0
  87. package/refs?service=git-upload-pack +0 -0
  88. package/report/creationReport.json +189 -0
  89. package/report/sol003_virtual_openapi.json +4328 -0
  90. package/report/updateReport1646242954642.json +95 -0
  91. package/sampleProperties.json +106 -0
  92. package/test/integration/adapterTestBasicGet.js +85 -0
  93. package/test/integration/adapterTestConnectivity.js +93 -0
  94. package/test/integration/adapterTestIntegration.js +3597 -0
  95. package/test/unit/adapterBaseTestUnit.js +944 -0
  96. package/test/unit/adapterTestUnit.js +3564 -0
  97. package/utils/addAuth.js +94 -0
  98. package/utils/artifactize.js +146 -0
  99. package/utils/basicGet.js +50 -0
  100. package/utils/checkMigrate.js +63 -0
  101. package/utils/entitiesToDB.js +224 -0
  102. package/utils/findPath.js +74 -0
  103. package/utils/modify.js +154 -0
  104. package/utils/packModificationScript.js +35 -0
  105. package/utils/patches2bundledDeps.js +90 -0
  106. package/utils/pre-commit.sh +27 -0
  107. package/utils/removeHooks.js +20 -0
  108. package/utils/setup.js +33 -0
  109. package/utils/tbScript.js +169 -0
  110. package/utils/tbUtils.js +451 -0
  111. package/utils/testRunner.js +298 -0
  112. package/utils/troubleshootingAdapter.js +190 -0
  113. package/workflows/README.md +3 -0
@@ -0,0 +1,31 @@
1
+ {
2
+ "id": "string",
3
+ "objectType": "string",
4
+ "objectInstanceId": "string",
5
+ "subObjectInstanceIds": [
6
+ "string",
7
+ "string",
8
+ "string",
9
+ "string",
10
+ "string",
11
+ "string",
12
+ "string"
13
+ ],
14
+ "criteria": {
15
+ "performanceMetric": "string",
16
+ "thresholdType": "SIMPLE",
17
+ "simpleThresholdDetails": {
18
+ "thresholdValue": 2,
19
+ "hysteresis": 5
20
+ }
21
+ },
22
+ "callbackUri": "string",
23
+ "_links": {
24
+ "self": {
25
+ "href": "string"
26
+ },
27
+ "object": {
28
+ "href": "string"
29
+ }
30
+ }
31
+ }
@@ -0,0 +1,23 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": false,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "",
12
+ "enum": [
13
+ "postThresholds",
14
+ "getThresholds",
15
+ "getThresholdsThresholdId",
16
+ "patchThresholdsThresholdId",
17
+ "deleteThresholdsThresholdId"
18
+ ],
19
+ "external_name": "ph_request_type"
20
+ }
21
+ },
22
+ "definitions": {}
23
+ }
@@ -0,0 +1,326 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postVnfInstances",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "requestDatatype": "JSON",
13
+ "responseDatatype": "JSON",
14
+ "headers": {},
15
+ "responseObjects": [
16
+ {
17
+ "type": "default",
18
+ "key": "",
19
+ "mockFile": "mockdatafiles/postVnfInstances-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getVnfInstances",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances?{query}",
28
+ "requestSchema": "schema.json",
29
+ "responseSchema": "schema.json",
30
+ "timeout": 0,
31
+ "sendEmpty": false,
32
+ "sendGetBody": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/getVnfInstances-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getVnfInstancesVnfInstanceId",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}?{query}",
49
+ "requestSchema": "schema.json",
50
+ "responseSchema": "schema.json",
51
+ "timeout": 0,
52
+ "sendEmpty": false,
53
+ "sendGetBody": false,
54
+ "requestDatatype": "JSON",
55
+ "responseDatatype": "JSON",
56
+ "headers": {},
57
+ "responseObjects": [
58
+ {
59
+ "type": "default",
60
+ "key": "",
61
+ "mockFile": "mockdatafiles/getVnfInstancesVnfInstanceId-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "patchVnfInstancesVnfInstanceId",
67
+ "protocol": "REST",
68
+ "method": "PATCH",
69
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "requestDatatype": "JSON",
75
+ "responseDatatype": "JSON",
76
+ "headers": {},
77
+ "responseObjects": [
78
+ {
79
+ "type": "default",
80
+ "key": "",
81
+ "mockFile": "mockdatafiles/patchVnfInstancesVnfInstanceId-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "deleteVnfInstancesVnfInstanceId",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}?{query}",
90
+ "requestSchema": "schema.json",
91
+ "responseSchema": "schema.json",
92
+ "timeout": 0,
93
+ "sendEmpty": false,
94
+ "requestDatatype": "JSON",
95
+ "responseDatatype": "JSON",
96
+ "headers": {},
97
+ "responseObjects": [
98
+ {
99
+ "type": "default",
100
+ "key": "",
101
+ "mockFile": ""
102
+ }
103
+ ]
104
+ },
105
+ {
106
+ "name": "postVnfInstancesVnfInstanceIdInstantiate",
107
+ "protocol": "REST",
108
+ "method": "POST",
109
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/instantiate?{query}",
110
+ "requestSchema": "schema.json",
111
+ "responseSchema": "schema.json",
112
+ "timeout": 0,
113
+ "sendEmpty": false,
114
+ "requestDatatype": "JSON",
115
+ "responseDatatype": "JSON",
116
+ "headers": {},
117
+ "responseObjects": [
118
+ {
119
+ "type": "default",
120
+ "key": "",
121
+ "mockFile": ""
122
+ }
123
+ ]
124
+ },
125
+ {
126
+ "name": "postVnfInstancesVnfInstanceIdScale",
127
+ "protocol": "REST",
128
+ "method": "POST",
129
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/scale?{query}",
130
+ "requestSchema": "schema.json",
131
+ "responseSchema": "schema.json",
132
+ "timeout": 0,
133
+ "sendEmpty": false,
134
+ "requestDatatype": "JSON",
135
+ "responseDatatype": "JSON",
136
+ "headers": {},
137
+ "responseObjects": [
138
+ {
139
+ "type": "default",
140
+ "key": "",
141
+ "mockFile": ""
142
+ }
143
+ ]
144
+ },
145
+ {
146
+ "name": "postVnfInstancesVnfInstanceIdScaleToLevel",
147
+ "protocol": "REST",
148
+ "method": "POST",
149
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/scale_to_level?{query}",
150
+ "requestSchema": "schema.json",
151
+ "responseSchema": "schema.json",
152
+ "timeout": 0,
153
+ "sendEmpty": false,
154
+ "requestDatatype": "JSON",
155
+ "responseDatatype": "JSON",
156
+ "headers": {},
157
+ "responseObjects": [
158
+ {
159
+ "type": "default",
160
+ "key": "",
161
+ "mockFile": ""
162
+ }
163
+ ]
164
+ },
165
+ {
166
+ "name": "postVnfInstancesVnfInstanceIdChangeFlavour",
167
+ "protocol": "REST",
168
+ "method": "POST",
169
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/change_flavour?{query}",
170
+ "requestSchema": "schema.json",
171
+ "responseSchema": "schema.json",
172
+ "timeout": 0,
173
+ "sendEmpty": false,
174
+ "requestDatatype": "JSON",
175
+ "responseDatatype": "JSON",
176
+ "headers": {},
177
+ "responseObjects": [
178
+ {
179
+ "type": "default",
180
+ "key": "",
181
+ "mockFile": ""
182
+ }
183
+ ]
184
+ },
185
+ {
186
+ "name": "postVnfInstancesVnfInstanceIdTerminate",
187
+ "protocol": "REST",
188
+ "method": "POST",
189
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/terminate?{query}",
190
+ "requestSchema": "schema.json",
191
+ "responseSchema": "schema.json",
192
+ "timeout": 0,
193
+ "sendEmpty": false,
194
+ "requestDatatype": "JSON",
195
+ "responseDatatype": "JSON",
196
+ "headers": {},
197
+ "responseObjects": [
198
+ {
199
+ "type": "default",
200
+ "key": "",
201
+ "mockFile": ""
202
+ }
203
+ ]
204
+ },
205
+ {
206
+ "name": "postVnfInstancesVnfInstanceIdHeal",
207
+ "protocol": "REST",
208
+ "method": "POST",
209
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/heal?{query}",
210
+ "requestSchema": "schema.json",
211
+ "responseSchema": "schema.json",
212
+ "timeout": 0,
213
+ "sendEmpty": false,
214
+ "requestDatatype": "JSON",
215
+ "responseDatatype": "JSON",
216
+ "headers": {},
217
+ "responseObjects": [
218
+ {
219
+ "type": "default",
220
+ "key": "",
221
+ "mockFile": ""
222
+ }
223
+ ]
224
+ },
225
+ {
226
+ "name": "postVnfInstancesVnfInstanceIdOperate",
227
+ "protocol": "REST",
228
+ "method": "POST",
229
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/operate?{query}",
230
+ "requestSchema": "schema.json",
231
+ "responseSchema": "schema.json",
232
+ "timeout": 0,
233
+ "sendEmpty": false,
234
+ "requestDatatype": "JSON",
235
+ "responseDatatype": "JSON",
236
+ "headers": {},
237
+ "responseObjects": [
238
+ {
239
+ "type": "default",
240
+ "key": "",
241
+ "mockFile": ""
242
+ }
243
+ ]
244
+ },
245
+ {
246
+ "name": "postVnfInstancesVnfInstanceIdChangeExtConn",
247
+ "protocol": "REST",
248
+ "method": "POST",
249
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/change_ext_conn?{query}",
250
+ "requestSchema": "schema.json",
251
+ "responseSchema": "schema.json",
252
+ "timeout": 0,
253
+ "sendEmpty": false,
254
+ "requestDatatype": "JSON",
255
+ "responseDatatype": "JSON",
256
+ "headers": {},
257
+ "responseObjects": [
258
+ {
259
+ "type": "default",
260
+ "key": "",
261
+ "mockFile": ""
262
+ }
263
+ ]
264
+ },
265
+ {
266
+ "name": "postVnfInstancesVnfInstanceIdChangeVnfpkg",
267
+ "protocol": "REST",
268
+ "method": "POST",
269
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/change_vnfpkg?{query}",
270
+ "requestSchema": "schema.json",
271
+ "responseSchema": "schema.json",
272
+ "timeout": 0,
273
+ "sendEmpty": false,
274
+ "requestDatatype": "JSON",
275
+ "responseDatatype": "JSON",
276
+ "headers": {},
277
+ "responseObjects": [
278
+ {
279
+ "type": "default",
280
+ "key": "",
281
+ "mockFile": ""
282
+ }
283
+ ]
284
+ },
285
+ {
286
+ "name": "postVnfInstancesVnfInstanceIdCreateSnapshot",
287
+ "protocol": "REST",
288
+ "method": "POST",
289
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/create_snapshot?{query}",
290
+ "requestSchema": "schema.json",
291
+ "responseSchema": "schema.json",
292
+ "timeout": 0,
293
+ "sendEmpty": false,
294
+ "requestDatatype": "JSON",
295
+ "responseDatatype": "JSON",
296
+ "headers": {},
297
+ "responseObjects": [
298
+ {
299
+ "type": "default",
300
+ "key": "",
301
+ "mockFile": ""
302
+ }
303
+ ]
304
+ },
305
+ {
306
+ "name": "postVnfInstancesVnfInstanceIdRevertToSnapshot",
307
+ "protocol": "REST",
308
+ "method": "POST",
309
+ "entitypath": "{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/revert_to_snapshot?{query}",
310
+ "requestSchema": "schema.json",
311
+ "responseSchema": "schema.json",
312
+ "timeout": 0,
313
+ "sendEmpty": false,
314
+ "requestDatatype": "JSON",
315
+ "responseDatatype": "JSON",
316
+ "headers": {},
317
+ "responseObjects": [
318
+ {
319
+ "type": "default",
320
+ "key": "",
321
+ "mockFile": ""
322
+ }
323
+ ]
324
+ }
325
+ ]
326
+ }