GoogleCloudPlatform / terraform-python-testing-helper

Simple Python test helper for Terraform.
https://pypi.org/project/tftest/
Apache License 2.0
214 stars 31 forks source link

Allow access to values from data lookups in plan tests #75

Closed fergoid closed 1 year ago

fergoid commented 1 year ago

Data lookup 'resources' are available in the Terraform plan under 'prior_state'. Could this be exposed by the tftest plan method?

ludoo commented 1 year ago

Would you care sending a PR?

fergoid commented 1 year ago

Sure I will do that.

Mark.

On Sun, 8 Oct 2023 at 09:52, Ludovico Magnocavallo @.***> wrote:

Would you care sending a PR?

— Reply to this email directly, view it on GitHub https://github.com/GoogleCloudPlatform/terraform-python-testing-helper/issues/75#issuecomment-1751966673, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXB7AVZWZ6GQXZ3QDFC5PTX6JSWXAVCNFSM6AAAAAA5W6UXCGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONJRHE3DMNRXGM . You are receiving this because you authored the thread.Message ID: <GoogleCloudPlatform/terraform-python-testing-helper/issues/75/1751966673@ github.com>

fergoid commented 1 year ago

I noticed all the Python indents in the files are 2 spaces but I am getting this warning PEP 8: E111 indentation is not a multiple of 4

Am I okay to reformat the files ?

ludoo commented 1 year ago

Nope :) just set your linter to 2 spaces

ludoo commented 1 year ago

This has now been released in v1.8.5

https://pypi.org/project/tftest/1.8.5/