Skip to content

Introduce Helm Chart unit tests #10192

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

Merged
merged 7 commits into from
Jun 5, 2024

Conversation

maciej-tatarski
Copy link
Contributor

@maciej-tatarski maciej-tatarski commented Jun 4, 2024

Type of change

  • Enhancement / new feature

Description

Adding unit tests for helm charts.

Checklist

  • Write tests
  • Make sure all tests pass

@maciej-tatarski maciej-tatarski marked this pull request as draft June 4, 2024 11:49
Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

Thanks for the PR @maciej-tatarski. I think it looks good, I have just some minor comments:

  • Maybe you can link it from the main Makefile? Add something like this: https://github.com/strimzi/strimzi-kafka-operator/blob/main/Makefile#L170-L171 for the helm_unittest target as well?
  • I appreciate the GitHub workflow. But I think we will want to plug it into our Azure pipelines workflow to have it run also during releases etc. So I think you can remove the GitHub workflow for it. I'm happy to add it to the Azure pipeline myself in a follow up PR.
  • I think the initial tests are completely fine. It is hard to add tests for everything out of the box. But once we have it, it will be much easier to add tests for any new features.
  • Could you please add some note about the installation of the Helm plugin to https://github.com/strimzi/strimzi-kafka-operator/blob/main/development-docs/DEV_GUIDE.md#build-pre-requisites for any new contributors? I think just mentioning the plugin and sharing the installation command should be sufficient.

Thanks!

@scholzj scholzj linked an issue Jun 4, 2024 that may be closed by this pull request
@scholzj scholzj added this to the 0.42.0 milestone Jun 4, 2024
@scholzj
Copy link
Member

scholzj commented Jun 4, 2024

/azp run helm-acceptance

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@maciej-tatarski maciej-tatarski marked this pull request as ready for review June 5, 2024 05:59
@maciej-tatarski
Copy link
Contributor Author

@scholzj I applied all the suggestions :)

Copy link
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

@scholzj
Copy link
Member

scholzj commented Jun 5, 2024

/azp run helm-acceptance

@scholzj scholzj requested a review from ppatierno June 5, 2024 07:21
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Member

@im-konge im-konge left a comment

Choose a reason for hiding this comment

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

LGTM, thanks a lot 🙂!

Copy link
Member

@ppatierno ppatierno left a comment

Choose a reason for hiding this comment

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

LGTM. Not an Helm user/expert but the tests seem to make sense to me :-) Thanks!

@scholzj scholzj merged commit de514f3 into strimzi:main Jun 5, 2024
14 checks passed
@scholzj
Copy link
Member

scholzj commented Jun 5, 2024

Thanks for the PR @maciej-tatarski

pandurangkhandeparker added a commit to pandurangkhandeparker/strimzi-kafka-operator that referenced this pull request Jun 10, 2024
Signed-off-by: Pandurang Khandeparker <[email protected]>
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.

Add unit tests for the Helm Chart
4 participants