@itentialopensource/adapter-etsi_sol003 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 (113) 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 +8178 -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 +46 -0
  21. package/entities/Alarms/mockdatafiles/getAlarmsAlarmId-default.json +50 -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 +10 -0
  26. package/entities/ApiVersions/schema.json +19 -0
  27. package/entities/Grants/action.json +45 -0
  28. package/entities/Grants/mockdatafiles/getGrantsGrantId-default.json +1041 -0
  29. package/entities/Grants/mockdatafiles/postGrants-default.json +1290 -0
  30. package/entities/Grants/schema.json +20 -0
  31. package/entities/Indicators/action.json +108 -0
  32. package/entities/Indicators/mockdatafiles/getIndicators-default.json +58 -0
  33. package/entities/Indicators/mockdatafiles/getIndicatorsSubscriptionsSubscriptionId-default.json +2038 -0
  34. package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceId-default.json +16 -0
  35. package/entities/Indicators/mockdatafiles/getIndicatorsVnfInstanceIdIndicatorId-default.json +14 -0
  36. package/entities/Indicators/schema.json +23 -0
  37. package/entities/OnboardedVnfPackages/action.json +151 -0
  38. package/entities/OnboardedVnfPackages/mockdatafiles/getOnboardedVnfPackages-default.json +161 -0
  39. package/entities/OnboardedVnfPackages/mockdatafiles/getOnboardedVnfPackagesVnfdId-default.json +235 -0
  40. package/entities/OnboardedVnfPackages/schema.json +25 -0
  41. package/entities/PmJobs/action.json +127 -0
  42. package/entities/PmJobs/mockdatafiles/getPmJobs-default.json +217 -0
  43. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobId-default.json +77 -0
  44. package/entities/PmJobs/mockdatafiles/getPmJobsPmJobIdReportsReportId-default.json +212 -0
  45. package/entities/PmJobs/mockdatafiles/patchPmJobsPmJobId-default.json +26 -0
  46. package/entities/PmJobs/mockdatafiles/postPmJobs-default.json +77 -0
  47. package/entities/PmJobs/schema.json +24 -0
  48. package/entities/Subscriptions/action.json +86 -0
  49. package/entities/Subscriptions/mockdatafiles/getSubscriptions-default.json +147 -0
  50. package/entities/Subscriptions/mockdatafiles/getSubscriptionsSubscriptionId-default.json +41 -0
  51. package/entities/Subscriptions/mockdatafiles/postSubscriptions-default.json +44 -0
  52. package/entities/Subscriptions/schema.json +33 -0
  53. package/entities/Thresholds/action.json +106 -0
  54. package/entities/Thresholds/mockdatafiles/getThresholds-default.json +62 -0
  55. package/entities/Thresholds/mockdatafiles/getThresholdsThresholdId-default.json +30 -0
  56. package/entities/Thresholds/mockdatafiles/patchThresholdsThresholdId-default.json +18 -0
  57. package/entities/Thresholds/mockdatafiles/postThresholds-default.json +31 -0
  58. package/entities/Thresholds/schema.json +23 -0
  59. package/entities/VnfInstances/action.json +326 -0
  60. package/entities/VnfInstances/mockdatafiles/getVnfInstances-default.json +76043 -0
  61. package/entities/VnfInstances/mockdatafiles/getVnfInstancesVnfInstanceId-default.json +16746 -0
  62. package/entities/VnfInstances/mockdatafiles/patchVnfInstancesVnfInstanceId-default.json +14159 -0
  63. package/entities/VnfInstances/mockdatafiles/postVnfInstances-default.json +24811 -0
  64. package/entities/VnfInstances/schema.json +34 -0
  65. package/entities/VnfLcmOpOccs/action.json +126 -0
  66. package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccs-default.json +1098 -0
  67. package/entities/VnfLcmOpOccs/mockdatafiles/getVnfLcmOpOccsVnfLcmOpOccId-default.json +755 -0
  68. package/entities/VnfLcmOpOccs/mockdatafiles/postVnfLcmOpOccsVnfLcmOpOccIdFail-default.json +988 -0
  69. package/entities/VnfLcmOpOccs/schema.json +24 -0
  70. package/entities/VnfPackages/action.json +130 -0
  71. package/entities/VnfPackages/mockdatafiles/getVnfPackagesVnfPkgId-default.json +166 -0
  72. package/entities/VnfPackages/schema.json +24 -0
  73. package/entities/VnfSnapshotPackages/action.json +88 -0
  74. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackages-default.json +178 -0
  75. package/entities/VnfSnapshotPackages/mockdatafiles/getVnfSnapshotPackagesVnfSnapshotPkgId-default.json +44 -0
  76. package/entities/VnfSnapshotPackages/schema.json +22 -0
  77. package/entities/VnfSnapshots/action.json +127 -0
  78. package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshots-default.json +3832 -0
  79. package/entities/VnfSnapshots/mockdatafiles/getVnfSnapshotsVnfSnapshotInfoId-default.json +97152 -0
  80. package/entities/VnfSnapshots/mockdatafiles/patchVnfSnapshotsVnfSnapshotInfoId-default.json +30772 -0
  81. package/entities/VnfSnapshots/mockdatafiles/postVnfSnapshots-default.json +13292 -0
  82. package/entities/VnfSnapshots/schema.json +24 -0
  83. package/error.json +184 -0
  84. package/package.json +85 -0
  85. package/pronghorn.json +27747 -0
  86. package/propertiesSchema.json +840 -0
  87. package/refs?service=git-upload-pack +0 -0
  88. package/report/creationReport.json +189 -0
  89. package/report/sol003_virtual_openapi.json +4328 -0
  90. package/report/updateReport1646242954642.json +95 -0
  91. package/sampleProperties.json +106 -0
  92. package/test/integration/adapterTestBasicGet.js +85 -0
  93. package/test/integration/adapterTestConnectivity.js +93 -0
  94. package/test/integration/adapterTestIntegration.js +3597 -0
  95. package/test/unit/adapterBaseTestUnit.js +944 -0
  96. package/test/unit/adapterTestUnit.js +3564 -0
  97. package/utils/addAuth.js +94 -0
  98. package/utils/artifactize.js +146 -0
  99. package/utils/basicGet.js +50 -0
  100. package/utils/checkMigrate.js +63 -0
  101. package/utils/entitiesToDB.js +224 -0
  102. package/utils/findPath.js +74 -0
  103. package/utils/modify.js +154 -0
  104. package/utils/packModificationScript.js +35 -0
  105. package/utils/patches2bundledDeps.js +90 -0
  106. package/utils/pre-commit.sh +27 -0
  107. package/utils/removeHooks.js +20 -0
  108. package/utils/setup.js +33 -0
  109. package/utils/tbScript.js +169 -0
  110. package/utils/tbUtils.js +451 -0
  111. package/utils/testRunner.js +298 -0
  112. package/utils/troubleshootingAdapter.js +190 -0
  113. package/workflows/README.md +3 -0
@@ -0,0 +1,20 @@
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
+ "postGrants",
14
+ "getGrantsGrantId"
15
+ ],
16
+ "external_name": "ph_request_type"
17
+ }
18
+ },
19
+ "definitions": {}
20
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "getIndicators",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/vnfind/v1/indicators?{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/getIndicators-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "getIndicatorsVnfInstanceId",
26
+ "protocol": "REST",
27
+ "method": "GET",
28
+ "entitypath": "{base_path}/{version}/vnfind/v1/indicators/{pathv1}?{query}",
29
+ "requestSchema": "schema.json",
30
+ "responseSchema": "schema.json",
31
+ "timeout": 0,
32
+ "sendEmpty": false,
33
+ "sendGetBody": false,
34
+ "requestDatatype": "JSON",
35
+ "responseDatatype": "JSON",
36
+ "headers": {},
37
+ "responseObjects": [
38
+ {
39
+ "type": "default",
40
+ "key": "",
41
+ "mockFile": "mockdatafiles/getIndicatorsVnfInstanceId-default.json"
42
+ }
43
+ ]
44
+ },
45
+ {
46
+ "name": "getIndicatorsVnfInstanceIdIndicatorId",
47
+ "protocol": "REST",
48
+ "method": "GET",
49
+ "entitypath": "{base_path}/{version}/vnfind/v1/indicators/{pathv1}/{pathv2}?{query}",
50
+ "requestSchema": "schema.json",
51
+ "responseSchema": "schema.json",
52
+ "timeout": 0,
53
+ "sendEmpty": false,
54
+ "sendGetBody": false,
55
+ "requestDatatype": "JSON",
56
+ "responseDatatype": "JSON",
57
+ "headers": {},
58
+ "responseObjects": [
59
+ {
60
+ "type": "default",
61
+ "key": "",
62
+ "mockFile": "mockdatafiles/getIndicatorsVnfInstanceIdIndicatorId-default.json"
63
+ }
64
+ ]
65
+ },
66
+ {
67
+ "name": "getIndicatorsSubscriptionsSubscriptionId",
68
+ "protocol": "REST",
69
+ "method": "GET",
70
+ "entitypath": "{base_path}/{version}/vnfind/v1/indicators/subscriptions/{pathv1}?{query}",
71
+ "requestSchema": "schema.json",
72
+ "responseSchema": "schema.json",
73
+ "timeout": 0,
74
+ "sendEmpty": false,
75
+ "sendGetBody": false,
76
+ "requestDatatype": "JSON",
77
+ "responseDatatype": "JSON",
78
+ "headers": {},
79
+ "responseObjects": [
80
+ {
81
+ "type": "default",
82
+ "key": "",
83
+ "mockFile": "mockdatafiles/getIndicatorsSubscriptionsSubscriptionId-default.json"
84
+ }
85
+ ]
86
+ },
87
+ {
88
+ "name": "deleteIndicatorsSubscriptionsSubscriptionId",
89
+ "protocol": "REST",
90
+ "method": "DELETE",
91
+ "entitypath": "{base_path}/{version}/vnfind/v1/indicators/subscriptions/{pathv1}?{query}",
92
+ "requestSchema": "schema.json",
93
+ "responseSchema": "schema.json",
94
+ "timeout": 0,
95
+ "sendEmpty": false,
96
+ "requestDatatype": "JSON",
97
+ "responseDatatype": "JSON",
98
+ "headers": {},
99
+ "responseObjects": [
100
+ {
101
+ "type": "default",
102
+ "key": "",
103
+ "mockFile": ""
104
+ }
105
+ ]
106
+ }
107
+ ]
108
+ }
@@ -0,0 +1,58 @@
1
+ [
2
+ {
3
+ "id": "string",
4
+ "name": "string",
5
+ "value": {},
6
+ "vnfInstanceId": "string",
7
+ "_links": {
8
+ "self": {
9
+ "href": "string"
10
+ },
11
+ "vnfInstance": {
12
+ "href": "string"
13
+ }
14
+ }
15
+ },
16
+ {
17
+ "id": "string",
18
+ "name": "string",
19
+ "value": {},
20
+ "vnfInstanceId": "string",
21
+ "_links": {
22
+ "self": {
23
+ "href": "string"
24
+ },
25
+ "vnfInstance": {
26
+ "href": "string"
27
+ }
28
+ }
29
+ },
30
+ {
31
+ "id": "string",
32
+ "name": "string",
33
+ "value": {},
34
+ "vnfInstanceId": "string",
35
+ "_links": {
36
+ "self": {
37
+ "href": "string"
38
+ },
39
+ "vnfInstance": {
40
+ "href": "string"
41
+ }
42
+ }
43
+ },
44
+ {
45
+ "id": "string",
46
+ "name": "string",
47
+ "value": {},
48
+ "vnfInstanceId": "string",
49
+ "_links": {
50
+ "self": {
51
+ "href": "string"
52
+ },
53
+ "vnfInstance": {
54
+ "href": "string"
55
+ }
56
+ }
57
+ }
58
+ ]