Best Practices
- 05 Dec 2022
-
DarkLight
-
PDF
Best Practices
- Updated on 05 Dec 2022
-
DarkLight
-
PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
This article presents the best practices to follow when you are downloading or building an adapter.
- Install the adapter into the directory where IAP will run it. This should be in IAPHome/node_modules/@
/adapter- .
For example: /opt/pronghorn/current/node_modules/@itentialopensource/adapter-sevone.
- Go into the adapter directory and install the adapter dependencies.
run npm install
- Run linting on the adapter.
npm run lint
- Run unit tests on the adapter.
npm run test:unit
- Run standalone integration tests on the adapter.
npm run test:integration
-
If there is an instance of the other system that you can test, attempt to run integration tests with that system.
a. Edit the properties in the integration test file accordingly.
b. Run integration tests — npm run test:integration
c. If there are any issues, turn debug logging on and attempt to determine what the issues are.If you need assistance, please don't hesitate to contact the Itential Adapters Team.
Was this article helpful?