@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
@@ -0,0 +1,136 @@
1
+ {
2
+ "id": "string",
3
+ "nsdId": "string",
4
+ "nsdName": "string",
5
+ "nsdVersion": "string",
6
+ "nsdDesigner": "string",
7
+ "nsdInvariantId": "string",
8
+ "vnfPkgIds": [
9
+ "string",
10
+ "string",
11
+ "string",
12
+ "string",
13
+ "string",
14
+ "string",
15
+ "string",
16
+ "string"
17
+ ],
18
+ "pnfdInfoIds": [
19
+ "string",
20
+ "string",
21
+ "string",
22
+ "string",
23
+ "string",
24
+ "string",
25
+ "string",
26
+ "string"
27
+ ],
28
+ "nestedNsdInfoIds": [
29
+ "string",
30
+ "string",
31
+ "string"
32
+ ],
33
+ "archiveSecurityOption": "OPTION_2",
34
+ "signingCertificate": "string",
35
+ "artifacts": [
36
+ {
37
+ "artifactPath": "string",
38
+ "checksum": {
39
+ "algorithm": "string",
40
+ "hash": "string"
41
+ },
42
+ "metadata": {}
43
+ },
44
+ {
45
+ "artifactPath": "string",
46
+ "checksum": {
47
+ "algorithm": "string",
48
+ "hash": "string"
49
+ },
50
+ "metadata": {}
51
+ },
52
+ {
53
+ "artifactPath": "string",
54
+ "checksum": {
55
+ "algorithm": "string",
56
+ "hash": "string"
57
+ },
58
+ "metadata": {}
59
+ },
60
+ {
61
+ "artifactPath": "string",
62
+ "checksum": {
63
+ "algorithm": "string",
64
+ "hash": "string"
65
+ },
66
+ "metadata": {}
67
+ },
68
+ {
69
+ "artifactPath": "string",
70
+ "checksum": {
71
+ "algorithm": "string",
72
+ "hash": "string"
73
+ },
74
+ "metadata": {}
75
+ },
76
+ {
77
+ "artifactPath": "string",
78
+ "checksum": {
79
+ "algorithm": "string",
80
+ "hash": "string"
81
+ },
82
+ "metadata": {}
83
+ },
84
+ {
85
+ "artifactPath": "string",
86
+ "checksum": {
87
+ "algorithm": "string",
88
+ "hash": "string"
89
+ },
90
+ "metadata": {}
91
+ },
92
+ {
93
+ "artifactPath": "string",
94
+ "checksum": {
95
+ "algorithm": "string",
96
+ "hash": "string"
97
+ },
98
+ "metadata": {}
99
+ },
100
+ {
101
+ "artifactPath": "string",
102
+ "checksum": {
103
+ "algorithm": "string",
104
+ "hash": "string"
105
+ },
106
+ "metadata": {}
107
+ },
108
+ {
109
+ "artifactPath": "string",
110
+ "checksum": {
111
+ "algorithm": "string",
112
+ "hash": "string"
113
+ },
114
+ "metadata": {}
115
+ }
116
+ ],
117
+ "nsdOnboardingState": "ONBOARDED",
118
+ "onboardingFailureDetails": {
119
+ "type": "string",
120
+ "title": "string",
121
+ "status": 3,
122
+ "detail": "string",
123
+ "instance": "string"
124
+ },
125
+ "nsdOperationalState": "DISABLED",
126
+ "nsdUsageState": "NOT_IN_USE",
127
+ "userDefinedData": {},
128
+ "_links": {
129
+ "self": {
130
+ "href": "string"
131
+ },
132
+ "nsd_content": {
133
+ "href": "string"
134
+ }
135
+ }
136
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "$id": "schema.json",
3
+ "type": "object",
4
+ "schema": "http://json-schema.org/draft-07/schema#",
5
+ "translate": true,
6
+ "dynamicfields": true,
7
+ "properties": {
8
+ "ph_request_type": {
9
+ "type": "string",
10
+ "description": "type of request (internal to adapter)",
11
+ "default": "postNsDescriptors",
12
+ "enum": [
13
+ "postNsDescriptors",
14
+ "getNsDescriptors",
15
+ "getNsDescriptorsNsdInfoId",
16
+ "patchNsDescriptorsNsdInfoId",
17
+ "deleteNsDescriptorsNsdInfoId",
18
+ "getNsDescriptorsNsdInfoIdNsdContent",
19
+ "putNsDescriptorsNsdInfoIdNsdContent",
20
+ "getNsDescriptorsNsdInfoIdNsd",
21
+ "getNsDescriptorsNsdInfoIdManifest",
22
+ "getNsDescriptorsNsdInfoIdArtifactsArtifactPath"
23
+ ],
24
+ "external_name": "ph_request_type"
25
+ },
26
+ "allFields": {
27
+ "type": "string",
28
+ "description": "Include all complex attributes in the response. See clause 5.3 of ETSI GS NFV-SOL 013. The NFV-MANO functional entity shall support this parameter.",
29
+ "parse": false,
30
+ "encode": false,
31
+ "encrypt": {
32
+ "type": "AES",
33
+ "key": ""
34
+ },
35
+ "external_name": "all_fields"
36
+ },
37
+ "excludeFields": {
38
+ "type": "string",
39
+ "description": "Complex attributes to be excluded from the response. See clause 5.3 of ETSI GS NFV-SOL 013 for details. The NFV-MANO functional entity should support this parameter.",
40
+ "parse": false,
41
+ "encode": false,
42
+ "encrypt": {
43
+ "type": "AES",
44
+ "key": ""
45
+ },
46
+ "external_name": "exclude_fields"
47
+ },
48
+ "excludeDefault": {
49
+ "type": "string",
50
+ "description": "Indicates to exclude the following complex attributes from the response. See clause 5.3 of ETSI GS NFV-SOL 013 for details. The NFV-MANO functional entity shall support t...(description truncated)",
51
+ "parse": false,
52
+ "encode": false,
53
+ "encrypt": {
54
+ "type": "AES",
55
+ "key": ""
56
+ },
57
+ "external_name": "exclude_default"
58
+ },
59
+ "nextpageOpaqueMarker": {
60
+ "type": "string",
61
+ "description": "Marker to obtain the next page of a paged response. Shall be supported by the NFV-MANO functional entity if the entity supports alternative 2 (paging) according to clause...(description truncated)",
62
+ "parse": false,
63
+ "encode": false,
64
+ "encrypt": {
65
+ "type": "AES",
66
+ "key": ""
67
+ },
68
+ "external_name": "nextpage_opaque_marker"
69
+ },
70
+ "includeSignatures": {
71
+ "type": "string",
72
+ "description": "If this parameter is provided, the NFVO shall include in the ZIP archive the security information as specified above. This URI query parameter is a flag, i.e. it shall ha...(description truncated)",
73
+ "parse": false,
74
+ "encode": false,
75
+ "encrypt": {
76
+ "type": "AES",
77
+ "key": ""
78
+ },
79
+ "external_name": "include_signatures"
80
+ }
81
+ },
82
+ "definitions": {}
83
+ }
@@ -0,0 +1,186 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "querymultipleNSinstances",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances?{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/querymultipleNSinstances-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createaNSinstanceresource",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances?{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": ""
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "readanindividualNSinstanceresource",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_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": ""
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "deleteNSinstanceresource",
67
+ "protocol": "REST",
68
+ "method": "DELETE",
69
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_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": ""
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "instantiateaNS",
87
+ "protocol": "REST",
88
+ "method": "POST",
89
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances/{pathv1}/instantiate?{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": "scaleaNSinstance",
107
+ "protocol": "REST",
108
+ "method": "POST",
109
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances/{pathv1}/scale?{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": "updatesaNSinstance",
127
+ "protocol": "REST",
128
+ "method": "POST",
129
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances/{pathv1}/update?{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": "healaNSinstance",
147
+ "protocol": "REST",
148
+ "method": "POST",
149
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances/{pathv1}/heal?{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": "terminateaNSinstance",
167
+ "protocol": "REST",
168
+ "method": "POST",
169
+ "entitypath": "{base_path}/{version}/nslcm/v1/ns_instances/{pathv1}/terminate?{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
+ }