wargio / naxsi

NAXSI is an open-source, high performance, low rules maintenance WAF for NGINX
GNU General Public License v3.0
306 stars 38 forks source link

Generate python tests #41

Closed staticlibs closed 2 years ago

staticlibs commented 2 years ago

This is a follow-up PR to #39 . It adds the script that can generate a python test suite:

python ./.scripts/naxsi-gen-tests.py

To run the test suit ordinary python unittest tools can be used:

python -m unittest discover ./unit-tests/python/ -v

This PR adds all generated files to gitignore and re-generates them on CI before running. The idea it to get them into a stable enough state and then to commit the .py files and remove the generation script and .t files.