Hi Everyone! I am trying the following from the do...
# general
n
Hi Everyone! 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:
Copy code
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:
Copy code
helm_unittest_tests(dependencies=[":values"])

resources(name="values", sources=["values.yaml"])
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?
b
One thing you can try to see what’s going on is running your test target with
--keep-sandboxes
, ex:
pants --keep-sandboxes test <your helm target here>
And then, you can inspect the contents of the sandbox to see if your
values.yaml
file shows up alongside your test
n
I did that and they are not there 🫠