terraform icon indicating copy to clipboard operation
terraform copied to clipboard

Terraform test reports success when tests were skipped

Open tata2000 opened this issue 2 years ago • 1 comments

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

tata2000 avatar May 12 '22 12:05 tata2000

Thanks for the report, @tata2000!

crw avatar May 12 '22 23:05 crw

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!

liamcervante avatar Dec 10 '24 11:12 liamcervante

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.

github-actions[bot] avatar Jan 10 '25 02:01 github-actions[bot]