@itentialopensource/adapter-checkpoint_gaia 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 (146) hide show
  1. package/.eslintignore +6 -0
  2. package/.eslintrc.js +18 -0
  3. package/.gitlab/.gitkeep +0 -0
  4. package/.gitlab/issue_templates/.gitkeep +0 -0
  5. package/.gitlab/issue_templates/Default.md +17 -0
  6. package/.gitlab/issue_templates/bugReportTemplate.md +76 -0
  7. package/.gitlab/issue_templates/featureRequestTemplate.md +14 -0
  8. package/.jshintrc +0 -0
  9. package/AUTH.md +38 -0
  10. package/BROKER.md +199 -0
  11. package/CALLS.md +1112 -0
  12. package/CHANGELOG.md +9 -0
  13. package/CODE_OF_CONDUCT.md +43 -0
  14. package/CONTRIBUTING.md +13 -0
  15. package/ENHANCE.md +69 -0
  16. package/LICENSE +201 -0
  17. package/PROPERTIES.md +641 -0
  18. package/README.md +346 -0
  19. package/SUMMARY.md +9 -0
  20. package/SYSTEMINFO.md +11 -0
  21. package/TAB1.md +5 -0
  22. package/TAB2.md +2333 -0
  23. package/TROUBLESHOOT.md +47 -0
  24. package/adapter.js +16218 -0
  25. package/adapterBase.js +1452 -0
  26. package/entities/.generic/action.json +214 -0
  27. package/entities/.generic/schema.json +28 -0
  28. package/entities/.system/action.json +50 -0
  29. package/entities/.system/mockdatafiles/getToken-default.json +3 -0
  30. package/entities/.system/mockdatafiles/healthcheck-default.json +3 -0
  31. package/entities/.system/schema.json +19 -0
  32. package/entities/.system/schemaTokenReq.json +53 -0
  33. package/entities/.system/schemaTokenResp.json +53 -0
  34. package/entities/01SessionManagement/action.json +64 -0
  35. package/entities/01SessionManagement/schema.json +21 -0
  36. package/entities/04Interfaces/action.json +64 -0
  37. package/entities/04Interfaces/schema.json +21 -0
  38. package/entities/06AllowedClients/action.json +44 -0
  39. package/entities/06AllowedClients/schema.json +20 -0
  40. package/entities/08System/action.json +144 -0
  41. package/entities/08System/schema.json +25 -0
  42. package/entities/10Snmp/action.json +44 -0
  43. package/entities/10Snmp/schema.json +20 -0
  44. package/entities/11Cluster/action.json +24 -0
  45. package/entities/11Cluster/schema.json +19 -0
  46. package/entities/13Files/action.json +24 -0
  47. package/entities/13Files/schema.json +19 -0
  48. package/entities/14Misc/action.json +44 -0
  49. package/entities/14Misc/schema.json +20 -0
  50. package/entities/15Licensing/action.json +64 -0
  51. package/entities/15Licensing/schema.json +21 -0
  52. package/entities/AliasInterface/action.json +84 -0
  53. package/entities/AliasInterface/schema.json +22 -0
  54. package/entities/BondInterfaces/action.json +104 -0
  55. package/entities/BondInterfaces/schema.json +23 -0
  56. package/entities/BridgeInterface/action.json +104 -0
  57. package/entities/BridgeInterface/schema.json +23 -0
  58. package/entities/CustomIntelligenceFeeds/action.json +144 -0
  59. package/entities/CustomIntelligenceFeeds/schema.json +25 -0
  60. package/entities/CustomTrap/action.json +104 -0
  61. package/entities/CustomTrap/schema.json +23 -0
  62. package/entities/DHCP/action.json +44 -0
  63. package/entities/DHCP/schema.json +20 -0
  64. package/entities/DNS/action.json +44 -0
  65. package/entities/DNS/schema.json +20 -0
  66. package/entities/DateAndTime/action.json +104 -0
  67. package/entities/DateAndTime/schema.json +23 -0
  68. package/entities/GREInterfaces/action.json +104 -0
  69. package/entities/GREInterfaces/schema.json +23 -0
  70. package/entities/Groups/action.json +104 -0
  71. package/entities/Groups/schema.json +23 -0
  72. package/entities/Hostname/action.json +44 -0
  73. package/entities/Hostname/schema.json +20 -0
  74. package/entities/IPv6/action.json +44 -0
  75. package/entities/IPv6/schema.json +20 -0
  76. package/entities/LoopbackInterfaces/action.json +104 -0
  77. package/entities/LoopbackInterfaces/schema.json +23 -0
  78. package/entities/Messages/action.json +124 -0
  79. package/entities/Messages/schema.json +24 -0
  80. package/entities/PhysicalInterfaces/action.json +64 -0
  81. package/entities/PhysicalInterfaces/schema.json +21 -0
  82. package/entities/PolicyBasedRouting/action.json +184 -0
  83. package/entities/PolicyBasedRouting/schema.json +27 -0
  84. package/entities/PreDefinedTrap/action.json +44 -0
  85. package/entities/PreDefinedTrap/schema.json +20 -0
  86. package/entities/Proxy/action.json +64 -0
  87. package/entities/Proxy/schema.json +21 -0
  88. package/entities/Radius/action.json +44 -0
  89. package/entities/Radius/schema.json +20 -0
  90. package/entities/Routes/action.json +164 -0
  91. package/entities/Routes/schema.json +26 -0
  92. package/entities/ScheduledBackups/action.json +104 -0
  93. package/entities/ScheduledBackups/schema.json +23 -0
  94. package/entities/ScheduledSnapshots/action.json +44 -0
  95. package/entities/ScheduledSnapshots/schema.json +20 -0
  96. package/entities/StaticRoutes/action.json +104 -0
  97. package/entities/StaticRoutes/schema.json +23 -0
  98. package/entities/Syslog/action.json +144 -0
  99. package/entities/Syslog/schema.json +25 -0
  100. package/entities/Tacacs/action.json +44 -0
  101. package/entities/Tacacs/schema.json +20 -0
  102. package/entities/TrapReceiver/action.json +104 -0
  103. package/entities/TrapReceiver/schema.json +23 -0
  104. package/entities/USM/action.json +104 -0
  105. package/entities/USM/schema.json +23 -0
  106. package/entities/Users/action.json +104 -0
  107. package/entities/Users/schema.json +23 -0
  108. package/entities/VlanInterface/action.json +104 -0
  109. package/entities/VlanInterface/schema.json +23 -0
  110. package/entities/VxlanInterface/action.json +104 -0
  111. package/entities/VxlanInterface/schema.json +23 -0
  112. package/error.json +190 -0
  113. package/metadata.json +53 -0
  114. package/package.json +83 -0
  115. package/pronghorn.json +7737 -0
  116. package/propertiesDecorators.json +14 -0
  117. package/propertiesSchema.json +1569 -0
  118. package/refs?service=git-upload-pack +0 -0
  119. package/report/GAIA API-1.6.postman_collection.json-OpenApi3Json.json +12507 -0
  120. package/report/adapterInfo.json +10 -0
  121. package/report/creationReport.json +1565 -0
  122. package/sampleProperties.json +256 -0
  123. package/test/integration/adapterTestBasicGet.js +83 -0
  124. package/test/integration/adapterTestConnectivity.js +142 -0
  125. package/test/integration/adapterTestIntegration.js +5145 -0
  126. package/test/unit/adapterBaseTestUnit.js +1024 -0
  127. package/test/unit/adapterTestUnit.js +6055 -0
  128. package/utils/adapterInfo.js +206 -0
  129. package/utils/addAuth.js +94 -0
  130. package/utils/artifactize.js +146 -0
  131. package/utils/basicGet.js +50 -0
  132. package/utils/checkMigrate.js +63 -0
  133. package/utils/entitiesToDB.js +179 -0
  134. package/utils/findPath.js +74 -0
  135. package/utils/methodDocumentor.js +273 -0
  136. package/utils/modify.js +152 -0
  137. package/utils/packModificationScript.js +35 -0
  138. package/utils/patches2bundledDeps.js +90 -0
  139. package/utils/pre-commit.sh +32 -0
  140. package/utils/removeHooks.js +20 -0
  141. package/utils/setup.js +33 -0
  142. package/utils/taskMover.js +309 -0
  143. package/utils/tbScript.js +239 -0
  144. package/utils/tbUtils.js +489 -0
  145. package/utils/testRunner.js +298 -0
  146. package/utils/troubleshootingAdapter.js +193 -0
@@ -0,0 +1,47 @@
1
+ ## Troubleshoot
2
+
3
+ Run `npm run troubleshoot` to start the interactive troubleshooting process. The command allows you to verify and update connection, authentication as well as healthcheck configuration. After that it will test these properties by sending HTTP request to the endpoint. If the tests pass, it will persist these changes into IAP.
4
+
5
+ You also have the option to run individual commands to perform specific test:
6
+
7
+ - `npm run healthcheck` will perform a healthcheck request of with current setting.
8
+ - `npm run basicget` will perform some non-parameter GET request with current setting.
9
+ - `npm run connectivity` will perform networking diagnostics of the adatper endpoint.
10
+
11
+ ### Connectivity Issues
12
+
13
+ 1. You can run the adapter troubleshooting script which will check connectivity, run the healthcheck and run basic get calls.
14
+
15
+ ```bash
16
+ npm run troubleshoot
17
+ ```
18
+
19
+ 2. Verify the adapter properties are set up correctly.
20
+
21
+ ```text
22
+ Go into the Itential Platform GUI and verify/update the properties
23
+ ```
24
+
25
+ 3. Verify there is connectivity between the Itential Platform Server and Checkpoint_gaia Server.
26
+
27
+ ```text
28
+ ping the ip address of Checkpoint_gaia server
29
+ try telnet to the ip address port of Checkpoint_gaia
30
+ execute a curl command to the other system
31
+ ```
32
+
33
+ 4. Verify the credentials provided for Checkpoint_gaia.
34
+
35
+ ```text
36
+ login to Checkpoint_gaia using the provided credentials
37
+ ```
38
+
39
+ 5. Verify the API of the call utilized for Checkpoint_gaia Healthcheck.
40
+
41
+ ```text
42
+ Go into the Itential Platform GUI and verify/update the properties
43
+ ```
44
+
45
+ ### Functional Issues
46
+
47
+ Adapter logs are located in `/var/log/pronghorn`. In older releases of the Itential Platform, there is a `pronghorn.log` file which contains logs for all of the Itential Platform. In newer versions, adapters can be configured to log into their own files.