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

Add support for informative tests #793

Merged
merged 1 commit into from
Nov 8, 2023
Merged

Conversation

lcarva
Copy link
Member

@lcarva lcarva commented Nov 7, 2023

Some tests are required to be executed, but their results do not have to be successful. They are meant to inform the user that their results need some attention, but they are non-blocking. An example of such test is a certain code scanner which may produce a high number of false positives. These tests are referred to as informative.

This commit modifies the test package to more easily support these types of tests.

Also, since test.no_skipped_tests has been modified to emit a violation instead of a warning, an effective date to a month from now has been added. This should allow users to gradually address any issues before they become blocking.

Ref: EC-224

Some tests are required to be executed, but their results do not have to
be successful. They are meant to inform the user that their results need
some attention, but they are non-blocking. An example of such test is a
certain code scanner which may produce a high number of false positives.
These tests are referred to as informative.

This commit modifies the `test` package to more easily support these
types of tests.

Also, since `test.no_skipped_tests` has been modified to emit a
violation instead of a warning, an effective date to a month from now
has been added. This should allow users to gradually address any issues
before they become blocking.

Ref: EC-224

Signed-off-by: Luiz Carvalho <lucarval@redhat.com>
policy/release/test.rego Show resolved Hide resolved
@lcarva lcarva merged commit c4603b8 into enterprise-contract:main Nov 8, 2023
5 checks passed
@lcarva lcarva deleted the EC-224 branch November 8, 2023 14:44
zregvart added a commit to zregvart/ec-cli that referenced this pull request Jan 11, 2024
With EC-224 and the change in [1] we time-bombed the acceptance tests.
This modifies the scenario slightly so a different rule, one emitting a
warning, is used. I believe the original intent of the test is
maintained.

[1] enterprise-contract/ec-policies#793
zregvart added a commit to zregvart/ec-cli that referenced this pull request Jan 11, 2024
With EC-224 and the change in [1] we time-bombed the acceptance tests.
This modifies the scenario slightly so a different rule, one emitting a
warning, is used. I believe the original intent of the test is
maintained.

[1] enterprise-contract/ec-policies#793
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