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
terraform test for module with k8s_secret resource not failing correctly #30458
Comments
Hi @pindge, thanks for reporting this. When I run your tests, I also see the same behaviour, which I agree is confusing. What appears to be happening here is that the Kubernetes provider is erroring on apply, which This does seem like something we ought to fix in the Are you able to share the full debug logs using
|
Noting that the confusing behaviour of |
Terraform Version
Terraform Configuration Files
the
main.tf
filethe
test.tf
fileDebug Output
Expected Behavior
the
test_assertions
creds
should fail as the output ofkubernetes_secret.uplifted_user_creds.metadata[0].name
should beprocessing-aws-creds-test
.Actual Behavior
the test for it passed, indicating
terraform test
sees the output ofkubernetes_secret.uplifted_user_creds.metadata[0].name
equal tofoo value boop
Steps to Reproduce
terraform test
Additional Context
Nil
References
N/A
The text was updated successfully, but these errors were encountered: