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

additional files in helm_unittest_tests #21525

Open
seBasKov opened this issue Oct 14, 2024 · 0 comments
Open

additional files in helm_unittest_tests #21525

seBasKov opened this issue Oct 14, 2024 · 0 comments
Labels
backend: Helm Helm backend-related issues bug

Comments

@seBasKov
Copy link

Describe the bug
I am trying the following from the documentation: https://www.pantsbuild.org/stable/docs/helm#feeding-additional-files-to-unit-tests
And we are getting the error that:

 FAIL  test ConfigMap template	custom-deployment/tests/env_configmap_test.yaml
	- should render with the correct env variables from the values.yaml
		Error: open custom-deployment/tests/values.yaml: no such file or directory

Looking in the sandboxes this is also confirmed. The values file is not there.
In our tests folder we have the BUILD file with:

helm_unittest_tests(dependencies=[":values"])

resources(name="values", sources=["values.yaml"])

The BUILD file in the Chart:

helm_chart(
    name="custom-deployment",
    registries=["oci://example/example/charts"],
)
files(
    name="release",
    sources=["VERSION", "tbump.toml", "CHANGELOG.md", "Chart.yaml"],
)
files(
    name="helm-files",
    sources=[
        "templates/**/*",
    ],
)

We are starting to suspect that there might be a bug in pants version 2.21.0. Which is the one that we are using. Any thoughts?

Pants version
Which version of Pants are you using?
2.21.0
OS
Are you encountering the bug on MacOS, Linux, or both?
MacOs
Additional info
Add any other information about the problem here, such as attachments or links to gists, if relevant.

@seBasKov seBasKov added the bug label Oct 14, 2024
@huonw huonw added the backend: Helm Helm backend-related issues label Oct 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend: Helm Helm backend-related issues bug
Projects
None yet
Development

No branches or pull requests

2 participants