@itentialopensource/adapter-viptela 0.8.0 → 0.10.0

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 (141) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/ENHANCE.md +69 -0
  3. package/PROPERTIES.md +247 -0
  4. package/README.md +113 -470
  5. package/SUMMARY.md +9 -0
  6. package/TROUBLESHOOT.md +46 -0
  7. package/adapter.js +33515 -61
  8. package/adapterBase.js +581 -279
  9. package/entities/.generic/action.json +5 -5
  10. package/entities/AdministrationAuditLog/action.json +252 -0
  11. package/entities/AdministrationAuditLog/schema.json +30 -0
  12. package/entities/AdministrationUserAndGroup/action.json +533 -0
  13. package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroups-default.json +4 -0
  14. package/entities/AdministrationUserAndGroup/mockdatafiles/findUserGroupsAsKeyValue-default.json +5 -0
  15. package/entities/AdministrationUserAndGroup/mockdatafiles/findUsers-default.json +3 -0
  16. package/entities/AdministrationUserAndGroup/mockdatafiles/getColoGroups-default.json +6 -0
  17. package/entities/AdministrationUserAndGroup/mockdatafiles/getVpnGroups-default.json +5 -0
  18. package/entities/AdministrationUserAndGroup/schema.json +44 -0
  19. package/entities/CertificateManagementDevice/action.json +517 -0
  20. package/entities/CertificateManagementDevice/mockdatafiles/getRootCertChains-default.json +3 -0
  21. package/entities/CertificateManagementDevice/schema.json +43 -0
  22. package/entities/ClusterManagement/action.json +477 -0
  23. package/entities/ClusterManagement/mockdatafiles/getConfiguredIPList-default.json +5 -0
  24. package/entities/ClusterManagement/mockdatafiles/getConnectedDevices-default.json +3 -0
  25. package/entities/ClusterManagement/mockdatafiles/getConnectedDevicesPerTenant-default.json +3 -0
  26. package/entities/ClusterManagement/mockdatafiles/getTenantsList-default.json +4 -0
  27. package/entities/ClusterManagement/mockdatafiles/listVmanages-default.json +4 -0
  28. package/entities/ClusterManagement/schema.json +41 -0
  29. package/entities/ColocationCluster/action.json +229 -0
  30. package/entities/ColocationCluster/schema.json +29 -0
  31. package/entities/ColocationServiceChain/action.json +86 -0
  32. package/entities/ColocationServiceChain/mockdatafiles/getEdgeDevices-default.json +5 -0
  33. package/entities/ColocationServiceChain/mockdatafiles/getpnfDevices-default.json +5 -0
  34. package/entities/ColocationServiceChain/schema.json +22 -0
  35. package/entities/ColocationServiceGroup/action.json +148 -0
  36. package/entities/ColocationServiceGroup/mockdatafiles/getAvailableChains-default.json +6 -0
  37. package/entities/ColocationServiceGroup/schema.json +25 -0
  38. package/entities/ConfigurationDisasterRecovery/action.json +696 -0
  39. package/entities/ConfigurationDisasterRecovery/mockdatafiles/downloadReplicationData-default.json +5 -0
  40. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getDisasterRecoveryStatus-default.json +6 -0
  41. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getLocalDataCenterState-default.json +6 -0
  42. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getReachabilityInfo-default.json +5 -0
  43. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDCMembersState-default.json +3 -0
  44. package/entities/ConfigurationDisasterRecovery/mockdatafiles/getRemoteDataCenterState-default.json +6 -0
  45. package/entities/ConfigurationDisasterRecovery/schema.json +52 -0
  46. package/entities/ConfigurationFeatureList/action.json +46 -0
  47. package/entities/ConfigurationFeatureList/schema.json +20 -0
  48. package/entities/CreateABackupSnapshot/action.json +24 -0
  49. package/entities/CreateABackupSnapshot/schema.json +19 -0
  50. package/entities/DataCollectionAgent/action.json +470 -0
  51. package/entities/DataCollectionAgent/mockdatafiles/getTemplatePolicyDefinitionsDCA-default.json +5 -0
  52. package/entities/DataCollectionAgent/mockdatafiles/getVPNListsDCA-default.json +3 -0
  53. package/entities/DataCollectionAgent/mockdatafiles/getVedgeTemplateListDCA-default.json +6 -0
  54. package/entities/DataCollectionAgent/mockdatafiles/getVsmartTemplateListDCA-default.json +5 -0
  55. package/entities/DataCollectionAgent/mockdatafiles/listAllDevicesDCA-default.json +5 -0
  56. package/entities/DataCollectionAgent/schema.json +41 -0
  57. package/entities/DeviceActions/action.json +243 -0
  58. package/entities/DeviceActions/mockdatafiles/generateSecurityDevicesList-default.json +5 -0
  59. package/entities/DeviceActions/schema.json +13 -1
  60. package/entities/DeviceConfigHistory/action.json +294 -0
  61. package/entities/DeviceConfigHistory/schema.json +32 -0
  62. package/entities/MonitoringAlarmsDetails/action.json +684 -0
  63. package/entities/MonitoringAlarmsDetails/mockdatafiles/listDisabledAlarm-default.json +5 -0
  64. package/entities/MonitoringAlarmsDetails/schema.json +51 -0
  65. package/entities/MonitoringColocationCluster/action.json +360 -0
  66. package/entities/MonitoringColocationCluster/mockdatafiles/getClusterConfigByClusterId-default.json +3 -0
  67. package/entities/MonitoringColocationCluster/mockdatafiles/getClusterPortMappingByClusterId-default.json +3 -0
  68. package/entities/MonitoringColocationCluster/mockdatafiles/getPNFConfig-default.json +3 -0
  69. package/entities/MonitoringColocationCluster/mockdatafiles/getServiceGroupByClusterId-default.json +3 -0
  70. package/entities/MonitoringColocationCluster/mockdatafiles/getSystemStatusByDeviceId-default.json +6 -0
  71. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFAlarmCount-default.json +6 -0
  72. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsCountDetail-default.json +4 -0
  73. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFEventsDetail-default.json +3 -0
  74. package/entities/MonitoringColocationCluster/mockdatafiles/getVNFInterfaceDetail-default.json +3 -0
  75. package/entities/MonitoringColocationCluster/mockdatafiles/getpnfDetails-default.json +5 -0
  76. package/entities/MonitoringColocationCluster/mockdatafiles/getvnfByDeviceId-default.json +4 -0
  77. package/entities/MonitoringColocationCluster/mockdatafiles/listNetworkFunctionMap-default.json +3 -0
  78. package/entities/MonitoringColocationCluster/schema.json +35 -0
  79. package/entities/MonitoringDeviceDetails/action.json +40 -0
  80. package/entities/MonitoringDeviceDetails/schema.json +3 -1
  81. package/entities/MonitoringDeviceStatisticsDetails/action.json +109 -0
  82. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/generateDeviceStatisticsData-default.json +3 -0
  83. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getActiveAlarms-default.json +5 -0
  84. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatDataFieldsByStateDataType-default.json +6 -0
  85. package/entities/MonitoringDeviceStatisticsDetails/mockdatafiles/getStatisticsType-default.json +4 -0
  86. package/entities/MonitoringDeviceStatisticsDetails/schema.json +23 -0
  87. package/entities/MonitoringEvents/action.json +378 -0
  88. package/entities/MonitoringEvents/mockdatafiles/getComponentsAsKeyValue-default.json +4 -0
  89. package/entities/MonitoringEvents/mockdatafiles/getEventTypesAsKeyValue-default.json +3 -0
  90. package/entities/MonitoringEvents/schema.json +36 -0
  91. package/entities/RealTimeMonitoringAAA/action.json +109 -0
  92. package/entities/RealTimeMonitoringAAA/mockdatafiles/getAllDeviceUsers-default.json +5 -0
  93. package/entities/RealTimeMonitoringAAA/mockdatafiles/getUsersFromDevice-default.json +6 -0
  94. package/entities/RealTimeMonitoringAAA/schema.json +23 -0
  95. package/entities/SSLProxyCertificateManagementDevice/action.json +494 -0
  96. package/entities/SSLProxyCertificateManagementDevice/mockdatafiles/getSslProxyList-default.json +4 -0
  97. package/entities/SSLProxyCertificateManagementDevice/schema.json +42 -0
  98. package/entities/ScheduledBackupRestore/action.json +189 -0
  99. package/entities/ScheduledBackupRestore/schema.json +27 -0
  100. package/entities/SystemCloudService/action.json +313 -0
  101. package/entities/SystemCloudService/schema.json +33 -0
  102. package/entities/SystemContainer/action.json +189 -0
  103. package/entities/SystemContainer/mockdatafiles/getCustomApp-default.json +3 -0
  104. package/entities/SystemContainer/schema.json +27 -0
  105. package/entities/TroubleshootingToolsDashboard/action.json +128 -0
  106. package/entities/TroubleshootingToolsDashboard/schema.json +24 -0
  107. package/entities/TroubleshootingToolsDeviceConnectivity/action.json +288 -0
  108. package/entities/TroubleshootingToolsDeviceConnectivity/schema.json +32 -0
  109. package/entities/TroubleshootingToolsDeviceSoftwarePackage/action.json +85 -0
  110. package/entities/TroubleshootingToolsDeviceSoftwarePackage/schema.json +22 -0
  111. package/entities/TroubleshootingToolsDeviceSoftwareUpdate/action.json +86 -0
  112. package/entities/TroubleshootingToolsDeviceSoftwareUpdate/schema.json +22 -0
  113. package/entities/TroubleshootingToolsDiagnostics/action.json +977 -0
  114. package/entities/TroubleshootingToolsDiagnostics/schema.json +65 -0
  115. package/entities/TroubleshootingToolsSoftwareActions/action.json +232 -0
  116. package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImages-default.json +6 -0
  117. package/entities/TroubleshootingToolsSoftwareActions/mockdatafiles/findSoftwareImagesWithFilters-default.json +5 -0
  118. package/entities/TroubleshootingToolsSoftwareActions/schema.json +29 -0
  119. package/error.json +12 -0
  120. package/package.json +19 -14
  121. package/pronghorn.json +14062 -90
  122. package/propertiesDecorators.json +14 -0
  123. package/propertiesSchema.json +369 -0
  124. package/refs?service=git-upload-pack +0 -0
  125. package/report/updateReport1642735010496.json +95 -0
  126. package/report/updateReport1651360586947.json +114 -0
  127. package/sampleProperties.json +16 -4
  128. package/test/integration/adapterTestBasicGet.js +1 -1
  129. package/test/integration/adapterTestIntegration.js +13175 -5
  130. package/test/unit/adapterBaseTestUnit.js +29 -27
  131. package/test/unit/adapterTestUnit.js +8633 -15
  132. package/utils/addAuth.js +94 -0
  133. package/utils/basicGet.js +1 -14
  134. package/utils/entitiesToDB.js +224 -0
  135. package/utils/modify.js +4 -4
  136. package/utils/packModificationScript.js +1 -1
  137. package/utils/patches2bundledDeps.js +90 -0
  138. package/utils/removeHooks.js +20 -0
  139. package/utils/tbScript.js +14 -8
  140. package/utils/tbUtils.js +111 -19
  141. package/utils/troubleshootingAdapter.js +2 -26
@@ -0,0 +1,65 @@
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
+ "getDBSchema",
14
+ "getThreadPools",
15
+ "getStatDataRawData23",
16
+ "getStatsRawData23",
17
+ "getAggregationDataByQuery23",
18
+ "getPostAggregationDataByQuery22",
19
+ "getStatDataRawDataAsCSV23",
20
+ "getCount25",
21
+ "getCountPost25",
22
+ "getStatDataFields25",
23
+ "getStatBulkRawData23",
24
+ "getPostStatBulkRawData23",
25
+ "getStatQueryFields25",
26
+ "getSessionInfoCapture",
27
+ "disablePacketCaptureSession",
28
+ "downloadFile",
29
+ "forceStopPcapSession",
30
+ "startPcapSession",
31
+ "getFileDownloadStatus",
32
+ "stopPcapSession",
33
+ "formPostPacketCapture",
34
+ "getSessionInfoLog",
35
+ "disableDeviceLog",
36
+ "downloadDebugLog",
37
+ "renewSessionInfo",
38
+ "searchDeviceLog",
39
+ "getSessions",
40
+ "clearSession",
41
+ "getLogType",
42
+ "streamLog",
43
+ "getDeviceLog",
44
+ "getNwpiDscp",
45
+ "getNwpiProtocol",
46
+ "getPacketFeatures",
47
+ "traceStart",
48
+ "traceStop",
49
+ "getTraceFlow",
50
+ "getTraceHistory",
51
+ "getSession",
52
+ "disableSpeedTestSession",
53
+ "getInterfaceBandwidth",
54
+ "startSpeedTest",
55
+ "getSpeedTestStatus",
56
+ "stopSpeedTest",
57
+ "saveSpeedTestResults",
58
+ "getSpeedTest",
59
+ "processDeviceStatus"
60
+ ],
61
+ "external_name": "ph_request_type"
62
+ }
63
+ },
64
+ "definitions": {}
65
+ }
@@ -0,0 +1,232 @@
1
+ {
2
+ "actions": [
3
+ {
4
+ "name": "findSoftwareImages",
5
+ "protocol": "REST",
6
+ "method": "GET",
7
+ "entitypath": "{base_path}/{version}/device/action/software?{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/findSoftwareImages-default.json"
21
+ }
22
+ ]
23
+ },
24
+ {
25
+ "name": "createImageURL",
26
+ "protocol": "REST",
27
+ "method": "POST",
28
+ "entitypath": "{base_path}/{version}/device/action/software?{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": "getImageProperties",
46
+ "protocol": "REST",
47
+ "method": "GET",
48
+ "entitypath": "{base_path}/{version}/device/action/software/imageProperties/{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": "findSoftwareImagesWithFilters",
67
+ "protocol": "REST",
68
+ "method": "GET",
69
+ "entitypath": "{base_path}/{version}/device/action/software/images?{query}",
70
+ "requestSchema": "schema.json",
71
+ "responseSchema": "schema.json",
72
+ "timeout": 0,
73
+ "sendEmpty": false,
74
+ "sendGetBody": false,
75
+ "requestDatatype": "JSON",
76
+ "responseDatatype": "JSON",
77
+ "headers": {},
78
+ "responseObjects": [
79
+ {
80
+ "type": "default",
81
+ "key": "",
82
+ "mockFile": "mockdatafiles/findSoftwareImagesWithFilters-default.json"
83
+ }
84
+ ]
85
+ },
86
+ {
87
+ "name": "getPnfProperties",
88
+ "protocol": "REST",
89
+ "method": "GET",
90
+ "entitypath": "{base_path}/{version}/device/action/software/pnfproperties/{pathv1}?{query}",
91
+ "requestSchema": "schema.json",
92
+ "responseSchema": "schema.json",
93
+ "timeout": 0,
94
+ "sendEmpty": false,
95
+ "sendGetBody": false,
96
+ "requestDatatype": "JSON",
97
+ "responseDatatype": "JSON",
98
+ "headers": {},
99
+ "responseObjects": [
100
+ {
101
+ "type": "default",
102
+ "key": "",
103
+ "mockFile": ""
104
+ }
105
+ ]
106
+ },
107
+ {
108
+ "name": "findVEdgeSoftwareVersion",
109
+ "protocol": "REST",
110
+ "method": "GET",
111
+ "entitypath": "{base_path}/{version}/device/action/software/vedge/version?{query}",
112
+ "requestSchema": "schema.json",
113
+ "responseSchema": "schema.json",
114
+ "timeout": 0,
115
+ "sendEmpty": false,
116
+ "sendGetBody": false,
117
+ "requestDatatype": "JSON",
118
+ "responseDatatype": "JSON",
119
+ "headers": {},
120
+ "responseObjects": [
121
+ {
122
+ "type": "default",
123
+ "key": "",
124
+ "mockFile": ""
125
+ }
126
+ ]
127
+ },
128
+ {
129
+ "name": "findSoftwareVersion",
130
+ "protocol": "REST",
131
+ "method": "GET",
132
+ "entitypath": "{base_path}/{version}/device/action/software/version?{query}",
133
+ "requestSchema": "schema.json",
134
+ "responseSchema": "schema.json",
135
+ "timeout": 0,
136
+ "sendEmpty": false,
137
+ "sendGetBody": false,
138
+ "requestDatatype": "JSON",
139
+ "responseDatatype": "JSON",
140
+ "headers": {},
141
+ "responseObjects": [
142
+ {
143
+ "type": "default",
144
+ "key": "",
145
+ "mockFile": ""
146
+ }
147
+ ]
148
+ },
149
+ {
150
+ "name": "getVnfProperties",
151
+ "protocol": "REST",
152
+ "method": "GET",
153
+ "entitypath": "{base_path}/{version}/device/action/software/vnfproperties/{pathv1}?{query}",
154
+ "requestSchema": "schema.json",
155
+ "responseSchema": "schema.json",
156
+ "timeout": 0,
157
+ "sendEmpty": false,
158
+ "sendGetBody": false,
159
+ "requestDatatype": "JSON",
160
+ "responseDatatype": "JSON",
161
+ "headers": {},
162
+ "responseObjects": [
163
+ {
164
+ "type": "default",
165
+ "key": "",
166
+ "mockFile": ""
167
+ }
168
+ ]
169
+ },
170
+ {
171
+ "name": "findZtpSoftwareVersion",
172
+ "protocol": "REST",
173
+ "method": "GET",
174
+ "entitypath": "{base_path}/{version}/device/action/software/ztp/version?{query}",
175
+ "requestSchema": "schema.json",
176
+ "responseSchema": "schema.json",
177
+ "timeout": 0,
178
+ "sendEmpty": false,
179
+ "sendGetBody": false,
180
+ "requestDatatype": "JSON",
181
+ "responseDatatype": "JSON",
182
+ "headers": {},
183
+ "responseObjects": [
184
+ {
185
+ "type": "default",
186
+ "key": "",
187
+ "mockFile": ""
188
+ }
189
+ ]
190
+ },
191
+ {
192
+ "name": "updateImageURL",
193
+ "protocol": "REST",
194
+ "method": "PUT",
195
+ "entitypath": "{base_path}/{version}/device/action/software/{pathv1}?{query}",
196
+ "requestSchema": "schema.json",
197
+ "responseSchema": "schema.json",
198
+ "timeout": 0,
199
+ "sendEmpty": false,
200
+ "requestDatatype": "JSON",
201
+ "responseDatatype": "JSON",
202
+ "headers": {},
203
+ "responseObjects": [
204
+ {
205
+ "type": "default",
206
+ "key": "",
207
+ "mockFile": ""
208
+ }
209
+ ]
210
+ },
211
+ {
212
+ "name": "deleteImageURL",
213
+ "protocol": "REST",
214
+ "method": "DELETE",
215
+ "entitypath": "{base_path}/{version}/device/action/software/{pathv1}?{query}",
216
+ "requestSchema": "schema.json",
217
+ "responseSchema": "schema.json",
218
+ "timeout": 0,
219
+ "sendEmpty": false,
220
+ "requestDatatype": "JSON",
221
+ "responseDatatype": "JSON",
222
+ "headers": {},
223
+ "responseObjects": [
224
+ {
225
+ "type": "default",
226
+ "key": "",
227
+ "mockFile": ""
228
+ }
229
+ ]
230
+ }
231
+ ]
232
+ }
@@ -0,0 +1,29 @@
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
+ "findSoftwareImages",
14
+ "createImageURL",
15
+ "getImageProperties",
16
+ "findSoftwareImagesWithFilters",
17
+ "getPnfProperties",
18
+ "findVEdgeSoftwareVersion",
19
+ "findSoftwareVersion",
20
+ "getVnfProperties",
21
+ "findZtpSoftwareVersion",
22
+ "updateImageURL",
23
+ "deleteImageURL"
24
+ ],
25
+ "external_name": "ph_request_type"
26
+ }
27
+ },
28
+ "definitions": {}
29
+ }
package/error.json CHANGED
@@ -96,6 +96,12 @@
96
96
  "displayString": "Invalid properties: $VARIABLE$",
97
97
  "recommendation": "Verify the properties for the adapter"
98
98
  },
99
+ {
100
+ "key": "Missing Properties",
101
+ "icode": "AD.306",
102
+ "displayString": "Property $VARIABLE$ is required",
103
+ "recommendation": "Please provide the required property"
104
+ },
99
105
  {
100
106
  "key": "Query Not Translated",
101
107
  "icode": "AD.310",
@@ -168,6 +174,12 @@
168
174
  "displayString": "Failure response received for $VARIABLE$",
169
175
  "recommendation": "Check the reason for failure in the stack trace"
170
176
  },
177
+ {
178
+ "key": "Suspended Adapter",
179
+ "icode": "AD.600",
180
+ "displayString": "Adapter is suspended",
181
+ "recommendation": "Check if external system is functional and unsuspend if appropriate"
182
+ },
171
183
  {
172
184
  "key": "Caught Exception",
173
185
  "icode": "AD.900",
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-viptela",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "This adapter integrates with system Viptela",
5
5
  "main": "adapter.js",
6
- "wizardVersion": "2.43.10",
7
- "engineVersion": "1.58.0",
6
+ "wizardVersion": "2.44.7",
7
+ "engineVersion": "1.61.0",
8
8
  "scripts": {
9
9
  "artifactize": "npm i && node utils/packModificationScript.js",
10
- "preinstall": "node utils/setup.js",
10
+ "preinstall": "node utils/setup.js && npm install --package-lock-only --ignore-scripts && npx npm-force-resolutions",
11
11
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
12
12
  "lint:errors": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js --quiet",
13
13
  "test:baseunit": "mocha test/unit/adapterBaseTestUnit.js --LOG=error",
@@ -15,7 +15,7 @@
15
15
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
16
16
  "test:cover": "nyc --reporter html --reporter text mocha --reporter dot test/*",
17
17
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
18
- "adapter:install": "node utils/tbScript.js install",
18
+ "adapter:install": "npm i && node utils/tbScript.js install",
19
19
  "adapter:checkMigrate": "node utils/checkMigrate.js",
20
20
  "adapter:findPath": "node utils/findPath.js",
21
21
  "adapter:migrate": "node utils/modify.js -m",
@@ -25,7 +25,7 @@
25
25
  "healthcheck": "node utils/tbScript.js healthcheck",
26
26
  "basicget": "node utils/tbScript.js basicget",
27
27
  "connectivity": "node utils/tbScript.js connectivity",
28
- "deploy": "npm publish --registry=http://registry.npmjs.org --access=public",
28
+ "deploy": "npm publish --registry=https://registry.npmjs.org --access=public",
29
29
  "build": "npm run deploy"
30
30
  },
31
31
  "keywords": [
@@ -51,13 +51,14 @@
51
51
  "author": "Itential",
52
52
  "homepage": "https://gitlab.com/itentialopensource/adapters/sd-wan/adapter-viptela#readme",
53
53
  "dependencies": {
54
- "@itentialopensource/adapter-utils": "^4.38.2",
54
+ "@itentialopensource/adapter-utils": "^4.45.4",
55
55
  "ajv": "^6.12.0",
56
56
  "axios": "^0.21.0",
57
57
  "commander": "^2.20.0",
58
58
  "fs-extra": "^8.1.0",
59
- "mocha": "^8.1.1",
59
+ "mocha": "^9.0.1",
60
60
  "mocha-param": "^2.0.1",
61
+ "mongodb": "^4.1.0",
61
62
  "network-diagnostics": "^0.5.3",
62
63
  "nyc": "^15.1.0",
63
64
  "readline-sync": "^1.4.10",
@@ -65,13 +66,17 @@
65
66
  "winston": "^3.3.3"
66
67
  },
67
68
  "devDependencies": {
68
- "chai": "^4.2.0",
69
- "eslint": "^7.2.0",
70
- "eslint-config-airbnb-base": "^14.2.0",
71
- "eslint-plugin-import": "^2.21.2",
72
- "eslint-plugin-json": "^2.1.1",
69
+ "chai": "^4.3.4",
70
+ "eslint": "^7.29.0",
71
+ "eslint-config-airbnb-base": "^14.2.1",
72
+ "eslint-plugin-import": "^2.23.4",
73
+ "eslint-plugin-json": "^3.0.0",
73
74
  "package-json-validator": "^0.6.3",
74
75
  "testdouble": "^3.16.1"
75
76
  },
76
- "private": false
77
+ "resolutions": {
78
+ "minimist": "^1.2.5"
79
+ },
80
+ "private": false,
81
+ "adapterType": "http"
77
82
  }