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

fix(tests): Don't expect a json in stdout from kwctl anymore #28

Merged
merged 1 commit into from
Aug 27, 2024

Conversation

viccuad
Copy link
Member

@viccuad viccuad commented Aug 27, 2024

Description

Relates to kubewarden/kubewarden-controller#838.

Test

Tested locally, e2e tests don't run on CI right now.

Additional Information

Tradeoff

Potential improvement

@viccuad viccuad self-assigned this Aug 27, 2024
@viccuad viccuad requested a review from a team as a code owner August 27, 2024 09:29
Signed-off-by: Víctor Cuadrado Juan <vcuadradojuan@suse.de>
Copy link

@kravciak kravciak left a comment

Choose a reason for hiding this comment

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

LGTM, I just wonder if bats assertions are available here:
https://github.com/ztombol/bats-assert?tab=readme-ov-file#partial-matching

@viccuad
Copy link
Member Author

viccuad commented Aug 27, 2024

LGTM, I just wonder if bats assertions are available here:
https://github.com/ztombol/bats-assert?tab=readme-ov-file#partial-matching

@kravciak tried locally in Debian and NixOS, and couldn't get it to work; cannot reliably load bats-support (following https://bats-core.readthedocs.io/en/stable/writing-tests.html#bats-load-library-load-system-wide-libraries, https://github.com/ztombol/bats-docs?tab=readme-ov-file#loading). It feels too system-dependent.

Given that we need to support contributors and first-time users, it may not be a good fit for user-facing repos. It's a pity, because it would be a nice addition :/.

@viccuad viccuad merged commit 17e6bfd into kubewarden:main Aug 27, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants