test: add containerized default go-ftw tests to docker compose file#4627
test: add containerized default go-ftw tests to docker compose file#4627studersi wants to merge 2 commits intocoreruleset:maincoreruleset/coreruleset:mainfrom studersi:feature/default-testing-setupstudersi/coreruleset:feature/default-testing-setupCopy head branch name to clipboard
Conversation
|
Thank you very much for this contribution! I tested it locally and it works for me: Apache: I'm wondering why these tests are failing with NGINX: |
|
Thanks for having a look at this. In my case, the only failing tests I had were the ones with exceptions in tests/regression/httpd-overrides.yaml and tests/regression/nginx-overrides.yaml. I added these exceptions to my corresponding tests/regression/ftw-modsec2-apache.yaml and tests/regression/ftw-modsec3-nginx.yaml config files. Aside from those I did not have any failed tests. I just rechecked with the latest version of the main branch and there are no failed tests in my case: Could it be that you are not running this on the latest version of the main branch or do you have customized tests because of ongoing development? |
|
This is strange. I checked out your feature branch |
|
I rebased the feature branch onto the latest state of main, could you try again? in my case, it still shows no errors. |
|
Thank you for rebasing. |
Proposed changes
This pull request adds
go-ftwcontainers to the docker-compose.yml file with default configurations for getting started more quickly with ruleset testing.PR Checklist
commentfield to write the expected behaviorFurther comments
I find it useful sometimes to be able to quickly spin up a completely ephemeral testing setup by just cloning the repo and running
docker-compose up, without having to install anything and preparing specific configuration files etc.If this pull request is at odds with other workflows that are used by the community, feel free to close it.
AI Disclosure
AI usage for this contribution: Used
If "Used", complete the details below:
For the reviewer
ctl:requestBodyAccess=Offwere used in the rule