Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update to newest ftw-tests-schema #209

Merged
merged 10 commits into from
May 10, 2024
Merged

Conversation

theseion
Copy link
Collaborator

@theseion theseion commented Nov 11, 2023

  • add new retry_once option
  • add test case for retry_once
  • make test infrastructure more modular
  • improvements to CLI
  • support for platform overrides
  • removal of deprecated options and obsolete code

@fzipi
Copy link
Member

fzipi commented Nov 12, 2023

@theseion Looks like we have conflicts on this one...

@theseion
Copy link
Collaborator Author

Depends on the new scheme changes.

@theseion
Copy link
Collaborator Author

theseion commented May 4, 2024

Requires coreruleset/ftw-tests-schema#7

@theseion theseion marked this pull request as ready for review May 4, 2024 19:28
- add new `retry_once` option
- add test case for `retry_once`
- make test infrastructure more modular
- add flag to stop test run on first test failure
- fix statistics to record at test, not stage level
The log file was the last remaining setting that could not be configured
from the command line.
The default read timeout is too short for some of the more expensive
tests.
- always print test ID on failure; especially useful with
  --show-failures-only
- use the same indentation for all output messages
@theseion theseion changed the title feat: add run_once option for tests feat: update to newest ftw-tests-schema May 10, 2024
@theseion
Copy link
Collaborator Author

I think this is ready. It currently uses a fixed commit from ftw-tests-schema, so that we can fix the schema, if necessary, before we tag a new version.

This PR has grown quite a bit because many refactorings came in handy and I opted to adjust the schema on-the-fly where I thought it made sense.

There's a draft PR for CRS where I've made all the necessary changes to support the code here: coreruleset/coreruleset#3369. With that PR, all tests for both nginx and httpd succeed (including all previously disabled and commented tests).

Note that Coraza support will come a bit later with coreruleset/coreruleset#3377.

It would be great if I could also get feedback from @jcchavezs and @christiantreutler-avi on how these changes will affect you.

@jcchavezs Note that I opted to drop the replace for koanf/maps because it is annoying. If that's a problem for Coraza, let me know.

@fzipi
Copy link
Member

fzipi commented May 10, 2024

Ugh, massive. Ok, will take some time to parse this.

@fzipi
Copy link
Member

fzipi commented May 10, 2024

Well, honestly, is too big to understand cross implications between things. I'll approve and 🤞

@fzipi fzipi merged commit a081f20 into coreruleset:main May 10, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants