connectors
connectors copied to clipboard
[tool] Testing pytest on connectors
Proposed changes
- Add
test-requirements.txtfile for folders which have tests - Add a shell script file which look into folder to find test-requirements file and install necessary dependencies for running the tests
- Complete config.yml for CircleCI
- Only 4 connectors use Poetry package manager, in order to be aligned with all other connectors, it will be replaced with requirements.txt file. Concerning connectors:
- External import connector: ironnet and urlscan
- Internal enrichment connector: shodan-internetdb
- Stream connector: elastic
Checklist
- [x] I consider the submitted work as finished
- [x] I tested the code for its functionality using different use cases
- [x] I added/update the relevant documentation (either on github or on notion)
- [x] Where necessary I refactored code to improve the overall quality
Further comments
For connectors that already have tests folder:
-
Install testing libraries and requirements:
-
Tests running
-
Green when all tests passed
And display test part for checks: