@itentialopensource/adapter-etsi_sol002 0.2.0 → 0.3.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/CALLS.md +329 -0
- package/CHANGELOG.md +8 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/adapter.js +157 -329
- package/adapterBase.js +549 -879
- package/changelogs/changelog.md +16 -0
- package/metadata.json +49 -0
- package/package.json +23 -25
- package/pronghorn.json +981 -642
- package/propertiesSchema.json +431 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +3367 -0
- package/report/adapter-openapi.yaml +2548 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691507414889.json +120 -0
- package/report/updateReport1692202448186.json +120 -0
- package/report/updateReport1694460767581.json +120 -0
- package/report/updateReport1698420537369.json +120 -0
- package/sampleProperties.json +63 -2
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +130 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +338 -112
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +273 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
package/CALLS.md
CHANGED
|
@@ -165,5 +165,334 @@ Specific adapter calls are built based on the API of the ETSI Standard sol002. T
|
|
|
165
165
|
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Path</span></th>
|
|
166
166
|
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Workflow?</span></th>
|
|
167
167
|
</tr>
|
|
168
|
+
<tr>
|
|
169
|
+
<td style="padding:15px">getApiVersions(callback)</td>
|
|
170
|
+
<td style="padding:15px">Retrieve API version information</td>
|
|
171
|
+
<td style="padding:15px">{base_path}/{version}/api_versions?{query}</td>
|
|
172
|
+
<td style="padding:15px">Yes</td>
|
|
173
|
+
</tr>
|
|
174
|
+
<tr>
|
|
175
|
+
<td style="padding:15px">getConfiguration(callback)</td>
|
|
176
|
+
<td style="padding:15px">Read VNF/VNFC configuration from VNF</td>
|
|
177
|
+
<td style="padding:15px">{base_path}/{version}/vnfconfig/v1/configuration?{query}</td>
|
|
178
|
+
<td style="padding:15px">Yes</td>
|
|
179
|
+
</tr>
|
|
180
|
+
<tr>
|
|
181
|
+
<td style="padding:15px">patchConfiguration(body, callback)</td>
|
|
182
|
+
<td style="padding:15px">Modify VNF/VNFC configuration.</td>
|
|
183
|
+
<td style="padding:15px">{base_path}/{version}/vnfconfig/v1/configuration?{query}</td>
|
|
184
|
+
<td style="padding:15px">Yes</td>
|
|
185
|
+
</tr>
|
|
186
|
+
<tr>
|
|
187
|
+
<td style="padding:15px">getIndicators(filter, nextpageOpaqueMarker, callback)</td>
|
|
188
|
+
<td style="padding:15px">Query multiple indicators</td>
|
|
189
|
+
<td style="padding:15px">{base_path}/{version}/vnfind/v1/indicators?{query}</td>
|
|
190
|
+
<td style="padding:15px">Yes</td>
|
|
191
|
+
</tr>
|
|
192
|
+
<tr>
|
|
193
|
+
<td style="padding:15px">getIndicatorsVnfInstanceId(vnfInstanceId, filter, nextpageOpaqueMarker, callback)</td>
|
|
194
|
+
<td style="padding:15px">Query multiple indicators related to a VNF instance.</td>
|
|
195
|
+
<td style="padding:15px">{base_path}/{version}/vnfind/v1/indicators/{pathv1}?{query}</td>
|
|
196
|
+
<td style="padding:15px">Yes</td>
|
|
197
|
+
</tr>
|
|
198
|
+
<tr>
|
|
199
|
+
<td style="padding:15px">getIndicatorsVnfInstanceIdIndicatorId(vnfInstanceId, indicatorId, callback)</td>
|
|
200
|
+
<td style="padding:15px">Read an inidividual VNF indicator related to a VNF instance.</td>
|
|
201
|
+
<td style="padding:15px">{base_path}/{version}/vnfind/v1/indicators/{pathv1}/{pathv2}?{query}</td>
|
|
202
|
+
<td style="padding:15px">Yes</td>
|
|
203
|
+
</tr>
|
|
204
|
+
<tr>
|
|
205
|
+
<td style="padding:15px">getSubscriptions(filter, nextpageOpaqueMarker, callback)</td>
|
|
206
|
+
<td style="padding:15px">Query multiple subscriptions.</td>
|
|
207
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/subscriptions?{query}</td>
|
|
208
|
+
<td style="padding:15px">Yes</td>
|
|
209
|
+
</tr>
|
|
210
|
+
<tr>
|
|
211
|
+
<td style="padding:15px">postSubscriptions(body, callback)</td>
|
|
212
|
+
<td style="padding:15px">Create a new subscription to VNF indicator change notifications</td>
|
|
213
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/subscriptions?{query}</td>
|
|
214
|
+
<td style="padding:15px">Yes</td>
|
|
215
|
+
</tr>
|
|
216
|
+
<tr>
|
|
217
|
+
<td style="padding:15px">getSubscriptionsSubscriptionId(subscriptionId, callback)</td>
|
|
218
|
+
<td style="padding:15px">Read an individual subscription.</td>
|
|
219
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/subscriptions/{pathv1}?{query}</td>
|
|
220
|
+
<td style="padding:15px">Yes</td>
|
|
221
|
+
</tr>
|
|
222
|
+
<tr>
|
|
223
|
+
<td style="padding:15px">deleteSubscriptionsSubscriptionId(subscriptionId, callback)</td>
|
|
224
|
+
<td style="padding:15px">Delete a subscription</td>
|
|
225
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/subscriptions/{pathv1}?{query}</td>
|
|
226
|
+
<td style="padding:15px">Yes</td>
|
|
227
|
+
</tr>
|
|
228
|
+
<tr>
|
|
229
|
+
<td style="padding:15px">getAlarms(filter, nextpageOpaqueMarker, callback)</td>
|
|
230
|
+
<td style="padding:15px">The client can use this method to retrieve information about the alarm list.
|
|
231
|
+
</td>
|
|
232
|
+
<td style="padding:15px">{base_path}/{version}/vnffm/v1/alarms?{query}</td>
|
|
233
|
+
<td style="padding:15px">Yes</td>
|
|
234
|
+
</tr>
|
|
235
|
+
<tr>
|
|
236
|
+
<td style="padding:15px">getAlarmsAlarmId(alarmId, callback)</td>
|
|
237
|
+
<td style="padding:15px">The client can use this method to read an individual alarm.
|
|
238
|
+
</td>
|
|
239
|
+
<td style="padding:15px">{base_path}/{version}/vnffm/v1/alarms/{pathv1}?{query}</td>
|
|
240
|
+
<td style="padding:15px">Yes</td>
|
|
241
|
+
</tr>
|
|
242
|
+
<tr>
|
|
243
|
+
<td style="padding:15px">patchAlarmsAlarmId(alarmId, body, callback)</td>
|
|
244
|
+
<td style="padding:15px">This method modifies an individual alarm resource.
|
|
245
|
+
</td>
|
|
246
|
+
<td style="padding:15px">{base_path}/{version}/vnffm/v1/alarms/{pathv1}?{query}</td>
|
|
247
|
+
<td style="padding:15px">Yes</td>
|
|
248
|
+
</tr>
|
|
249
|
+
<tr>
|
|
250
|
+
<td style="padding:15px">postAlarmsAlarmIdEscalate(alarmId, body, callback)</td>
|
|
251
|
+
<td style="padding:15px">The POST method enables the consumer to escalate the perceived severity of an alarm that is represe</td>
|
|
252
|
+
<td style="padding:15px">{base_path}/{version}/vnffm/v1/alarms/{pathv1}/escalate?{query}</td>
|
|
253
|
+
<td style="padding:15px">Yes</td>
|
|
254
|
+
</tr>
|
|
255
|
+
<tr>
|
|
256
|
+
<td style="padding:15px">getVnfInstances(filter, allFields, fields, excludeFields, excludeDefault, nextpageOpaqueMarker, callback)</td>
|
|
257
|
+
<td style="padding:15px">The GET method queries information about multiple VNF instances.
|
|
258
|
+
</td>
|
|
259
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances?{query}</td>
|
|
260
|
+
<td style="padding:15px">Yes</td>
|
|
261
|
+
</tr>
|
|
262
|
+
<tr>
|
|
263
|
+
<td style="padding:15px">postVnfInstances(body, callback)</td>
|
|
264
|
+
<td style="padding:15px">The POST method creates a new VNF instance resource based on a VNF package that is onboarded and in</td>
|
|
265
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances?{query}</td>
|
|
266
|
+
<td style="padding:15px">Yes</td>
|
|
267
|
+
</tr>
|
|
268
|
+
<tr>
|
|
269
|
+
<td style="padding:15px">getVnfInstancesVnfInstanceId(vnfInstanceId, callback)</td>
|
|
270
|
+
<td style="padding:15px">Information about a VNF instance by reading an "Individual VNF instance".
|
|
271
|
+
</td>
|
|
272
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}?{query}</td>
|
|
273
|
+
<td style="padding:15px">Yes</td>
|
|
274
|
+
</tr>
|
|
275
|
+
<tr>
|
|
276
|
+
<td style="padding:15px">deleteVnfInstancesVnfInstanceId(vnfInstanceId, callback)</td>
|
|
277
|
+
<td style="padding:15px">This method deletes an "Individual VNF instance" resource.
|
|
278
|
+
</td>
|
|
279
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}?{query}</td>
|
|
280
|
+
<td style="padding:15px">Yes</td>
|
|
281
|
+
</tr>
|
|
282
|
+
<tr>
|
|
283
|
+
<td style="padding:15px">patchVnfInstancesVnfInstanceId(vnfInstanceId, body, callback)</td>
|
|
284
|
+
<td style="padding:15px">This method modifies an "Individual VNF instance" resource. Changes to the VNF configurable propert</td>
|
|
285
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}?{query}</td>
|
|
286
|
+
<td style="padding:15px">Yes</td>
|
|
287
|
+
</tr>
|
|
288
|
+
<tr>
|
|
289
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdInstantiate(vnfInstanceId, body, callback)</td>
|
|
290
|
+
<td style="padding:15px">The POST method instantiates a VNF instance.
|
|
291
|
+
</td>
|
|
292
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/instantiate?{query}</td>
|
|
293
|
+
<td style="padding:15px">Yes</td>
|
|
294
|
+
</tr>
|
|
295
|
+
<tr>
|
|
296
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdScale(vnfInstanceId, body, callback)</td>
|
|
297
|
+
<td style="padding:15px">The POST method requests to scale a VNF instance resource incrementally.
|
|
298
|
+
</td>
|
|
299
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/scale?{query}</td>
|
|
300
|
+
<td style="padding:15px">Yes</td>
|
|
301
|
+
</tr>
|
|
302
|
+
<tr>
|
|
303
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdScaleToLevel(vnfInstanceId, body, callback)</td>
|
|
304
|
+
<td style="padding:15px">The POST method requests to scale a VNF instance resource to a target level.
|
|
305
|
+
</td>
|
|
306
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/scale_to_level?{query}</td>
|
|
307
|
+
<td style="padding:15px">Yes</td>
|
|
308
|
+
</tr>
|
|
309
|
+
<tr>
|
|
310
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdChangeFlavour(vnfInstanceId, body, callback)</td>
|
|
311
|
+
<td style="padding:15px">The POST method changes the deployment flavour of a VNF instance.
|
|
312
|
+
</td>
|
|
313
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/change_flavour?{query}</td>
|
|
314
|
+
<td style="padding:15px">Yes</td>
|
|
315
|
+
</tr>
|
|
316
|
+
<tr>
|
|
317
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdTerminate(vnfInstanceId, body, callback)</td>
|
|
318
|
+
<td style="padding:15px">The POST method triggers the VNFM to terminate a VNF instance and to request to the VIM the releas</td>
|
|
319
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/terminate?{query}</td>
|
|
320
|
+
<td style="padding:15px">Yes</td>
|
|
321
|
+
</tr>
|
|
322
|
+
<tr>
|
|
323
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdHeal(vnfInstanceId, body, callback)</td>
|
|
324
|
+
<td style="padding:15px">The POST method requests to heal a VNF instance.
|
|
325
|
+
</td>
|
|
326
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/heal?{query}</td>
|
|
327
|
+
<td style="padding:15px">Yes</td>
|
|
328
|
+
</tr>
|
|
329
|
+
<tr>
|
|
330
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdOperate(vnfInstanceId, body, callback)</td>
|
|
331
|
+
<td style="padding:15px">The POST method changes the operational state of a VNF instance.
|
|
332
|
+
</td>
|
|
333
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/operate?{query}</td>
|
|
334
|
+
<td style="padding:15px">Yes</td>
|
|
335
|
+
</tr>
|
|
336
|
+
<tr>
|
|
337
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdChangeExtConn(vnfInstanceId, body, callback)</td>
|
|
338
|
+
<td style="padding:15px">The POST method changes the external connectivity of a VNF instance.
|
|
339
|
+
</td>
|
|
340
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/change_ext_conn?{query}</td>
|
|
341
|
+
<td style="padding:15px">Yes</td>
|
|
342
|
+
</tr>
|
|
343
|
+
<tr>
|
|
344
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdChangeVnfpkg(vnfInstanceId, body, callback)</td>
|
|
345
|
+
<td style="padding:15px">The POST method changes the current VNF package on which the VNF instance is based.
|
|
346
|
+
</td>
|
|
347
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/change_vnfpkg?{query}</td>
|
|
348
|
+
<td style="padding:15px">Yes</td>
|
|
349
|
+
</tr>
|
|
350
|
+
<tr>
|
|
351
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdCreateSnapshot(vnfInstanceId, body, callback)</td>
|
|
352
|
+
<td style="padding:15px">The POST method requests tacking a VNF instance snapshot and populating a previously created VNF sn</td>
|
|
353
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/create_snapshot?{query}</td>
|
|
354
|
+
<td style="padding:15px">Yes</td>
|
|
355
|
+
</tr>
|
|
356
|
+
<tr>
|
|
357
|
+
<td style="padding:15px">postVnfInstancesVnfInstanceIdRevertToSnapshot(vnfInstanceId, body, callback)</td>
|
|
358
|
+
<td style="padding:15px">The POST method requests reverting a VNF/VNFC instance to a VNF/VNFC snapshot.
|
|
359
|
+
</td>
|
|
360
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_instances/{pathv1}/revert_to_snapshot?{query}</td>
|
|
361
|
+
<td style="padding:15px">Yes</td>
|
|
362
|
+
</tr>
|
|
363
|
+
<tr>
|
|
364
|
+
<td style="padding:15px">getVnfLcmOpOccs(filter, allFields, fields, excludeFields, excludeDefault, nextpageOpaqueMarker, callback)</td>
|
|
365
|
+
<td style="padding:15px">The client can use this method to query status information about multiple VNF lifecycle management</td>
|
|
366
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_lcm_op_occs?{query}</td>
|
|
367
|
+
<td style="padding:15px">Yes</td>
|
|
368
|
+
</tr>
|
|
369
|
+
<tr>
|
|
370
|
+
<td style="padding:15px">getVnfLcmOpOccsVnfLcmOpOccId(vnfLcmOpOccId, callback)</td>
|
|
371
|
+
<td style="padding:15px">The client can use this method to retrieve status information about a VNF lifecycle management oper</td>
|
|
372
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_lcm_op_occs/{pathv1}?{query}</td>
|
|
373
|
+
<td style="padding:15px">Yes</td>
|
|
374
|
+
</tr>
|
|
375
|
+
<tr>
|
|
376
|
+
<td style="padding:15px">postVnfLcmOpOccsVnfLcmOpOccIdRetry(vnfLcmOpOccId, callback)</td>
|
|
377
|
+
<td style="padding:15px">The POST method initiates retrying a VNF lifecycle operation if that operation has experienced a te</td>
|
|
378
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_lcm_op_occs/{pathv1}/retry?{query}</td>
|
|
379
|
+
<td style="padding:15px">Yes</td>
|
|
380
|
+
</tr>
|
|
381
|
+
<tr>
|
|
382
|
+
<td style="padding:15px">postVnfLcmOpOccsVnfLcmOpOccIdRollback(vnfLcmOpOccId, callback)</td>
|
|
383
|
+
<td style="padding:15px">The POST method initiates rolling back a VNF lifecycle operation if that operation has experienced</td>
|
|
384
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_lcm_op_occs/{pathv1}/rollback?{query}</td>
|
|
385
|
+
<td style="padding:15px">Yes</td>
|
|
386
|
+
</tr>
|
|
387
|
+
<tr>
|
|
388
|
+
<td style="padding:15px">postVnfLcmOpOccsVnfLcmOpOccIdFail(vnfLcmOpOccId, callback)</td>
|
|
389
|
+
<td style="padding:15px">The POST method marks a VNF lifecycle management operation occurrence as "finally failed" if that o</td>
|
|
390
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_lcm_op_occs/{pathv1}/fail?{query}</td>
|
|
391
|
+
<td style="padding:15px">Yes</td>
|
|
392
|
+
</tr>
|
|
393
|
+
<tr>
|
|
394
|
+
<td style="padding:15px">postVnfLcmOpOccsVnfLcmOpOccIdCancel(vnfLcmOpOccId, callback)</td>
|
|
395
|
+
<td style="padding:15px">The POST method initiates cancelling an ongoing VNF lifecycle operation while it is being executed</td>
|
|
396
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_lcm_op_occs/{pathv1}/cancel?{query}</td>
|
|
397
|
+
<td style="padding:15px">Yes</td>
|
|
398
|
+
</tr>
|
|
399
|
+
<tr>
|
|
400
|
+
<td style="padding:15px">postVnfSnapshots(body, callback)</td>
|
|
401
|
+
<td style="padding:15px">The POST method creates a new individual VNF snapshot resource.
|
|
402
|
+
</td>
|
|
403
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_snapshots?{query}</td>
|
|
404
|
+
<td style="padding:15px">Yes</td>
|
|
405
|
+
</tr>
|
|
406
|
+
<tr>
|
|
407
|
+
<td style="padding:15px">getVnfSnapshots(filter, allFields, fields, excludeFields, excludeDefault, nextpageOpaqueMarker, callback)</td>
|
|
408
|
+
<td style="padding:15px">The GET method queries information about multiple VNF/VNFC snapshots.
|
|
409
|
+
</td>
|
|
410
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_snapshots?{query}</td>
|
|
411
|
+
<td style="padding:15px">Yes</td>
|
|
412
|
+
</tr>
|
|
413
|
+
<tr>
|
|
414
|
+
<td style="padding:15px">getVnfSnapshotsVnfSnapshotInfoId(vnfSnapshotInfoId, callback)</td>
|
|
415
|
+
<td style="padding:15px">The GET method retrieves information about a VNF /VNFC snapshot by reading an individual VNF snapsh</td>
|
|
416
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_snapshots/{pathv1}?{query}</td>
|
|
417
|
+
<td style="padding:15px">Yes</td>
|
|
418
|
+
</tr>
|
|
419
|
+
<tr>
|
|
420
|
+
<td style="padding:15px">deleteVnfSnapshotsVnfSnapshotInfoId(vnfSnapshotInfoId, callback)</td>
|
|
421
|
+
<td style="padding:15px">This method deletes an individual VNF snapshot resource and the associated VNF snapshot information</td>
|
|
422
|
+
<td style="padding:15px">{base_path}/{version}/vnflcm/v1/vnf_snapshots/{pathv1}?{query}</td>
|
|
423
|
+
<td style="padding:15px">Yes</td>
|
|
424
|
+
</tr>
|
|
425
|
+
<tr>
|
|
426
|
+
<td style="padding:15px">getPmJobs(filter, allFields, fields, excludeFields, excludeDefault, nextpageOpaqueMarker, callback)</td>
|
|
427
|
+
<td style="padding:15px">The client can use this method to retrieve information about PM jobs.
|
|
428
|
+
</td>
|
|
429
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/pm_jobs?{query}</td>
|
|
430
|
+
<td style="padding:15px">Yes</td>
|
|
431
|
+
</tr>
|
|
432
|
+
<tr>
|
|
433
|
+
<td style="padding:15px">postPmJobs(body, callback)</td>
|
|
434
|
+
<td style="padding:15px">The POST method creates a PM job. As the result of successful executing this method, a new "Indivi</td>
|
|
435
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/pm_jobs?{query}</td>
|
|
436
|
+
<td style="padding:15px">Yes</td>
|
|
437
|
+
</tr>
|
|
438
|
+
<tr>
|
|
439
|
+
<td style="padding:15px">getPmJobsPmJobId(pmJobId, callback)</td>
|
|
440
|
+
<td style="padding:15px">The client can use this method for reading an individual PM job.
|
|
441
|
+
</td>
|
|
442
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/pm_jobs/{pathv1}?{query}</td>
|
|
443
|
+
<td style="padding:15px">Yes</td>
|
|
444
|
+
</tr>
|
|
445
|
+
<tr>
|
|
446
|
+
<td style="padding:15px">deletePmJobsPmJobId(pmJobId, callback)</td>
|
|
447
|
+
<td style="padding:15px">This method terminates an individual PM job. As the result of successfully executing this method, t</td>
|
|
448
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/pm_jobs/{pathv1}?{query}</td>
|
|
449
|
+
<td style="padding:15px">Yes</td>
|
|
450
|
+
</tr>
|
|
451
|
+
<tr>
|
|
452
|
+
<td style="padding:15px">patchPmJobsPmJobId(pmJobId, body, callback)</td>
|
|
453
|
+
<td style="padding:15px">This method allows to modify an "individual PM job" resource. This method shall follow the provisio</td>
|
|
454
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/pm_jobs/{pathv1}?{query}</td>
|
|
455
|
+
<td style="padding:15px">Yes</td>
|
|
456
|
+
</tr>
|
|
457
|
+
<tr>
|
|
458
|
+
<td style="padding:15px">getPmJobsPmJobIdReportsReportId(pmJobId, reportId, callback)</td>
|
|
459
|
+
<td style="padding:15px">The client can use this method for reading an individual performance report.
|
|
460
|
+
</td>
|
|
461
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/pm_jobs/{pathv1}/reports/{pathv2}?{query}</td>
|
|
462
|
+
<td style="padding:15px">Yes</td>
|
|
463
|
+
</tr>
|
|
464
|
+
<tr>
|
|
465
|
+
<td style="padding:15px">getThresholds(filter, nextpageOpaqueMarker, callback)</td>
|
|
466
|
+
<td style="padding:15px">The client can use this method to query information about thresholds.
|
|
467
|
+
</td>
|
|
468
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/thresholds?{query}</td>
|
|
469
|
+
<td style="padding:15px">Yes</td>
|
|
470
|
+
</tr>
|
|
471
|
+
<tr>
|
|
472
|
+
<td style="padding:15px">postThresholds(body, callback)</td>
|
|
473
|
+
<td style="padding:15px">The POST method can be used by the client to create a threshold. As the result of successfully exec</td>
|
|
474
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/thresholds?{query}</td>
|
|
475
|
+
<td style="padding:15px">Yes</td>
|
|
476
|
+
</tr>
|
|
477
|
+
<tr>
|
|
478
|
+
<td style="padding:15px">getThresholdsThresholdId(thresholdId, callback)</td>
|
|
479
|
+
<td style="padding:15px">The client can use this method for reading an individual threshold.
|
|
480
|
+
</td>
|
|
481
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/thresholds/{pathv1}?{query}</td>
|
|
482
|
+
<td style="padding:15px">Yes</td>
|
|
483
|
+
</tr>
|
|
484
|
+
<tr>
|
|
485
|
+
<td style="padding:15px">deleteThresholdsThresholdId(thresholdId, callback)</td>
|
|
486
|
+
<td style="padding:15px">This method allows to delete a threshold. As the result of successfully executing this method, the
|
|
487
|
+
</td>
|
|
488
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/thresholds/{pathv1}?{query}</td>
|
|
489
|
+
<td style="padding:15px">Yes</td>
|
|
490
|
+
</tr>
|
|
491
|
+
<tr>
|
|
492
|
+
<td style="padding:15px">patchThresholdsThresholdId(thresholdId, body, callback)</td>
|
|
493
|
+
<td style="padding:15px">This method allows to modify an "Individual threshold" resource. This method shall follow the provi</td>
|
|
494
|
+
<td style="padding:15px">{base_path}/{version}/vnfpm/v2/thresholds/{pathv1}?{query}</td>
|
|
495
|
+
<td style="padding:15px">Yes</td>
|
|
496
|
+
</tr>
|
|
168
497
|
</table>
|
|
169
498
|
<br>
|
package/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
+
## 0.3.0 [12-27-2023]
|
|
3
|
+
|
|
4
|
+
* Adapter Engine has been updated and the changes are being migrated to the adapter
|
|
5
|
+
|
|
6
|
+
See merge request itentialopensource/adapters/cloud/adapter-etsi_sol002!2
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
2
10
|
## 0.2.0 [05-21-2022]
|
|
3
11
|
|
|
4
12
|
* Migration to the latest Adapter Foundation
|
package/CONTRIBUTING.md
CHANGED
|
@@ -10,163 +10,4 @@ This project and everyone participating in it is governed by the Code of Conduct
|
|
|
10
10
|
|
|
11
11
|
## How to Contribute
|
|
12
12
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
This section guides you through submitting a bug report. Following these guidelines helps maintainers understand your report :pencil:, reproduce the behavior :computer: :left_right_arrow: :computer:, and find related reports :mag_right:.
|
|
16
|
-
|
|
17
|
-
Before creating bug reports, please check before-submitting-a-bug-report, as you might find out that you don't need to create one. When you are creating a bug report, please include as many details as possible. If you have an Itential support contract, please create an Itential Service Desk ticket. If you don't have an Itential support contract, please send an email of the issue to support@itential.com.
|
|
18
|
-
|
|
19
|
-
#### Before Submitting A Bug Report
|
|
20
|
-
|
|
21
|
-
* **Check the README.md.** You might be able to find the cause of the problem and fix things yourself. Most importantly, check if you can reproduce the problem __in the latest version__.
|
|
22
|
-
* **Work through the troubleshooting process.** Troubleshooting will include changing the log level of Itential Automation Platform (IAP) and adapters and checking the logs to see what the issues are. These logs should be included in any ticket you open for this issue.
|
|
23
|
-
* **Check for resolutions to the issue.** Check the <a href="https://itential.atlassian.net/servicedesk/customer/kb/view/286883841?applicationId=605994d2-2cb2-3174-af59-ed5b23ff5fd5&spaceKey=PKB&src=1187380921" target="_blank">Itential Knowledge Base</a> to see if there is a known resolution for the issue you are having.
|
|
24
|
-
* **Ask around in chat if you are an Itential employee** to see if others are experiencing the same issue.
|
|
25
|
-
|
|
26
|
-
#### How to Submit a (Good) Bug Report
|
|
27
|
-
|
|
28
|
-
Bugs are tracked through the Itential Service Desk. Explain the problem and include additional details to help maintainers reproduce the problem:
|
|
29
|
-
|
|
30
|
-
- **Use a clear and descriptive title** for the issue to identify the problem.
|
|
31
|
-
- **Describe the exact steps which reproduce the problem** in as much detail as possible. For example, start by explaining how you configured the adapter (e.g., which properties you used and how they were set) or how you are using an artifact.
|
|
32
|
-
- **Provide specific examples to demonstrate the steps**. Include logs, or copy/paste snippets, in your examples.
|
|
33
|
-
- **Describe the behavior you observed after following the steps** and point out what exactly is the problem with that behavior.
|
|
34
|
-
- **Explain which behavior you expected to see instead and why.**
|
|
35
|
-
- **Include screenshots and animated GIFs** which show you following the described steps and clearly demonstrate the problem. You can use <a href="https://www.cockos.com/licecap/" target="_blank">this tool</a> to record GIFs on macOS and Windows. Use <a href="https://github.com/colinkeenan/silentcast" target="_blank">this tool</a> or <a href="https://github.com/rhcarvalho/byzanz-guiz" target="_blank">program</a> on Linux.
|
|
36
|
-
- **If the problem wasn't triggered by a specific action**, describe what you were doing before the problem happened and share more information using the guidelines below.
|
|
37
|
-
|
|
38
|
-
Provide more context by answering these questions:
|
|
39
|
-
|
|
40
|
-
- **Did the problem start happening recently** (e.g. after updating to a new version/tag) or was this always a problem?
|
|
41
|
-
- If the problem started happening recently, **can you reproduce the problem in an older version/tag?** What's the most recent version in which the problem does not happen?
|
|
42
|
-
- **Can you reliably reproduce the issue?** If not, provide details about how often the problem happens and under which conditions it normally happens.
|
|
43
|
-
|
|
44
|
-
Include details about your configuration and environment:
|
|
45
|
-
|
|
46
|
-
- **Which version of the adapter/artifact are you using?** You can get the exact version by checking the project version in the package.json file.
|
|
47
|
-
- **What's the name and version of the OS you're using**?
|
|
48
|
-
- **Are you running or using IAP in a virtual machine?** If so, which VM software are you using and which operating systems and versions are used for the host and guest?
|
|
49
|
-
- **Are there firewalls between IAP and any other system you are integrating with?** If so, have you tried running curl from the system IAP is on to the other system to verify you have connectivity between the systems?
|
|
50
|
-
|
|
51
|
-
### Your First Code Contribution
|
|
52
|
-
|
|
53
|
-
#### Local development
|
|
54
|
-
|
|
55
|
-
This project can be developed locally on all operating systems. For instructions on how to do this, follow the steps highlighted in the README.md. The README.mdprovides many more details on cloning the repository for local development, how to lint and test your changes.
|
|
56
|
-
|
|
57
|
-
#### Development Process
|
|
58
|
-
|
|
59
|
-
The following provides a local copy of the repository along with dependencies.
|
|
60
|
-
|
|
61
|
-
```json
|
|
62
|
-
go to the repository you are interested in working on
|
|
63
|
-
click on the Clone button to get the link(s) you can use to clone the repository
|
|
64
|
-
git clone <link to clone the project>
|
|
65
|
-
npm install
|
|
66
|
-
```
|
|
67
|
-
|
|
68
|
-
Prior to making changes you should create a branch to work in. The branch should be named with the type of change (major, minor or patch) and then a Jira issue number or a description of the issue.
|
|
69
|
-
|
|
70
|
-
```json
|
|
71
|
-
git checkout -b <name_of_your_new_branch>
|
|
72
|
-
```
|
|
73
|
-
|
|
74
|
-
Make all of the desired changes.
|
|
75
|
-
|
|
76
|
-
> **Note:** All code changes should be accompanied by additional Unit and Integration tests to minimize the likelihood that any changes will negatively impact the adapter/artifact as well as to ensure the desired functionality is achieved.
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
<table border="1" class="bordered-table">
|
|
80
|
-
<tr>
|
|
81
|
-
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Files</span></th>
|
|
82
|
-
<th bgcolor="lightgrey" style="padding:15px"><span style="font-size:12.0pt">Changes</span></th>
|
|
83
|
-
</tr>
|
|
84
|
-
<tr>
|
|
85
|
-
<td style="padding:15px">.codeclimate.yml, .eslintignore, .eslintrc.js, .gitignore, .gitlab-ci.yml, .jshintrc, .npmignore</td>
|
|
86
|
-
<td style="padding:15px">These are foundational files that are used in linting and building of the adapter. Changes to these files are heavily scrutinized and may be implemented in a different manner so that the changes can be implemented across all adapters.</td>
|
|
87
|
-
</tr>
|
|
88
|
-
<tr>
|
|
89
|
-
<td style="padding:15px">CODE_OF_CONDUCT.md, CONTRIBUTING.md, LICENSE, README.md</td>
|
|
90
|
-
<td style="padding:15px">These are license and process files for the repository. Changes to these files may require legal review and may also be implemented in a different manner so that the changes can be implemented across all adapters.</td>
|
|
91
|
-
</tr>
|
|
92
|
-
<tr>
|
|
93
|
-
<td style="padding:15px">utils/*, adapterBase.js</td>
|
|
94
|
-
<td style="padding:15px">Changes to these files will rarely be accepted. These are process files that need to be changed through the builder process and migration.</td>
|
|
95
|
-
</tr>
|
|
96
|
-
<tr>
|
|
97
|
-
<td style="padding:15px">adapter.js</td>
|
|
98
|
-
<td style="padding:15px">Changes to this file are code changes. They should be accompanied by the appropriate unit and integration tests. If new methods are added, they should also be added to the pronghorn.json file, otherwise integration tests are likely to fail.</td>
|
|
99
|
-
</tr>
|
|
100
|
-
<tr>
|
|
101
|
-
<td style="padding:15px">error.json, propertiesSchema.json</td>
|
|
102
|
-
<td style="padding:15px">These files are utilized by the Itential Runtime libraries. You can make changes to these files, but the changes should be appending of new errors or properties. Removal of errors and properties can result in rejection of the changes.</td>
|
|
103
|
-
</tr>
|
|
104
|
-
<tr>
|
|
105
|
-
<td style="padding:15px">pacakge.json, package-lock.json</td>
|
|
106
|
-
<td style="padding:15px">The package-lock.json is automatically generated and should only be updated when the dependencies inside of the package.json are modified. You can make changes to the package.json to add additional scripts, add new dependencies, modify names, etc. However, changing the scripts or dependencies that are Itential specific will be overriden during the acceptance process.</td>
|
|
107
|
-
</tr>
|
|
108
|
-
<tr>
|
|
109
|
-
<td style="padding:15px">pronghorn.json</td>
|
|
110
|
-
<td style="padding:15px">Changes to this file are made for integration into IAP. The most common change here is adding new methods that shoud be exposed to the IAP Workflow.</td>
|
|
111
|
-
</tr>
|
|
112
|
-
<tr>
|
|
113
|
-
<td style="padding:15px">entities/*</td>
|
|
114
|
-
<td style="padding:15px">Changes to these files include adding new capabilities, updating existing capabilities, or removing deprecated capabilities in the adapter. Translation configuration can also be modified here.</td>
|
|
115
|
-
</tr>
|
|
116
|
-
<tr>
|
|
117
|
-
<td style="padding:15px">test/*</td>
|
|
118
|
-
<td style="padding:15px">Changes to these files include adding, updating, or removing unit and integration tests in the adapter. Tests should never be removed unless the methods that are being tested are removed also. Both the unit and integration test file should have a marker that identifies where modification can take place. Modifications above that marker are likely to be rejected or implemented in a different manner.</td>
|
|
119
|
-
</tr>
|
|
120
|
-
</table>
|
|
121
|
-
<br>
|
|
122
|
-
|
|
123
|
-
> **Note:** It is a best practice to lint and test your code prior to committing changes into the repository. You can lint your code by running **npm run lint** and test it by running **node utils/testRunner.sh**. However, there are pre-commit hooks that will run these scripts when you commit your changes.
|
|
124
|
-
|
|
125
|
-
Commit the changes to the repository.
|
|
126
|
-
|
|
127
|
-
```json
|
|
128
|
-
git commit -a -m "<descriptive message>"
|
|
129
|
-
```
|
|
130
|
-
|
|
131
|
-
> **Note:** There are pre-commit hooks in place. If the pre-commit hooks fail, you will need to address those issues before moving forward.
|
|
132
|
-
|
|
133
|
-
Push the changes into the repository. This should only be done after the commit has successfully completed.
|
|
134
|
-
|
|
135
|
-
```json
|
|
136
|
-
git push origin <name_of_your_new_branch>
|
|
137
|
-
```
|
|
138
|
-
|
|
139
|
-
Create a Merge Request.
|
|
140
|
-
|
|
141
|
-
### Merge Requests
|
|
142
|
-
|
|
143
|
-
- Fill out the provided merge request template.
|
|
144
|
-
- Reference related issues and merge requests liberally.
|
|
145
|
-
- Include screenshots and animated GIFs in your merge request whenever possible.
|
|
146
|
-
- Follow the project Styleguide.
|
|
147
|
-
- End all files with a newline.
|
|
148
|
-
|
|
149
|
-
## Styleguide
|
|
150
|
-
|
|
151
|
-
### Git Commit Messages
|
|
152
|
-
|
|
153
|
-
- Use the present tense ("Add feature" not "Added feature")
|
|
154
|
-
- Use the imperative mood ("Move cursor to..." not "Moves cursor to...")
|
|
155
|
-
- Consider starting the commit message with an applicable emoji _(not required)_:
|
|
156
|
-
- :art: `:art:` When improving the format/structure of the code.
|
|
157
|
-
- :racehorse: `:racehorse:` When improving performance
|
|
158
|
-
- :non-potable_water: `:non-potable_water:` When plugging memory leaks.
|
|
159
|
-
- :memo: `:memo:` When writing documentation.
|
|
160
|
-
- :penguin: `:penguin:` When fixing something on Linux.
|
|
161
|
-
- :apple: `:apple:` When fixing something on macOS.
|
|
162
|
-
- :checkered_flag: `:checkered_flag:` When fixing something on Windows.
|
|
163
|
-
- :bug: `:bug:` When fixing a bug.
|
|
164
|
-
- :fire: `:fire:` When removing code or files.
|
|
165
|
-
- :green_heart: `:green_heart:` When fixing the CI build.
|
|
166
|
-
- :white_check_mark: `:white_check_mark:` When adding tests,
|
|
167
|
-
- :lock: `:lock:` When dealing with security.
|
|
168
|
-
- :arrow_up: `:arrow_up:` When upgrading dependencies.
|
|
169
|
-
- :arrow_down: `:arrow_down:` When downgrading dependencies.
|
|
170
|
-
- :shirt: `:shirt:` When removing linter warnings.
|
|
171
|
-
|
|
172
|
-
__Avoid installing unnecessary packages.__ Do not install packages just because they might be "nice to have". Itential Opensource projects are supposed to be minimal, specific, and compact by design.
|
|
13
|
+
Follow the contributing guide (here)[https://gitlab.com/itentialopensource/adapters/contributing-guide]
|
package/ENHANCE.md
CHANGED
|
@@ -18,7 +18,7 @@ npm run adapter:update
|
|
|
18
18
|
|
|
19
19
|
If you do not have a Swagger or OpenAPI document, you can use a Postman Collection and convert that to an OpenAPI document using APIMatic and then follow the first process.
|
|
20
20
|
|
|
21
|
-
If you want to manually update the adapter that can also be done the key thing is to make sure you update all of the right files. Within the entities directory you will find 1 or more entities. You can create a new entity or add to an existing entity. Each entity has an action.json file, any new call will need to be put in the action.json file. It will also need to be added to the enum for the ph_request_type in the appropriate schema files. Once this configuration is complete you will need to add the call to the adapter.js file and, in order to make it available as a workflow task in IAP, it should also be added to the pronghorn.json file. You can optionally add it to the unit and integration test files. There is more information on how to work on each of these files in the <a href="https://
|
|
21
|
+
If you want to manually update the adapter that can also be done the key thing is to make sure you update all of the right files. Within the entities directory you will find 1 or more entities. You can create a new entity or add to an existing entity. Each entity has an action.json file, any new call will need to be put in the action.json file. It will also need to be added to the enum for the ph_request_type in the appropriate schema files. Once this configuration is complete you will need to add the call to the adapter.js file and, in order to make it available as a workflow task in IAP, it should also be added to the pronghorn.json file. You can optionally add it to the unit and integration test files. There is more information on how to work on each of these files in the <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a> on our Documentation Site.
|
|
22
22
|
|
|
23
23
|
```text
|
|
24
24
|
Files to update
|
|
@@ -66,4 +66,4 @@ Files to update
|
|
|
66
66
|
* test/integration/adapterTestIntegration.js: add better data for the create and update calls so that they will not fail.
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
As mentioned previously, for most of these changes as well as other possible changes, there is more information on how to work on an adapter in the <a href="https://
|
|
69
|
+
As mentioned previously, for most of these changes as well as other possible changes, there is more information on how to work on an adapter in the <a href="https://docs.itential.com/opensource/docs/adapters" target="_blank">Adapter Technical Resources</a> on our Documentation Site.
|