@itentialopensource/adapter-solarwinds 0.6.0 → 0.7.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.
- package/AUTH.md +4 -9
- package/CALLS.md +4817 -22
- package/CHANGELOG.md +16 -0
- package/CONTRIBUTING.md +1 -160
- package/ENHANCE.md +2 -2
- package/README.md +32 -23
- package/SYSTEMINFO.md +14 -6
- package/adapter.js +236 -333
- package/adapterBase.js +549 -879
- package/changelogs/changelog.md +142 -0
- package/entities/CRUD/action.json +21 -0
- package/entities/CRUD/schema.json +2 -1
- package/metadata.json +66 -0
- package/package.json +25 -25
- package/pronghorn.json +1016 -633
- package/propertiesSchema.json +422 -31
- package/refs?service=git-upload-pack +0 -0
- package/report/adapter-openapi.json +21445 -0
- package/report/adapter-openapi.yaml +17470 -0
- package/report/adapterInfo.json +8 -8
- package/report/updateReport1691508990022.json +120 -0
- package/report/updateReport1692202305566.json +120 -0
- package/report/updateReport1692203392975.json +120 -0
- package/report/updateReport1694470025990.json +120 -0
- package/sampleProperties.json +63 -2
- package/test/integration/adapterTestBasicGet.js +2 -4
- package/test/integration/adapterTestConnectivity.js +91 -42
- package/test/integration/adapterTestIntegration.js +160 -2
- package/test/unit/adapterBaseTestUnit.js +388 -313
- package/test/unit/adapterTestUnit.js +367 -112
- package/utils/adapterInfo.js +1 -1
- package/utils/addAuth.js +1 -1
- package/utils/artifactize.js +1 -1
- package/utils/checkMigrate.js +1 -1
- package/utils/entitiesToDB.js +2 -2
- package/utils/findPath.js +1 -1
- package/utils/methodDocumentor.js +260 -0
- package/utils/modify.js +13 -15
- package/utils/packModificationScript.js +1 -1
- package/utils/pre-commit.sh +2 -0
- package/utils/taskMover.js +309 -0
- package/utils/tbScript.js +89 -34
- package/utils/tbUtils.js +41 -21
- package/utils/testRunner.js +1 -1
- package/utils/troubleshootingAdapter.js +9 -6
- package/workflows/README.md +0 -3
- package/workflows/SolarWinds-Add-Delete-Node.json +0 -387
|
@@ -1,387 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "SolarWinds-Add-Delete-Node",
|
|
3
|
-
"tasks": {
|
|
4
|
-
"1197": {
|
|
5
|
-
"name": "makeData",
|
|
6
|
-
"canvasName": "makeData",
|
|
7
|
-
"summary": "Make Data",
|
|
8
|
-
"description": "Make Data",
|
|
9
|
-
"location": "Application",
|
|
10
|
-
"locationType": null,
|
|
11
|
-
"app": "WorkFlowEngine",
|
|
12
|
-
"type": "automatic",
|
|
13
|
-
"displayName": "Tools",
|
|
14
|
-
"variables": {
|
|
15
|
-
"incoming": {
|
|
16
|
-
"input": "swis://USMONTEST1SWPRI.nike.com/Orion/Orion.Nodes/NodeID=<!NodeID!>",
|
|
17
|
-
"outputType": "string",
|
|
18
|
-
"variables": "$var.ca15.return_data"
|
|
19
|
-
},
|
|
20
|
-
"outgoing": {
|
|
21
|
-
"output": null
|
|
22
|
-
},
|
|
23
|
-
"error": ""
|
|
24
|
-
},
|
|
25
|
-
"deprecated": false,
|
|
26
|
-
"matched": [
|
|
27
|
-
{
|
|
28
|
-
"key": "canvasName",
|
|
29
|
-
"highlightString": "<span class='highlight-string'>makeDa</span>ta"
|
|
30
|
-
}
|
|
31
|
-
],
|
|
32
|
-
"groups": [],
|
|
33
|
-
"actor": "Pronghorn",
|
|
34
|
-
"x": 0.4867021276595745,
|
|
35
|
-
"y": 0.5070643642072213,
|
|
36
|
-
"scheduled": false
|
|
37
|
-
},
|
|
38
|
-
"2295": {
|
|
39
|
-
"name": "getQuery",
|
|
40
|
-
"canvasName": "getQuery",
|
|
41
|
-
"summary": "",
|
|
42
|
-
"description": "",
|
|
43
|
-
"location": "Adapter",
|
|
44
|
-
"locationType": "Solarwinds",
|
|
45
|
-
"app": "Solarwinds",
|
|
46
|
-
"type": "automatic",
|
|
47
|
-
"displayName": "Solarwinds",
|
|
48
|
-
"variables": {
|
|
49
|
-
"incoming": {
|
|
50
|
-
"query": "select NodeID, ObjectSubType, IP_Address, DNS, SysName from Orion.Nodes where DNS='googledns01.lab.local';",
|
|
51
|
-
"adapter_id": "Test Solarwinds"
|
|
52
|
-
},
|
|
53
|
-
"outgoing": {
|
|
54
|
-
"result": null
|
|
55
|
-
},
|
|
56
|
-
"error": ""
|
|
57
|
-
},
|
|
58
|
-
"deprecated": false,
|
|
59
|
-
"matched": [
|
|
60
|
-
{
|
|
61
|
-
"key": "canvasName",
|
|
62
|
-
"highlightString": "<span class='highlight-string'>getQu</span>ery"
|
|
63
|
-
}
|
|
64
|
-
],
|
|
65
|
-
"groups": [],
|
|
66
|
-
"actor": "Pronghorn",
|
|
67
|
-
"x": 0.3723404255319149,
|
|
68
|
-
"y": 0.5196232339089482,
|
|
69
|
-
"scheduled": false
|
|
70
|
-
},
|
|
71
|
-
"7141": {
|
|
72
|
-
"name": "makeData",
|
|
73
|
-
"canvasName": "makeData",
|
|
74
|
-
"summary": "Sample Make Data",
|
|
75
|
-
"description": "Make Data",
|
|
76
|
-
"location": "Application",
|
|
77
|
-
"locationType": null,
|
|
78
|
-
"app": "WorkFlowEngine",
|
|
79
|
-
"type": "automatic",
|
|
80
|
-
"displayName": "Tools",
|
|
81
|
-
"variables": {
|
|
82
|
-
"incoming": {
|
|
83
|
-
"input": "{\"IPAddress\":\"10.16.201.45\",\"EngineID\":1,\"ObjectSubType\":\"SNMP\",\"SNMPVersion\":2,\"Community\":\"public\",\"DNS\":\"googledns.lab.local\",\"SysName\":\"googledns01.lab.local\"}",
|
|
84
|
-
"outputType": "json",
|
|
85
|
-
"variables": ""
|
|
86
|
-
},
|
|
87
|
-
"outgoing": {
|
|
88
|
-
"output": null
|
|
89
|
-
},
|
|
90
|
-
"error": ""
|
|
91
|
-
},
|
|
92
|
-
"deprecated": false,
|
|
93
|
-
"matched": [
|
|
94
|
-
{
|
|
95
|
-
"key": "canvasName",
|
|
96
|
-
"highlightString": "<span class='highlight-string'>makeDa</span>ta"
|
|
97
|
-
}
|
|
98
|
-
],
|
|
99
|
-
"groups": [],
|
|
100
|
-
"actor": "Pronghorn",
|
|
101
|
-
"x": 0.11790780141843972,
|
|
102
|
-
"y": 0.5039246467817896,
|
|
103
|
-
"scheduled": false
|
|
104
|
-
},
|
|
105
|
-
"workflow_start": {
|
|
106
|
-
"name": "workflow_start",
|
|
107
|
-
"groups": [],
|
|
108
|
-
"x": 0,
|
|
109
|
-
"y": 0.5
|
|
110
|
-
},
|
|
111
|
-
"workflow_end": {
|
|
112
|
-
"name": "workflow_end",
|
|
113
|
-
"groups": [],
|
|
114
|
-
"x": 0.8262411347517731,
|
|
115
|
-
"y": 0.4976452119309262
|
|
116
|
-
},
|
|
117
|
-
"e9f6": {
|
|
118
|
-
"name": "ViewData",
|
|
119
|
-
"canvasName": "ViewData",
|
|
120
|
-
"summary": "Post Check",
|
|
121
|
-
"description": "View data in a pretty format",
|
|
122
|
-
"location": "Application",
|
|
123
|
-
"app": "WorkFlowEngine",
|
|
124
|
-
"displayName": "Tools",
|
|
125
|
-
"type": "manual",
|
|
126
|
-
"variables": {
|
|
127
|
-
"incoming": {
|
|
128
|
-
"header": "Review Orion Node that was created prior to deletion of Node",
|
|
129
|
-
"message": "Click Success to end the workflow.\nClick Delete to delete the node.",
|
|
130
|
-
"body": "$var.2295.result",
|
|
131
|
-
"btn_success": "Success",
|
|
132
|
-
"btn_failure": "Delete"
|
|
133
|
-
},
|
|
134
|
-
"outgoing": {},
|
|
135
|
-
"error": ""
|
|
136
|
-
},
|
|
137
|
-
"view": "/workflow_engine/task/ViewData",
|
|
138
|
-
"deprecated": false,
|
|
139
|
-
"matched": [
|
|
140
|
-
{
|
|
141
|
-
"key": "canvasName",
|
|
142
|
-
"highlightString": "<span class='highlight-string'>ViewData</span>"
|
|
143
|
-
}
|
|
144
|
-
],
|
|
145
|
-
"groups": [
|
|
146
|
-
{
|
|
147
|
-
"provenance": "LDAP",
|
|
148
|
-
"name": "App.Itential.User",
|
|
149
|
-
"description": "App.Itential.User"
|
|
150
|
-
}
|
|
151
|
-
],
|
|
152
|
-
"x": 0.5877659574468085,
|
|
153
|
-
"y": 0.2904238618524333,
|
|
154
|
-
"scheduled": false
|
|
155
|
-
},
|
|
156
|
-
"89a1": {
|
|
157
|
-
"name": "ViewData",
|
|
158
|
-
"canvasName": "ViewData",
|
|
159
|
-
"summary": "PreCheck",
|
|
160
|
-
"description": "View data in a pretty format",
|
|
161
|
-
"location": "Application",
|
|
162
|
-
"app": "WorkFlowEngine",
|
|
163
|
-
"displayName": "Tools",
|
|
164
|
-
"type": "manual",
|
|
165
|
-
"variables": {
|
|
166
|
-
"incoming": {
|
|
167
|
-
"header": "PreCheck",
|
|
168
|
-
"message": "Review data for new Orion Node",
|
|
169
|
-
"body": "$var.7141.output",
|
|
170
|
-
"btn_success": "OK",
|
|
171
|
-
"btn_failure": ""
|
|
172
|
-
},
|
|
173
|
-
"outgoing": {},
|
|
174
|
-
"error": ""
|
|
175
|
-
},
|
|
176
|
-
"view": "/workflow_engine/task/ViewData",
|
|
177
|
-
"deprecated": false,
|
|
178
|
-
"matched": [
|
|
179
|
-
{
|
|
180
|
-
"key": "canvasName",
|
|
181
|
-
"highlightString": "<span class='highlight-string'>ViewData</span>"
|
|
182
|
-
}
|
|
183
|
-
],
|
|
184
|
-
"groups": [
|
|
185
|
-
{
|
|
186
|
-
"provenance": "LDAP",
|
|
187
|
-
"name": "App.Itential.User",
|
|
188
|
-
"description": "App.Itential.User"
|
|
189
|
-
}
|
|
190
|
-
],
|
|
191
|
-
"x": 0.19237588652482268,
|
|
192
|
-
"y": 0.2370486656200942,
|
|
193
|
-
"scheduled": false
|
|
194
|
-
},
|
|
195
|
-
"fd41": {
|
|
196
|
-
"name": "postCreateOrionNodes",
|
|
197
|
-
"canvasName": "postCreateOrionNodes",
|
|
198
|
-
"summary": "",
|
|
199
|
-
"description": "",
|
|
200
|
-
"location": "Adapter",
|
|
201
|
-
"locationType": "Solarwinds",
|
|
202
|
-
"app": "Solarwinds",
|
|
203
|
-
"type": "automatic",
|
|
204
|
-
"displayName": "Solarwinds",
|
|
205
|
-
"variables": {
|
|
206
|
-
"incoming": {
|
|
207
|
-
"body": "$var.7141.output",
|
|
208
|
-
"adapter_id": "Test Solarwinds"
|
|
209
|
-
},
|
|
210
|
-
"outgoing": {
|
|
211
|
-
"result": null
|
|
212
|
-
},
|
|
213
|
-
"error": ""
|
|
214
|
-
},
|
|
215
|
-
"deprecated": false,
|
|
216
|
-
"matched": [
|
|
217
|
-
{
|
|
218
|
-
"key": "canvasName",
|
|
219
|
-
"highlightString": "<span class='highlight-string'>postCreateOrionNodes</span>"
|
|
220
|
-
}
|
|
221
|
-
],
|
|
222
|
-
"groups": [],
|
|
223
|
-
"actor": "Pronghorn",
|
|
224
|
-
"x": 0.25177304964539005,
|
|
225
|
-
"y": 0.5054945054945055,
|
|
226
|
-
"scheduled": false
|
|
227
|
-
},
|
|
228
|
-
"ca15": {
|
|
229
|
-
"name": "query",
|
|
230
|
-
"canvasName": "query",
|
|
231
|
-
"summary": "Query Data Using 'json-query' Format",
|
|
232
|
-
"description": "Query data using a dot/bracket notation string and a matching key/value pair.",
|
|
233
|
-
"location": "Application",
|
|
234
|
-
"locationType": null,
|
|
235
|
-
"app": "WorkFlowEngine",
|
|
236
|
-
"type": "operation",
|
|
237
|
-
"displayName": "WorkFlowEngine",
|
|
238
|
-
"variables": {
|
|
239
|
-
"incoming": {
|
|
240
|
-
"pass_on_null": false,
|
|
241
|
-
"query": "response.results[0]",
|
|
242
|
-
"obj": "$var.2295.result"
|
|
243
|
-
},
|
|
244
|
-
"outgoing": {
|
|
245
|
-
"return_data": null
|
|
246
|
-
},
|
|
247
|
-
"error": ""
|
|
248
|
-
},
|
|
249
|
-
"deprecated": false,
|
|
250
|
-
"matched": [
|
|
251
|
-
{
|
|
252
|
-
"key": "canvasName",
|
|
253
|
-
"highlightString": "<span class='highlight-string'>query</span>"
|
|
254
|
-
},
|
|
255
|
-
{
|
|
256
|
-
"key": "summary",
|
|
257
|
-
"highlightString": "<span class='highlight-string'>Query</span> Data Using 'json-query' Format"
|
|
258
|
-
},
|
|
259
|
-
{
|
|
260
|
-
"key": "description",
|
|
261
|
-
"highlightString": "<span class='highlight-string'>Query</span> data using a dot/bracket notation string and a matching key/value pair."
|
|
262
|
-
}
|
|
263
|
-
],
|
|
264
|
-
"groups": [],
|
|
265
|
-
"x": 0.4379432624113475,
|
|
266
|
-
"y": 0.7252747252747253,
|
|
267
|
-
"scheduled": false
|
|
268
|
-
},
|
|
269
|
-
"e751": {
|
|
270
|
-
"name": "deleteUri",
|
|
271
|
-
"canvasName": "deleteUri",
|
|
272
|
-
"summary": "",
|
|
273
|
-
"description": "",
|
|
274
|
-
"location": "Adapter",
|
|
275
|
-
"locationType": "Solarwinds",
|
|
276
|
-
"app": "Solarwinds",
|
|
277
|
-
"type": "automatic",
|
|
278
|
-
"displayName": "Solarwinds",
|
|
279
|
-
"variables": {
|
|
280
|
-
"incoming": {
|
|
281
|
-
"uri": "$var.1197.output",
|
|
282
|
-
"adapter_id": "Test Solarwinds"
|
|
283
|
-
},
|
|
284
|
-
"outgoing": {
|
|
285
|
-
"result": null
|
|
286
|
-
},
|
|
287
|
-
"error": ""
|
|
288
|
-
},
|
|
289
|
-
"deprecated": false,
|
|
290
|
-
"matched": [
|
|
291
|
-
{
|
|
292
|
-
"key": "canvasName",
|
|
293
|
-
"highlightString": "<span class='highlight-string'>deleteUri</span>"
|
|
294
|
-
}
|
|
295
|
-
],
|
|
296
|
-
"groups": [],
|
|
297
|
-
"actor": "Pronghorn",
|
|
298
|
-
"x": 0.6604609929078015,
|
|
299
|
-
"y": 0.5086342229199372,
|
|
300
|
-
"scheduled": false
|
|
301
|
-
}
|
|
302
|
-
},
|
|
303
|
-
"transitions": {
|
|
304
|
-
"1197": {
|
|
305
|
-
"e9f6": {
|
|
306
|
-
"type": "standard",
|
|
307
|
-
"state": "success"
|
|
308
|
-
}
|
|
309
|
-
},
|
|
310
|
-
"2295": {
|
|
311
|
-
"ca15": {
|
|
312
|
-
"type": "standard",
|
|
313
|
-
"state": "success"
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
"7141": {
|
|
317
|
-
"89a1": {
|
|
318
|
-
"type": "standard",
|
|
319
|
-
"state": "success"
|
|
320
|
-
}
|
|
321
|
-
},
|
|
322
|
-
"workflow_start": {
|
|
323
|
-
"7141": {
|
|
324
|
-
"type": "standard",
|
|
325
|
-
"state": "success"
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
"workflow_end": {},
|
|
329
|
-
"e9f6": {
|
|
330
|
-
"workflow_end": {
|
|
331
|
-
"type": "standard",
|
|
332
|
-
"state": "success"
|
|
333
|
-
},
|
|
334
|
-
"e751": {
|
|
335
|
-
"type": "standard",
|
|
336
|
-
"state": "failure"
|
|
337
|
-
}
|
|
338
|
-
},
|
|
339
|
-
"89a1": {
|
|
340
|
-
"fd41": {
|
|
341
|
-
"type": "standard",
|
|
342
|
-
"state": "success"
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
"fd41": {
|
|
346
|
-
"2295": {
|
|
347
|
-
"type": "standard",
|
|
348
|
-
"state": "success"
|
|
349
|
-
}
|
|
350
|
-
},
|
|
351
|
-
"ca15": {
|
|
352
|
-
"1197": {
|
|
353
|
-
"type": "standard",
|
|
354
|
-
"state": "success"
|
|
355
|
-
}
|
|
356
|
-
},
|
|
357
|
-
"e751": {
|
|
358
|
-
"workflow_end": {
|
|
359
|
-
"type": "standard",
|
|
360
|
-
"state": "success"
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
},
|
|
364
|
-
"font_size": 12,
|
|
365
|
-
"created": "2020-04-24T01:20:56.175Z",
|
|
366
|
-
"created_by": {
|
|
367
|
-
"provenance": "Local AAA",
|
|
368
|
-
"username": "admin@pronghorn",
|
|
369
|
-
"firstname": "admin",
|
|
370
|
-
"inactive": false,
|
|
371
|
-
"email": ""
|
|
372
|
-
},
|
|
373
|
-
"createdVersion": "5.5.9-2019.3.14.0",
|
|
374
|
-
"groups": [],
|
|
375
|
-
"last_updated": "2020-05-06T02:04:26.301Z",
|
|
376
|
-
"last_updated_by": {
|
|
377
|
-
"provenance": "LDAP",
|
|
378
|
-
"username": "ABhan3",
|
|
379
|
-
"firstname": "Ankit",
|
|
380
|
-
"inactive": false,
|
|
381
|
-
"email": ""
|
|
382
|
-
},
|
|
383
|
-
"lastUpdatedVersion": "5.5.9-2019.3.14.0",
|
|
384
|
-
"type": "automation",
|
|
385
|
-
"description": null,
|
|
386
|
-
"tags": []
|
|
387
|
-
}
|