@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.
Files changed (100) 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 +6149 -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 +86 -0
  20. package/entities/Alarms/mockdatafiles/getAlarms-default.json +57 -0
  21. package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +60 -0
  22. package/entities/Alarms/mockdatafiles/patchAlarmsAlarmId-default.json +3 -0
  23. package/entities/Alarms/schema.json +22 -0
  24. package/entities/ApiVersions/action.json +25 -0
  25. package/entities/ApiVersions/mockdatafiles/getApiVersions-default.json +20 -0
  26. package/entities/ApiVersions/schema.json +19 -0
  27. package/entities/Configuration/action.json +45 -0
  28. package/entities/Configuration/mockdatafiles/getConfiguration-default.json +1751 -0
  29. package/entities/Configuration/mockdatafiles/patchConfiguration-default.json +1119 -0
  30. package/entities/Configuration/schema.json +20 -0
  31. package/entities/Indicators/action.json +67 -0
  32. package/entities/Indicators/mockdatafiles/getIndicators-default.json +30 -0
  33. package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceId-default.json +58 -0
  34. package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceIdIndicatorId-default.json +14 -0
  35. package/entities/Indicators/schema.json +21 -0
  36. package/entities/PmJobs/action.json +127 -0
  37. package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +255 -0
  38. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +73 -0
  39. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +154 -0
  40. package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +21 -0
  41. package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +59 -0
  42. package/entities/PmJobs/schema.json +24 -0
  43. package/entities/Subscriptions/action.json +86 -0
  44. package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +1830 -0
  45. package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +576 -0
  46. package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +3522 -0
  47. package/entities/Subscriptions/schema.json +22 -0
  48. package/entities/Thresholds/action.json +106 -0
  49. package/entities/Thresholds/mockdatafiles/getThresholds-default.json +27 -0
  50. package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +32 -0
  51. package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +21 -0
  52. package/entities/Thresholds/mockdatafiles/postThresholds-default.json +32 -0
  53. package/entities/Thresholds/schema.json +23 -0
  54. package/entities/VnfInstances/action.json +326 -0
  55. package/entities/VnfInstances/mockdatafiles/deleteVnfInstancesVnfInstanceId-default.json +18 -0
  56. package/entities/VnfInstances/mockdatafiles/getVnfInstances-default.json +72335 -0
  57. package/entities/VnfInstances/mockdatafiles/getVnfInstancesVnfInstanceId-default.json +38948 -0
  58. package/entities/VnfInstances/mockdatafiles/postVnfInstances-default.json +27933 -0
  59. package/entities/VnfInstances/schema.json +34 -0
  60. package/entities/VnfLcmOpOccs/action.json +126 -0
  61. package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccs-default.json +1093 -0
  62. package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccsVnfLcmOpOccId-default.json +876 -0
  63. package/entities/VnfLcmOpOccs/mockdatafiles/postVnfLcmOpOccsVnfLcmOpOccIdFail-default.json +992 -0
  64. package/entities/VnfLcmOpOccs/schema.json +24 -0
  65. package/entities/VnfSnapshots/action.json +86 -0
  66. package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshots-default.json +119501 -0
  67. package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshotsVnfSnapshotInfoId-default.json +4189 -0
  68. package/entities/VnfSnapshots/mockdatafiles/postVnfSnapshots-default.json +10807 -0
  69. package/entities/VnfSnapshots/schema.json +22 -0
  70. package/error.json +184 -0
  71. package/package.json +85 -0
  72. package/pronghorn.json +17957 -0
  73. package/propertiesSchema.json +840 -0
  74. package/refs?service=git-upload-pack +0 -0
  75. package/report/creationReport.json +183 -0
  76. package/report/sol002_vnf_openapi.json +3367 -0
  77. package/report/updateReport1646157460770.json +95 -0
  78. package/sampleProperties.json +106 -0
  79. package/test/integration/adapterTestBasicGet.js +85 -0
  80. package/test/integration/adapterTestConnectivity.js +93 -0
  81. package/test/integration/adapterTestIntegration.js +2362 -0
  82. package/test/unit/adapterBaseTestUnit.js +944 -0
  83. package/test/unit/adapterTestUnit.js +2967 -0
  84. package/utils/addAuth.js +94 -0
  85. package/utils/artifactize.js +146 -0
  86. package/utils/basicGet.js +50 -0
  87. package/utils/checkMigrate.js +63 -0
  88. package/utils/entitiesToDB.js +224 -0
  89. package/utils/findPath.js +74 -0
  90. package/utils/modify.js +154 -0
  91. package/utils/packModificationScript.js +35 -0
  92. package/utils/patches2bundledDeps.js +90 -0
  93. package/utils/pre-commit.sh +27 -0
  94. package/utils/removeHooks.js +20 -0
  95. package/utils/setup.js +33 -0
  96. package/utils/tbScript.js +169 -0
  97. package/utils/tbUtils.js +451 -0
  98. package/utils/testRunner.js +298 -0
  99. package/utils/troubleshootingAdapter.js +190 -0
  100. package/workflows/README.md +3 -0
@@ -0,0 +1,154 @@
1
+ {
2
+ "entries": [
3
+ {
4
+ "objectType": "string",
5
+ "objectInstanceId": "string",
6
+ "subObjectInstanceId": "string",
7
+ "performanceMetric": "string",
8
+ "performanceValues": [
9
+ {
10
+ "timeStamp": "string",
11
+ "value": {},
12
+ "context": {}
13
+ },
14
+ {
15
+ "timeStamp": "string",
16
+ "value": {},
17
+ "context": {}
18
+ },
19
+ {
20
+ "timeStamp": "string",
21
+ "value": {},
22
+ "context": {}
23
+ },
24
+ {
25
+ "timeStamp": "string",
26
+ "value": {},
27
+ "context": {}
28
+ },
29
+ {
30
+ "timeStamp": "string",
31
+ "value": {},
32
+ "context": {}
33
+ }
34
+ ]
35
+ },
36
+ {
37
+ "objectType": "string",
38
+ "objectInstanceId": "string",
39
+ "subObjectInstanceId": "string",
40
+ "performanceMetric": "string",
41
+ "performanceValues": [
42
+ {
43
+ "timeStamp": "string",
44
+ "value": {},
45
+ "context": {}
46
+ }
47
+ ]
48
+ },
49
+ {
50
+ "objectType": "string",
51
+ "objectInstanceId": "string",
52
+ "subObjectInstanceId": "string",
53
+ "performanceMetric": "string",
54
+ "performanceValues": [
55
+ {
56
+ "timeStamp": "string",
57
+ "value": {},
58
+ "context": {}
59
+ },
60
+ {
61
+ "timeStamp": "string",
62
+ "value": {},
63
+ "context": {}
64
+ },
65
+ {
66
+ "timeStamp": "string",
67
+ "value": {},
68
+ "context": {}
69
+ },
70
+ {
71
+ "timeStamp": "string",
72
+ "value": {},
73
+ "context": {}
74
+ },
75
+ {
76
+ "timeStamp": "string",
77
+ "value": {},
78
+ "context": {}
79
+ },
80
+ {
81
+ "timeStamp": "string",
82
+ "value": {},
83
+ "context": {}
84
+ },
85
+ {
86
+ "timeStamp": "string",
87
+ "value": {},
88
+ "context": {}
89
+ }
90
+ ]
91
+ },
92
+ {
93
+ "objectType": "string",
94
+ "objectInstanceId": "string",
95
+ "subObjectInstanceId": "string",
96
+ "performanceMetric": "string",
97
+ "performanceValues": [
98
+ {
99
+ "timeStamp": "string",
100
+ "value": {},
101
+ "context": {}
102
+ },
103
+ {
104
+ "timeStamp": "string",
105
+ "value": {},
106
+ "context": {}
107
+ },
108
+ {
109
+ "timeStamp": "string",
110
+ "value": {},
111
+ "context": {}
112
+ },
113
+ {
114
+ "timeStamp": "string",
115
+ "value": {},
116
+ "context": {}
117
+ }
118
+ ]
119
+ },
120
+ {
121
+ "objectType": "string",
122
+ "objectInstanceId": "string",
123
+ "subObjectInstanceId": "string",
124
+ "performanceMetric": "string",
125
+ "performanceValues": [
126
+ {
127
+ "timeStamp": "string",
128
+ "value": {},
129
+ "context": {}
130
+ },
131
+ {
132
+ "timeStamp": "string",
133
+ "value": {},
134
+ "context": {}
135
+ },
136
+ {
137
+ "timeStamp": "string",
138
+ "value": {},
139
+ "context": {}
140
+ },
141
+ {
142
+ "timeStamp": "string",
143
+ "value": {},
144
+ "context": {}
145
+ },
146
+ {
147
+ "timeStamp": "string",
148
+ "value": {},
149
+ "context": {}
150
+ }
151
+ ]
152
+ }
153
+ ]
154
+ }
@@ -0,0 +1,21 @@
1
+ {
2
+ "callbackUri": "string",
3
+ "authentication": {
4
+ "authType": [
5
+ "TLS_CERT",
6
+ "BASIC",
7
+ "TLS_CERT",
8
+ "BASIC",
9
+ "OAUTH2_CLIENT_CREDENTIALS"
10
+ ],
11
+ "paramsBasic": {
12
+ "userName": "string",
13
+ "password": "string"
14
+ },
15
+ "paramsOauth2ClientCredentials": {
16
+ "clientId": "string",
17
+ "clientPassword": "string",
18
+ "tokenEndpoint": "string"
19
+ }
20
+ }
21
+ }
@@ -0,0 +1,59 @@
1
+ {
2
+ "id": "string",
3
+ "objectType": "string",
4
+ "objectInstanceIds": [
5
+ "string",
6
+ "string",
7
+ "string",
8
+ "string"
9
+ ],
10
+ "subObjectInstanceIds": [
11
+ "string",
12
+ "string",
13
+ "string"
14
+ ],
15
+ "criteria": {
16
+ "performanceMetric": [
17
+ "string",
18
+ "string",
19
+ "string",
20
+ "string"
21
+ ],
22
+ "performanceMetricGroup": [
23
+ "string",
24
+ "string"
25
+ ],
26
+ "collectionPeriod": 5,
27
+ "reportingPeriod": 8,
28
+ "reportingBoundary": "string"
29
+ },
30
+ "callbackUri": "string",
31
+ "reports": {
32
+ "href": "string",
33
+ "readyTime": "string",
34
+ "expiryTime": "string",
35
+ "fileSize": 7
36
+ },
37
+ "_links": {
38
+ "self": {
39
+ "href": "string"
40
+ },
41
+ "objects": [
42
+ {
43
+ "href": "string"
44
+ },
45
+ {
46
+ "href": "string"
47
+ },
48
+ {
49
+ "href": "string"
50
+ },
51
+ {
52
+ "href": "string"
53
+ },
54
+ {
55
+ "href": "string"
56
+ }
57
+ ]
58
+ }
59
+ }
@@ -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
+ "getPmJobs",
14
+ "postPmJobs",
15
+ "getPmJobsPmJobId",
16
+ "deletePmJobsPmJobId",
17
+ "patchPmJobsPmJobId",
18
+ "getPmJobsPmJobIdReportsReportId"
19
+ ],
20
+ "external_name": "ph_request_type"
21
+ }
22
+ },
23
+ "definitions": {}
24
+ }
@@ -0,0 +1,86 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getSubscriptions",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/vnflcm/v1/subscriptions?{query}",
8
+ "requestSchema": "schema.json",
9
+ "responseSchema": "schema.json",
10
+ "timeout": 0,
11
+ "sendEmpty": false,
12
+ "sendGetBody": false,
13
+ "requestDatatype": "JSON",
14
+ "responseDatatype": "JSON",
15
+ "headers": {},
16
+ "responseObjects": [
17
+ {
18
+ "type": "default",
19
+ "key": "",
20
+ "mockFile": "mockdatafiles/getSubscriptions-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "postSubscriptions",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/vnflcm/v1/subscriptions?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "requestDatatype": "JSON",
34
+ "responseDatatype": "JSON",
35
+ "headers": {},
36
+ "responseObjects": [
37
+ {
38
+ "type": "default",
39
+ "key": "",
40
+ "mockFile": "mockdatafiles/postSubscriptions-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getSubscriptionsSubscriptionId",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/vnflcm/v1/subscriptions/{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/getSubscriptionsSubscriptionId-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "deleteSubscriptionsSubscriptionId",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/vnflcm/v1/subscriptions/{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
+ }