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

chore(RHTAPWATCH-691): verify-rpms test to fail on unsigned RPMs #35

Merged
merged 1 commit into from
Dec 31, 2023

Conversation

Omeramsc
Copy link
Member

@Omeramsc Omeramsc commented Dec 26, 2023

The e2e test for the verify-rpms script checked
only a scenario where it should not fail when unsigned RPMs
or errors exists.

Adds tests for multiple scenarios - where the script should
and should not fail when encountering unsigned RPMs or other errors.

This lead to a refactor which changed the failing responsability
from which fails the process from "generate_output" to the
main function.

@Omeramsc Omeramsc self-assigned this Dec 26, 2023
Copy link
Member

@yftacherzog yftacherzog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the unclarity is coming from the fact that we're not testing here our ability to fail on unsigned RPMs. We're testing our ability to fail based on the output of the function that generates the output.

tests/test_rpm_verifier.py Show resolved Hide resolved
tests/test_rpm_verifier.py Outdated Show resolved Hide resolved
Copy link
Member

@yftacherzog yftacherzog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

The e2e test for the verify-rpms script checked
only a scenario where it should not fail when unsigned RPMs
or errors exists.

Adds tests for multiple scenarios - where the script should
and should not fail when encountering unsigned RPMs or other errors.

This lead to a refactor which changed the failing responsability
from which fails the process from "generate_output" to the
main function.

Signed-off-by: Omer <[email protected]>
@yftacherzog yftacherzog merged commit 7d9c0ec into redhat-appstudio:main Dec 31, 2023
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