@itentialopensource/adapter-etsi_sol002 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.
- package/.eslintignore +5 -0
- package/.eslintrc.js +18 -0
- package/.jshintrc +3 -0
- package/CHANGELOG.md +9 -0
- package/CODE_OF_CONDUCT.md +48 -0
- package/CONTRIBUTING.md +158 -0
- package/LICENSE +201 -0
- package/README.md +687 -0
- package/adapter.js +6149 -0
- package/adapterBase.js +1028 -0
- package/entities/.generic/action.json +109 -0
- package/entities/.generic/schema.json +23 -0
- package/entities/.system/action.json +50 -0
- package/entities/.system/mockdatafiles/getToken-default.json +3 -0
- package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
- package/entities/.system/schema.json +19 -0
- package/entities/.system/schemaTokenReq.json +53 -0
- package/entities/.system/schemaTokenResp.json +53 -0
- package/entities/Alarms/action.json +86 -0
- package/entities/Alarms/mockdatafiles/getAlarms-default.json +57 -0
- package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +60 -0
- package/entities/Alarms/mockdatafiles/patchAlarmsAlarmId-default.json +3 -0
- package/entities/Alarms/schema.json +22 -0
- package/entities/ApiVersions/action.json +25 -0
- package/entities/ApiVersions/mockdatafiles/getApiVersions-default.json +20 -0
- package/entities/ApiVersions/schema.json +19 -0
- package/entities/Configuration/action.json +45 -0
- package/entities/Configuration/mockdatafiles/getConfiguration-default.json +1751 -0
- package/entities/Configuration/mockdatafiles/patchConfiguration-default.json +1119 -0
- package/entities/Configuration/schema.json +20 -0
- package/entities/Indicators/action.json +67 -0
- package/entities/Indicators/mockdatafiles/getIndicators-default.json +30 -0
- package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceId-default.json +58 -0
- package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceIdIndicatorId-default.json +14 -0
- package/entities/Indicators/schema.json +21 -0
- package/entities/PmJobs/action.json +127 -0
- package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +255 -0
- package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +73 -0
- package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +154 -0
- package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +21 -0
- package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +59 -0
- package/entities/PmJobs/schema.json +24 -0
- package/entities/Subscriptions/action.json +86 -0
- package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +1830 -0
- package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +576 -0
- package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +3522 -0
- package/entities/Subscriptions/schema.json +22 -0
- package/entities/Thresholds/action.json +106 -0
- package/entities/Thresholds/mockdatafiles/getThresholds-default.json +27 -0
- package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +32 -0
- package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +21 -0
- package/entities/Thresholds/mockdatafiles/postThresholds-default.json +32 -0
- package/entities/Thresholds/schema.json +23 -0
- package/entities/VnfInstances/action.json +326 -0
- package/entities/VnfInstances/mockdatafiles/deleteVnfInstancesVnfInstanceId-default.json +18 -0
- package/entities/VnfInstances/mockdatafiles/getVnfInstances-default.json +72335 -0
- package/entities/VnfInstances/mockdatafiles/getVnfInstancesVnfInstanceId-default.json +38948 -0
- package/entities/VnfInstances/mockdatafiles/postVnfInstances-default.json +27933 -0
- package/entities/VnfInstances/schema.json +34 -0
- package/entities/VnfLcmOpOccs/action.json +126 -0
- package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccs-default.json +1093 -0
- package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccsVnfLcmOpOccId-default.json +876 -0
- package/entities/VnfLcmOpOccs/mockdatafiles/postVnfLcmOpOccsVnfLcmOpOccIdFail-default.json +992 -0
- package/entities/VnfLcmOpOccs/schema.json +24 -0
- package/entities/VnfSnapshots/action.json +86 -0
- package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshots-default.json +119501 -0
- package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshotsVnfSnapshotInfoId-default.json +4189 -0
- package/entities/VnfSnapshots/mockdatafiles/postVnfSnapshots-default.json +10807 -0
- package/entities/VnfSnapshots/schema.json +22 -0
- package/error.json +184 -0
- package/package.json +85 -0
- package/pronghorn.json +17957 -0
- package/propertiesSchema.json +840 -0
- package/refs?service=git-upload-pack +0 -0
- package/report/creationReport.json +183 -0
- package/report/sol002_vnf_openapi.json +3367 -0
- package/report/updateReport1646157460770.json +95 -0
- package/sampleProperties.json +106 -0
- package/test/integration/adapterTestBasicGet.js +85 -0
- package/test/integration/adapterTestConnectivity.js +93 -0
- package/test/integration/adapterTestIntegration.js +2362 -0
- package/test/unit/adapterBaseTestUnit.js +944 -0
- package/test/unit/adapterTestUnit.js +2967 -0
- package/utils/addAuth.js +94 -0
- package/utils/artifactize.js +146 -0
- package/utils/basicGet.js +50 -0
- package/utils/checkMigrate.js +63 -0
- package/utils/entitiesToDB.js +224 -0
- package/utils/findPath.js +74 -0
- package/utils/modify.js +154 -0
- package/utils/packModificationScript.js +35 -0
- package/utils/patches2bundledDeps.js +90 -0
- package/utils/pre-commit.sh +27 -0
- package/utils/removeHooks.js +20 -0
- package/utils/setup.js +33 -0
- package/utils/tbScript.js +169 -0
- package/utils/tbUtils.js +451 -0
- package/utils/testRunner.js +298 -0
- package/utils/troubleshootingAdapter.js +190 -0
- package/workflows/README.md +3 -0
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
"getVnfLcmOpOccs",
|
|
14
|
+
"getVnfLcmOpOccsVnfLcmOpOccId",
|
|
15
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdRetry",
|
|
16
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdRollback",
|
|
17
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdFail",
|
|
18
|
+
"postVnfLcmOpOccsVnfLcmOpOccIdCancel"
|
|
19
|
+
],
|
|
20
|
+
"external_name": "ph_request_type"
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"definitions": {}
|
|
24
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
{
|
|
2
|
+
"actions": [
|
|
3
|
+
{
|
|
4
|
+
"name": "postVnfSnapshots",
|
|
5
|
+
"protocol": "REST",
|
|
6
|
+
"method": "POST",
|
|
7
|
+
"entitypath": "{base_path}/{version}/vnflcm/v1/vnf_snapshots?{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/postVnfSnapshots-default.json"
|
|
20
|
+
}
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"name": "getVnfSnapshots",
|
|
25
|
+
"protocol": "REST",
|
|
26
|
+
"method": "GET",
|
|
27
|
+
"entitypath": "{base_path}/{version}/vnflcm/v1/vnf_snapshots?{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/getVnfSnapshots-default.json"
|
|
41
|
+
}
|
|
42
|
+
]
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"name": "getVnfSnapshotsVnfSnapshotInfoId",
|
|
46
|
+
"protocol": "REST",
|
|
47
|
+
"method": "GET",
|
|
48
|
+
"entitypath": "{base_path}/{version}/vnflcm/v1/vnf_snapshots/{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/getVnfSnapshotsVnfSnapshotInfoId-default.json"
|
|
62
|
+
}
|
|
63
|
+
]
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
"name": "deleteVnfSnapshotsVnfSnapshotInfoId",
|
|
67
|
+
"protocol": "REST",
|
|
68
|
+
"method": "DELETE",
|
|
69
|
+
"entitypath": "{base_path}/{version}/vnflcm/v1/vnf_snapshots/{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": ""
|
|
82
|
+
}
|
|
83
|
+
]
|
|
84
|
+
}
|
|
85
|
+
]
|
|
86
|
+
}
|