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

Schema additions and improvements for v2.0 #7

Merged
merged 4 commits into from
May 5, 2024

Conversation

theseion
Copy link
Collaborator

@theseion theseion commented May 4, 2024

- add `follow_redirect` to enable redirect tracking using multiple test
  stages
- add `encoded_data` to allow complex request data to be passed more
  consistently
- rename `expect_id` and `no_expect_id` to plural form and make them
  accept a list of ints; especially `no_expect_ids` can be helpful when
  writing tests for exclusion rules
- add `StageIds` to platform overrides to target overrides to specific
  stages
- remove `ExpectFailure` in favor of the existing `Output.ExpectError`;
  there's no longer a reason for configuration to simply fail as we have
  full control over expectations
- remove `FileName`, which can be derived and shouldn't be a hard-coded
  value
- add `RuleId` to top-level test structure to replace test title, file
  name, with rule ID + test ID
- add `IdString()` function to print the matchable test ID (<rule
  ID>-<test ID>)
- removed the additional `StageData` struct
@fzipi fzipi merged commit ba047e4 into coreruleset:main May 5, 2024
1 check passed
@theseion theseion deleted the schema-additions-and-improvements branch May 6, 2024 04:59
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