@itentialopensource/adapter-onap_aai 0.3.1 → 0.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 (53) hide show
  1. package/.eslintignore +1 -0
  2. package/.eslintrc.js +12 -12
  3. package/AUTH.md +39 -0
  4. package/BROKER.md +199 -0
  5. package/CALLS.md +169 -0
  6. package/CHANGELOG.md +51 -4
  7. package/CODE_OF_CONDUCT.md +12 -17
  8. package/CONTRIBUTING.md +88 -74
  9. package/ENHANCE.md +69 -0
  10. package/PROPERTIES.md +641 -0
  11. package/README.md +244 -392
  12. package/SUMMARY.md +9 -0
  13. package/SYSTEMINFO.md +11 -0
  14. package/TROUBLESHOOT.md +47 -0
  15. package/adapter.js +9100 -1570
  16. package/adapterBase.js +1331 -50
  17. package/entities/.generic/action.json +214 -0
  18. package/entities/.generic/schema.json +28 -0
  19. package/entities/.system/action.json +1 -1
  20. package/error.json +12 -0
  21. package/package.json +47 -23
  22. package/pronghorn.json +642 -0
  23. package/propertiesDecorators.json +14 -0
  24. package/propertiesSchema.json +505 -11
  25. package/refs?service=git-upload-pack +0 -0
  26. package/report/aai_OpenApi3Json.json +100543 -0
  27. package/report/adapterInfo.json +10 -0
  28. package/report/updateReport1594247762491.json +95 -0
  29. package/report/updateReport1615475662647.json +95 -0
  30. package/report/updateReport1653248343874.json +120 -0
  31. package/sampleProperties.json +110 -6
  32. package/test/integration/adapterTestBasicGet.js +85 -0
  33. package/test/integration/adapterTestConnectivity.js +93 -0
  34. package/test/integration/adapterTestIntegration.js +33 -96
  35. package/test/unit/adapterBaseTestUnit.js +949 -0
  36. package/test/unit/adapterTestUnit.js +643 -104
  37. package/utils/adapterInfo.js +206 -0
  38. package/utils/addAuth.js +94 -0
  39. package/utils/artifactize.js +9 -14
  40. package/utils/basicGet.js +50 -0
  41. package/utils/checkMigrate.js +63 -0
  42. package/utils/entitiesToDB.js +179 -0
  43. package/utils/findPath.js +74 -0
  44. package/utils/modify.js +154 -0
  45. package/utils/packModificationScript.js +1 -1
  46. package/utils/patches2bundledDeps.js +90 -0
  47. package/utils/pre-commit.sh +4 -1
  48. package/utils/removeHooks.js +20 -0
  49. package/utils/tbScript.js +184 -0
  50. package/utils/tbUtils.js +469 -0
  51. package/utils/testRunner.js +16 -16
  52. package/utils/troubleshootingAdapter.js +190 -0
  53. package/gl-code-quality-report.json +0 -1
package/SUMMARY.md ADDED
@@ -0,0 +1,9 @@
1
+ ## Overview
2
+
3
+ This adapter is used to integrate the Itential Automation Platform (IAP) with the Onap_aai System. The API that was used to build the adapter for Onap_aai is usually available in the report directory of this adapter. The adapter utilizes the Onap_aai API to provide the integrations that are deemed pertinent to IAP. The ReadMe file is intended to provide information on this adapter it is generated from various other Markdown files.
4
+
5
+ >**Note**: It is possible that some integrations will be supported through the Onap_aai adapter while other integrations will not. If you need additional API calls, you can use the Update capabilities provided by the Adapter Builder or request Itential to add them if the Adapter is an Itential opensourced adapter.
6
+
7
+ Itential provides information on all of its product adapters in the Customer Knowledge Base. Information in the <a href="https://itential.atlassian.net/servicedesk/customer/portals" target="_blank">Customer Knowledge Base</a> is consistently maintained and goes through documentation reviews. As a result, it should be the first place to go for information.
8
+
9
+ For opensourced and custom built adapters, the ReadMe is a starting point to understand what you have built, provide the information for you to be able to update the adapter, and assist you with deploying the adapter into IAP.
package/SYSTEMINFO.md ADDED
@@ -0,0 +1,11 @@
1
+ # ONAP - Active and Available Inventory
2
+
3
+ Vendor: ONAP - Active and Available Inventory
4
+ Homepage: https://ONAP - Active and Available Inventory.com/
5
+
6
+ Product: ONAP - Active and Available Inventory
7
+ Product Page: https://ONAP - Active and Available Inventory.com/
8
+
9
+ ## Introduction
10
+
11
+ ## Additional Product Documentation
@@ -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 Onap_aai Server.
26
+
27
+ ```text
28
+ ping the ip address of Onap_aai server
29
+ try telnet to the ip address port of Onap_aai
30
+ execute a curl command to the other system
31
+ ```
32
+
33
+ 4. Verify the credentials provided for Onap_aai.
34
+
35
+ ```text
36
+ login to Onap_aai using the provided credentials
37
+ ```
38
+
39
+ 5. Verify the API of the call utilized for Onap_aai 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.