@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,151 @@
1
+ {
2
+ "id": "string",
3
+ "filter": {
4
+ "notificationTypes": [
5
+ "PnfdOnBoardingFailureNotification",
6
+ "PnfdOnBoardingNotification",
7
+ "NsdDeletionNotification"
8
+ ],
9
+ "nsdInfoId": [
10
+ "string",
11
+ "string"
12
+ ],
13
+ "nsdId": [
14
+ "string",
15
+ "string",
16
+ "string",
17
+ "string",
18
+ "string",
19
+ "string",
20
+ "string"
21
+ ],
22
+ "nsdName": [
23
+ "string",
24
+ "string",
25
+ "string",
26
+ "string",
27
+ "string",
28
+ "string",
29
+ "string",
30
+ "string",
31
+ "string",
32
+ "string"
33
+ ],
34
+ "nsdVersion": [
35
+ "string",
36
+ "string",
37
+ "string",
38
+ "string",
39
+ "string"
40
+ ],
41
+ "nsdDesigner": [
42
+ "string",
43
+ "string",
44
+ "string",
45
+ "string",
46
+ "string",
47
+ "string"
48
+ ],
49
+ "nsdInvariantId": [
50
+ "string",
51
+ "string",
52
+ "string",
53
+ "string",
54
+ "string",
55
+ "string"
56
+ ],
57
+ "vnfPkgIds": [
58
+ "string",
59
+ "string",
60
+ "string",
61
+ "string"
62
+ ],
63
+ "pnfdInfoIds": [
64
+ "string",
65
+ "string",
66
+ "string",
67
+ "string",
68
+ "string",
69
+ "string",
70
+ "string",
71
+ "string"
72
+ ],
73
+ "nestedNsdInfoIds": [
74
+ "string",
75
+ "string"
76
+ ],
77
+ "nsdOnboardingState": [
78
+ "CREATED",
79
+ "UPLOADING",
80
+ "PROCESSING",
81
+ "ERROR",
82
+ "PROCESSING",
83
+ "ERROR",
84
+ "ERROR",
85
+ "ERROR",
86
+ "UPLOADING"
87
+ ],
88
+ "nsdOperationalState": [
89
+ "ENABLED",
90
+ "DISABLED",
91
+ "ENABLED"
92
+ ],
93
+ "nsdUsageState": [
94
+ "IN_USE",
95
+ "NOT_IN_USE",
96
+ "NOT_IN_USE",
97
+ "NOT_IN_USE",
98
+ "NOT_IN_USE",
99
+ "IN_USE",
100
+ "IN_USE",
101
+ "NOT_IN_USE",
102
+ "NOT_IN_USE",
103
+ "NOT_IN_USE"
104
+ ],
105
+ "pnfdId": [
106
+ "string"
107
+ ],
108
+ "pnfdName": [
109
+ "string"
110
+ ],
111
+ "pnfdVersion": [
112
+ "string",
113
+ "string"
114
+ ],
115
+ "pnfdProvider": [
116
+ "string"
117
+ ],
118
+ "pnfdInvariantId": [
119
+ "string",
120
+ "string",
121
+ "string",
122
+ "string",
123
+ "string",
124
+ "string",
125
+ "string"
126
+ ],
127
+ "pnfdOnboardingState": [
128
+ "ERROR",
129
+ "CREATED",
130
+ "PROCESSING",
131
+ "ERROR",
132
+ "PROCESSING",
133
+ "ONBOARDING",
134
+ "PROCESSING",
135
+ "CREATED",
136
+ "UPLOADING",
137
+ "UPLOADING"
138
+ ],
139
+ "pnfdUsageState": [
140
+ "NOT_IN_USE",
141
+ "IN_USE",
142
+ "IN_USE"
143
+ ]
144
+ },
145
+ "callbackUri": "string",
146
+ "_links": {
147
+ "self": {
148
+ "href": "string"
149
+ }
150
+ }
151
+ }
@@ -0,0 +1,33 @@
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": "postSubscriptions",
12
+ "enum": [
13
+ "postSubscriptions",
14
+ "getSubscriptions",
15
+ "getSubscriptionsSubscriptionId",
16
+ "deleteSubscriptionsSubscriptionId"
17
+ ],
18
+ "external_name": "ph_request_type"
19
+ },
20
+ "nextpageOpaqueMarker": {
21
+ "type": "string",
22
+ "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)",
23
+ "parse": false,
24
+ "encode": false,
25
+ "encrypt": {
26
+ "type": "AES",
27
+ "key": ""
28
+ },
29
+ "external_name": "nextpage_opaque_marker"
30
+ }
31
+ },
32
+ "definitions": {}
33
+ }
@@ -0,0 +1,106 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "postThresholds",
5
+ "protocol": "REST",
6
+ "method": "POST",
7
+ "entitypath": "{base_path}/{version}/nspm/v2/thresholds?{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/postThresholds-default.json"
20
+ }
21
+ ]
22
+ },
23
+ {
24
+ "name": "getThresholds",
25
+ "protocol": "REST",
26
+ "method": "GET",
27
+ "entitypath": "{base_path}/{version}/nspm/v2/thresholds?{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/getThresholds-default.json"
41
+ }
42
+ ]
43
+ },
44
+ {
45
+ "name": "getThresholdsThresholdId",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/nspm/v2/thresholds/{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/getThresholdsThresholdId-default.json"
62
+ }
63
+ ]
64
+ },
65
+ {
66
+ "name": "patchThresholdsThresholdId",
67
+ "protocol": "REST",
68
+ "method": "PATCH",
69
+ "entitypath": "{base_path}/{version}/nspm/v2/thresholds/{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/patchThresholdsThresholdId-default.json"
82
+ }
83
+ ]
84
+ },
85
+ {
86
+ "name": "deleteThresholdsThresholdId",
87
+ "protocol": "REST",
88
+ "method": "DELETE",
89
+ "entitypath": "{base_path}/{version}/nspm/v2/thresholds/{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
+ }
@@ -0,0 +1,34 @@
1
+ [
2
+ {
3
+ "id": "string",
4
+ "objectType": null,
5
+ "objectInstanceId": "string",
6
+ "subObjectInstanceIds": [
7
+ "string",
8
+ "string",
9
+ "string",
10
+ "string",
11
+ "string",
12
+ "string",
13
+ "string",
14
+ "string",
15
+ "string",
16
+ "string"
17
+ ],
18
+ "criteria": {
19
+ "performanceMetric": "string",
20
+ "thresholdType": "SIMPLE",
21
+ "simpleThresholdDetails": {
22
+ "thresholdValue": 5,
23
+ "hysteresis": 5
24
+ }
25
+ },
26
+ "callbackUri": "string",
27
+ "_links": {
28
+ "self": {
29
+ "href": "string"
30
+ },
31
+ "object": null
32
+ }
33
+ }
34
+ ]
@@ -0,0 +1,30 @@
1
+ {
2
+ "id": "string",
3
+ "objectType": null,
4
+ "objectInstanceId": "string",
5
+ "subObjectInstanceIds": [
6
+ "string",
7
+ "string",
8
+ "string",
9
+ "string",
10
+ "string",
11
+ "string",
12
+ "string",
13
+ "string"
14
+ ],
15
+ "criteria": {
16
+ "performanceMetric": "string",
17
+ "thresholdType": "SIMPLE",
18
+ "simpleThresholdDetails": {
19
+ "thresholdValue": 8,
20
+ "hysteresis": 5
21
+ }
22
+ },
23
+ "callbackUri": "string",
24
+ "_links": {
25
+ "self": {
26
+ "href": "string"
27
+ },
28
+ "object": null
29
+ }
30
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "callbackUri": "string",
3
+ "authentication": {
4
+ "authType": [
5
+ "TLS_CERT",
6
+ "OAUTH2_CLIENT_CREDENTIALS"
7
+ ],
8
+ "paramsBasic": {
9
+ "userName": "string",
10
+ "password": "string"
11
+ },
12
+ "paramsOauth2ClientCredentials": {
13
+ "clientId": "string",
14
+ "clientPassword": "string",
15
+ "tokenEndpoint": "string"
16
+ }
17
+ }
18
+ }
@@ -0,0 +1,32 @@
1
+ {
2
+ "id": "string",
3
+ "objectType": null,
4
+ "objectInstanceId": "string",
5
+ "subObjectInstanceIds": [
6
+ "string",
7
+ "string",
8
+ "string",
9
+ "string",
10
+ "string",
11
+ "string",
12
+ "string",
13
+ "string",
14
+ "string",
15
+ "string"
16
+ ],
17
+ "criteria": {
18
+ "performanceMetric": "string",
19
+ "thresholdType": "SIMPLE",
20
+ "simpleThresholdDetails": {
21
+ "thresholdValue": 2,
22
+ "hysteresis": 3
23
+ }
24
+ },
25
+ "callbackUri": "string",
26
+ "_links": {
27
+ "self": {
28
+ "href": "string"
29
+ },
30
+ "object": null
31
+ }
32
+ }
@@ -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
+ }