connectors icon indicating copy to clipboard operation
connectors copied to clipboard

[tool] Testing pytest on connectors

Open aHenryJard opened this issue 1 year ago • 0 comments

Proposed changes

  • Add test-requirements.txt file 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: image

  • Tests running image

  • Green when all tests passed image

image

And display test part for checks:

image

aHenryJard avatar Jan 03 '24 14:01 aHenryJard