@itentialopensource/adapter-netbrain 1.3.6 → 1.4.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 (45) hide show
  1. package/.eslintrc.js +1 -0
  2. package/AUTH.md +4 -4
  3. package/BROKER.md +4 -4
  4. package/CALLS.md +9 -9
  5. package/ENHANCE.md +3 -3
  6. package/PROPERTIES.md +24 -9
  7. package/README.md +24 -23
  8. package/SUMMARY.md +2 -2
  9. package/SYSTEMINFO.md +1 -1
  10. package/TAB1.md +2 -2
  11. package/TAB2.md +9 -5
  12. package/TROUBLESHOOT.md +10 -1
  13. package/UTILITIES.md +473 -0
  14. package/adapter.js +5 -5
  15. package/adapterBase.js +52 -16
  16. package/package.json +24 -28
  17. package/pronghorn.json +49 -47
  18. package/propertiesSchema.json +68 -7
  19. package/report/adapterInfo.json +7 -7
  20. package/report/auto-adapter-openapi.json +1333 -0
  21. package/report/updateReport1748556272953.json +120 -0
  22. package/sampleProperties.json +4 -0
  23. package/test/integration/adapterTestBasicGet.js +88 -54
  24. package/test/integration/adapterTestConnectivity.js +15 -16
  25. package/test/integration/adapterTestIntegration.js +1 -38
  26. package/test/unit/adapterBaseTestUnit.js +641 -39
  27. package/test/unit/adapterTestUnit.js +17 -54
  28. package/utils/adapterInfo.js +114 -164
  29. package/utils/argParser.js +44 -0
  30. package/utils/checkMigrate.js +77 -38
  31. package/utils/entitiesToDB.js +53 -42
  32. package/utils/logger.js +26 -0
  33. package/utils/modify.js +56 -55
  34. package/utils/mongoDbConnection.js +79 -0
  35. package/utils/mongoUtils.js +162 -0
  36. package/utils/taskMover.js +31 -32
  37. package/utils/tbScript.js +36 -172
  38. package/utils/tbUtils.js +84 -226
  39. package/utils/troubleshootingAdapter.js +68 -84
  40. package/utils/updateAdapterConfig.js +158 -0
  41. package/utils/addAuth.js +0 -94
  42. package/utils/artifactize.js +0 -146
  43. package/utils/basicGet.js +0 -50
  44. package/utils/packModificationScript.js +0 -35
  45. package/utils/patches2bundledDeps.js +0 -90
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@itentialopensource/adapter-netbrain",
3
- "version": "1.3.6",
3
+ "version": "1.4.0",
4
4
  "description": "This adapter integrates with system described as: netbrainRestfulApi.",
5
5
  "main": "adapter.js",
6
6
  "wizardVersion": "2.44.7",
7
- "engineVersion": "1.68.2",
7
+ "engineVersion": "1.69.14",
8
8
  "adapterType": "http",
9
9
  "scripts": {
10
- "artifactize": "npm i && node utils/packModificationScript.js",
11
10
  "preinstall": "node utils/setup.js",
12
11
  "deinstall": "node utils/removeHooks.js",
13
12
  "lint": "node --max_old_space_size=4096 ./node_modules/eslint/bin/eslint.js . --ext .json --ext .js",
@@ -16,7 +15,6 @@
16
15
  "test:unit": "mocha test/unit/adapterTestUnit.js --LOG=error",
17
16
  "test:integration": "mocha test/integration/adapterTestIntegration.js --LOG=error",
18
17
  "test": "npm run test:baseunit && npm run test:unit && npm run test:integration",
19
- "adapter:install": "npm i && node utils/tbScript.js install",
20
18
  "adapter:checkMigrate": "node utils/checkMigrate.js",
21
19
  "adapter:findPath": "node utils/findPath.js",
22
20
  "adapter:migrate": "node utils/modify.js -m",
@@ -31,10 +29,9 @@
31
29
  },
32
30
  "keywords": [
33
31
  "Itential",
34
- "IAP",
32
+ "Itential Platform",
35
33
  "Automation",
36
34
  "Integration",
37
- "App-Artifacts",
38
35
  "Adapter",
39
36
  "Controller",
40
37
  "Orchestrator",
@@ -53,30 +50,29 @@
53
50
  "author": "Itential",
54
51
  "homepage": "https://gitlab.com/itentialopensource/adapters/adapter-netbrain#readme",
55
52
  "dependencies": {
56
- "@itentialopensource/adapter-utils": "^5.10.1",
57
- "acorn": "^8.14.0",
58
- "ajv": "^8.17.1",
59
- "axios": "^1.7.9",
60
- "commander": "^11.0.0",
61
- "dns-lookup-promise": "^1.0.4",
62
- "fs-extra": "^11.2.0",
63
- "json-query": "^2.2.2",
64
- "mocha": "^10.8.2",
65
- "mocha-param": "^2.0.1",
66
- "mongodb": "^4.17.2",
67
- "ping": "^0.4.4",
68
- "prompts": "^2.4.2",
69
- "readline-sync": "^1.4.10",
70
- "semver": "^7.6.3",
71
- "winston": "^3.17.0"
53
+ "@itentialopensource/adapter-utils": "5.10.16",
54
+ "acorn": "8.14.1",
55
+ "ajv": "8.17.1",
56
+ "axios": "1.9.0",
57
+ "commander": "11.1.0",
58
+ "fs-extra": "11.3.0",
59
+ "json-query": "2.2.2",
60
+ "mocha": "10.8.2",
61
+ "mocha-param": "2.0.1",
62
+ "mongodb": "4.17.2",
63
+ "ping": "0.4.4",
64
+ "prompts": "2.4.2",
65
+ "readline-sync": "1.4.10",
66
+ "semver": "7.7.2",
67
+ "winston": "3.17.0"
72
68
  },
73
69
  "devDependencies": {
74
- "chai": "^4.3.7",
75
- "eslint": "^8.44.0",
76
- "eslint-config-airbnb-base": "^15.0.0",
77
- "eslint-plugin-import": "^2.27.5",
78
- "eslint-plugin-json": "^3.1.0",
79
- "testdouble": "^3.18.0"
70
+ "chai": "4.5.0",
71
+ "eslint": "8.57.0",
72
+ "eslint-config-airbnb-base": "15.0.0",
73
+ "eslint-plugin-import": "2.31.0",
74
+ "eslint-plugin-json": "3.1.0",
75
+ "testdouble": "3.18.0"
80
76
  },
81
77
  "private": false
82
78
  }
package/pronghorn.json CHANGED
@@ -226,16 +226,6 @@
226
226
  "title": "props",
227
227
  "type": "object"
228
228
  }
229
- },
230
- {
231
- "name": "persistFlag",
232
- "type": "boolean",
233
- "info": "Whether the input properties should be saved",
234
- "required": true,
235
- "schema": {
236
- "title": "persistFlag",
237
- "type": "boolean"
238
- }
239
229
  }
240
230
  ],
241
231
  "output": {
@@ -306,7 +296,19 @@
306
296
  "name": "iapRunAdapterBasicGet",
307
297
  "summary": "Runs basicGet script for adapter",
308
298
  "description": "Runs basicGet script for adapter",
309
- "input": [],
299
+ "input": [
300
+ {
301
+ "name": "maxCalls",
302
+ "required": false,
303
+ "type": "number",
304
+ "info": "How many GET endpoints to test (defaults to 5)",
305
+ "schema": {
306
+ "title": "maxCalls",
307
+ "type": "number",
308
+ "default": 5
309
+ }
310
+ }
311
+ ],
310
312
  "output": {
311
313
  "name": "result",
312
314
  "type": "object",
@@ -327,8 +329,8 @@
327
329
  },
328
330
  {
329
331
  "name": "iapMoveAdapterEntitiesToDB",
330
- "summary": "Moves entities from an adapter into the IAP database",
331
- "description": "Moves entities from an adapter into the IAP database",
332
+ "summary": "Moves entities from an adapter into the Itential Platform database",
333
+ "description": "Moves entities from an adapter into the Itential Platform database",
332
334
  "input": [],
333
335
  "output": {
334
336
  "name": "res",
@@ -4152,7 +4154,7 @@
4152
4154
  {
4153
4155
  "name": "iapMetadata",
4154
4156
  "type": "object",
4155
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4157
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4156
4158
  "required": false,
4157
4159
  "schema": {
4158
4160
  "title": "iapMetadata",
@@ -4203,7 +4205,7 @@
4203
4205
  {
4204
4206
  "name": "iapMetadata",
4205
4207
  "type": "object",
4206
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4208
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4207
4209
  "required": false,
4208
4210
  "schema": {
4209
4211
  "title": "iapMetadata",
@@ -4237,7 +4239,7 @@
4237
4239
  {
4238
4240
  "name": "iapMetadata",
4239
4241
  "type": "object",
4240
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4242
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4241
4243
  "required": false,
4242
4244
  "schema": {
4243
4245
  "title": "iapMetadata",
@@ -4288,7 +4290,7 @@
4288
4290
  {
4289
4291
  "name": "iapMetadata",
4290
4292
  "type": "object",
4291
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4293
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4292
4294
  "required": false,
4293
4295
  "schema": {
4294
4296
  "title": "iapMetadata",
@@ -4322,7 +4324,7 @@
4322
4324
  {
4323
4325
  "name": "iapMetadata",
4324
4326
  "type": "object",
4325
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4327
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4326
4328
  "required": false,
4327
4329
  "schema": {
4328
4330
  "title": "iapMetadata",
@@ -4373,7 +4375,7 @@
4373
4375
  {
4374
4376
  "name": "iapMetadata",
4375
4377
  "type": "object",
4376
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4378
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4377
4379
  "required": false,
4378
4380
  "schema": {
4379
4381
  "title": "iapMetadata",
@@ -4417,7 +4419,7 @@
4417
4419
  {
4418
4420
  "name": "iapMetadata",
4419
4421
  "type": "object",
4420
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4422
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4421
4423
  "required": false,
4422
4424
  "schema": {
4423
4425
  "title": "iapMetadata",
@@ -4468,7 +4470,7 @@
4468
4470
  {
4469
4471
  "name": "iapMetadata",
4470
4472
  "type": "object",
4471
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4473
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4472
4474
  "required": false,
4473
4475
  "schema": {
4474
4476
  "title": "iapMetadata",
@@ -4519,7 +4521,7 @@
4519
4521
  {
4520
4522
  "name": "iapMetadata",
4521
4523
  "type": "object",
4522
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4524
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4523
4525
  "required": false,
4524
4526
  "schema": {
4525
4527
  "title": "iapMetadata",
@@ -4570,7 +4572,7 @@
4570
4572
  {
4571
4573
  "name": "iapMetadata",
4572
4574
  "type": "object",
4573
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4575
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4574
4576
  "required": false,
4575
4577
  "schema": {
4576
4578
  "title": "iapMetadata",
@@ -4614,7 +4616,7 @@
4614
4616
  {
4615
4617
  "name": "iapMetadata",
4616
4618
  "type": "object",
4617
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4619
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4618
4620
  "required": false,
4619
4621
  "schema": {
4620
4622
  "title": "iapMetadata",
@@ -4665,7 +4667,7 @@
4665
4667
  {
4666
4668
  "name": "iapMetadata",
4667
4669
  "type": "object",
4668
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4670
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4669
4671
  "required": false,
4670
4672
  "schema": {
4671
4673
  "title": "iapMetadata",
@@ -4716,7 +4718,7 @@
4716
4718
  {
4717
4719
  "name": "iapMetadata",
4718
4720
  "type": "object",
4719
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4721
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4720
4722
  "required": false,
4721
4723
  "schema": {
4722
4724
  "title": "iapMetadata",
@@ -4760,7 +4762,7 @@
4760
4762
  {
4761
4763
  "name": "iapMetadata",
4762
4764
  "type": "object",
4763
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4765
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4764
4766
  "required": false,
4765
4767
  "schema": {
4766
4768
  "title": "iapMetadata",
@@ -4814,7 +4816,7 @@
4814
4816
  {
4815
4817
  "name": "iapMetadata",
4816
4818
  "type": "object",
4817
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4819
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4818
4820
  "required": false,
4819
4821
  "schema": {
4820
4822
  "title": "iapMetadata",
@@ -4848,7 +4850,7 @@
4848
4850
  {
4849
4851
  "name": "iapMetadata",
4850
4852
  "type": "object",
4851
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4853
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4852
4854
  "required": false,
4853
4855
  "schema": {
4854
4856
  "title": "iapMetadata",
@@ -4899,7 +4901,7 @@
4899
4901
  {
4900
4902
  "name": "iapMetadata",
4901
4903
  "type": "object",
4902
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4904
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4903
4905
  "required": false,
4904
4906
  "schema": {
4905
4907
  "title": "iapMetadata",
@@ -4943,7 +4945,7 @@
4943
4945
  {
4944
4946
  "name": "iapMetadata",
4945
4947
  "type": "object",
4946
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4948
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4947
4949
  "required": false,
4948
4950
  "schema": {
4949
4951
  "title": "iapMetadata",
@@ -4994,7 +4996,7 @@
4994
4996
  {
4995
4997
  "name": "iapMetadata",
4996
4998
  "type": "object",
4997
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4999
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
4998
5000
  "required": false,
4999
5001
  "schema": {
5000
5002
  "title": "iapMetadata",
@@ -5055,7 +5057,7 @@
5055
5057
  {
5056
5058
  "name": "iapMetadata",
5057
5059
  "type": "object",
5058
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5060
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5059
5061
  "required": false,
5060
5062
  "schema": {
5061
5063
  "title": "iapMetadata",
@@ -5099,7 +5101,7 @@
5099
5101
  {
5100
5102
  "name": "iapMetadata",
5101
5103
  "type": "object",
5102
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5104
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5103
5105
  "required": false,
5104
5106
  "schema": {
5105
5107
  "title": "iapMetadata",
@@ -5143,7 +5145,7 @@
5143
5145
  {
5144
5146
  "name": "iapMetadata",
5145
5147
  "type": "object",
5146
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5148
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5147
5149
  "required": false,
5148
5150
  "schema": {
5149
5151
  "title": "iapMetadata",
@@ -5187,7 +5189,7 @@
5187
5189
  {
5188
5190
  "name": "iapMetadata",
5189
5191
  "type": "object",
5190
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5192
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5191
5193
  "required": false,
5192
5194
  "schema": {
5193
5195
  "title": "iapMetadata",
@@ -5238,7 +5240,7 @@
5238
5240
  {
5239
5241
  "name": "iapMetadata",
5240
5242
  "type": "object",
5241
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5243
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5242
5244
  "required": false,
5243
5245
  "schema": {
5244
5246
  "title": "iapMetadata",
@@ -5282,7 +5284,7 @@
5282
5284
  {
5283
5285
  "name": "iapMetadata",
5284
5286
  "type": "object",
5285
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5287
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5286
5288
  "required": false,
5287
5289
  "schema": {
5288
5290
  "title": "iapMetadata",
@@ -5327,7 +5329,7 @@
5327
5329
  {
5328
5330
  "name": "iapMetadata",
5329
5331
  "type": "object",
5330
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5332
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5331
5333
  "required": false,
5332
5334
  "schema": {
5333
5335
  "title": "iapMetadata",
@@ -5372,7 +5374,7 @@
5372
5374
  {
5373
5375
  "name": "iapMetadata",
5374
5376
  "type": "object",
5375
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5377
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5376
5378
  "required": false,
5377
5379
  "schema": {
5378
5380
  "title": "iapMetadata",
@@ -5416,7 +5418,7 @@
5416
5418
  {
5417
5419
  "name": "iapMetadata",
5418
5420
  "type": "object",
5419
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5421
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5420
5422
  "required": false,
5421
5423
  "schema": {
5422
5424
  "title": "iapMetadata",
@@ -5450,7 +5452,7 @@
5450
5452
  {
5451
5453
  "name": "iapMetadata",
5452
5454
  "type": "object",
5453
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5455
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5454
5456
  "required": false,
5455
5457
  "schema": {
5456
5458
  "title": "iapMetadata",
@@ -5504,7 +5506,7 @@
5504
5506
  {
5505
5507
  "name": "iapMetadata",
5506
5508
  "type": "object",
5507
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5509
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5508
5510
  "required": false,
5509
5511
  "schema": {
5510
5512
  "title": "iapMetadata",
@@ -5549,7 +5551,7 @@
5549
5551
  {
5550
5552
  "name": "iapMetadata",
5551
5553
  "type": "object",
5552
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5554
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5553
5555
  "required": false,
5554
5556
  "schema": {
5555
5557
  "title": "iapMetadata",
@@ -5593,7 +5595,7 @@
5593
5595
  {
5594
5596
  "name": "iapMetadata",
5595
5597
  "type": "object",
5596
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5598
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5597
5599
  "required": false,
5598
5600
  "schema": {
5599
5601
  "title": "iapMetadata",
@@ -5627,7 +5629,7 @@
5627
5629
  {
5628
5630
  "name": "iapMetadata",
5629
5631
  "type": "object",
5630
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5632
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5631
5633
  "required": false,
5632
5634
  "schema": {
5633
5635
  "title": "iapMetadata",
@@ -5678,7 +5680,7 @@
5678
5680
  {
5679
5681
  "name": "iapMetadata",
5680
5682
  "type": "object",
5681
- "info": "IAP Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5683
+ "info": "Itential Platform Metadata object contains additional info needed for the request: payload, uriPathVars, uriQuery, uriOptions, addlHeaders, authData, callProperties, etc.",
5682
5684
  "required": false,
5683
5685
  "schema": {
5684
5686
  "title": "iapMetadata",
@@ -774,6 +774,14 @@
774
774
  "security/ca.pem"
775
775
  ]
776
776
  },
777
+ "ca_file_content": {
778
+ "type": "string",
779
+ "description": "The content of the CA file used for SSL",
780
+ "default": "",
781
+ "examples": [
782
+ "-----BEGIN CERTIFICATE-----"
783
+ ]
784
+ },
777
785
  "key_file": {
778
786
  "type": "string",
779
787
  "description": "The fully qualified path name to the key file used for SSL",
@@ -863,32 +871,48 @@
863
871
  "mongo": {
864
872
  "type": "object",
865
873
  "properties": {
874
+ "url": {
875
+ "type": "string",
876
+ "description": "Mongo's complete connection URL. This property overrides host, port, database, username, password and replSet settings.",
877
+ "examples": [
878
+ "mongodb://[username:password@]host1[:port1][,...hostN[:portN]][/[defaultauthdb][?options]]",
879
+ "mongodb+srv://[username:password@]cluster0.xxxxx.mongodb.net/[defaultauthdb][?options]",
880
+ "mongodb+srv://cluster0.xxxxx.mongodb.net/[defaultauthdb][?options]"
881
+ ]
882
+ },
866
883
  "host": {
867
884
  "type": "string",
868
- "description": "host where mongo database can be found",
885
+ "description": "Host information for the Mongo server",
869
886
  "default": "",
870
887
  "examples": [
871
- "localhost"
888
+ "localhost",
889
+ "cluster0.xxxxx.mongodb.net",
890
+ "my-cluster.example.com"
872
891
  ]
873
892
  },
874
893
  "port": {
875
894
  "type": "integer",
876
- "description": "port on which to connect to the mongo database",
895
+ "description": "Port information for the Mongo server. Not used when using mongodb+srv:// protocol",
877
896
  "default": 443,
878
897
  "minimum": 0,
879
898
  "maximum": 65535
880
899
  },
881
900
  "database": {
882
901
  "type": "string",
883
- "description": "The name of the database to store adapter information in",
902
+ "description": "The database for the adapter to use for its data.",
884
903
  "default": "",
885
904
  "examples": [
886
905
  "adapter-xyz"
887
906
  ]
888
907
  },
908
+ "dbAuth": {
909
+ "type": "boolean",
910
+ "description": "Whether to use authentication for MongoDB connection. Default is false.",
911
+ "default": false
912
+ },
889
913
  "username": {
890
914
  "type": "string",
891
- "description": "The user to connect to the database with",
915
+ "description": "If credentials are required to access Mongo, this is the user to login as.",
892
916
  "default": "",
893
917
  "examples": [
894
918
  "username"
@@ -896,7 +920,7 @@
896
920
  },
897
921
  "password": {
898
922
  "type": "string",
899
- "description": "The password to connect to the database with",
923
+ "description": "If credentials are required to access Mongo, this is the password to login with.",
900
924
  "default": "",
901
925
  "examples": [
902
926
  "password"
@@ -904,12 +928,17 @@
904
928
  },
905
929
  "replSet": {
906
930
  "type": "string",
907
- "description": "The replica set for the database",
931
+ "description": "If the database is set up to use replica sets, define it here so it can be added to the database connection. Not used when using mongodb+srv:// protocol",
908
932
  "default": "",
909
933
  "examples": [
910
934
  "my_repolica_set"
911
935
  ]
912
936
  },
937
+ "addSrv": {
938
+ "type": "boolean",
939
+ "description": "Whether the connection requires the mongodb+srv:// protocol. If true, uses mongodb+srv:// protocol. Note: mongodb+srv:// can also be used for non-Atlas deployments that support DNS SRV records",
940
+ "default": false
941
+ },
913
942
  "db_ssl": {
914
943
  "type": "object",
915
944
  "description": "SSL for mongo database connection",
@@ -950,6 +979,38 @@
950
979
  }
951
980
  }
952
981
  }
982
+ },
983
+ "dependencies": {
984
+ "dbAuth": {
985
+ "oneOf": [
986
+ {
987
+ "properties": {
988
+ "dbAuth": {
989
+ "const": false
990
+ }
991
+ }
992
+ },
993
+ {
994
+ "properties": {
995
+ "dbAuth": {
996
+ "const": true
997
+ },
998
+ "username": {
999
+ "type": "string",
1000
+ "minLength": 1
1001
+ },
1002
+ "password": {
1003
+ "type": "string",
1004
+ "minLength": 1
1005
+ }
1006
+ },
1007
+ "required": [
1008
+ "username",
1009
+ "password"
1010
+ ]
1011
+ }
1012
+ ]
1013
+ }
953
1014
  }
954
1015
  },
955
1016
  "devicebroker": {
@@ -1,10 +1,10 @@
1
1
  {
2
- "version": "1.3.5",
3
- "configLines": 7575,
4
- "scriptLines": 1783,
5
- "codeLines": 14327,
6
- "testLines": 10021,
7
- "testCases": 502,
8
- "totalCodeLines": 26131,
2
+ "version": "1.3.7",
3
+ "configLines": 11332,
4
+ "scriptLines": 2498,
5
+ "codeLines": 14363,
6
+ "testLines": 10582,
7
+ "testCases": 515,
8
+ "totalCodeLines": 27443,
9
9
  "wfTasks": 147
10
10
  }