terraform
terraform copied to clipboard
Terraform test reports success when tests were skipped
terraform test reports success when tests were skipped without notifying about that the user. This is only seen in the logs and -junit-xml file
This situation can be reproduced with a read-only user.
When creation of the resources in modules does not succeed all the tests are skipped (even tests such as "x"=="y") and success is reported to the end-user.
repo with example here: github.com:tata2000/terraform_test_bugrepor
Thanks for the report, @tata2000!
I think the finalised terraform test
command reports correctly errors in the plan and apply stages as an overall failed test. I will close this issue. If you can replicate it within the new testing framework, please open a new issue using the latest configuration that replicates the problem. Thanks!
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.