Pytest-terra-fixt

Latest version: v0.6.2

Safety actively analyzes 641134 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 3

0.4.2

- Create handling for `terragrunt_version` fixture to be parametrized with `latest`. This will install and/or use the latest version of Terragrunt.

0.4.1

Features

- Add `terragrunt_version` fixture

0.3.3

Bug fixes

- Fix Terraform backend tfstate file being removed on tftest instance exit by adding `cleanup_on_exit=False` argument within `tftest.TerraformTest.setup()` when --skip-tf-destroy flag is set

0.3.2

Bug Fixes

- Remove Pytest managed terraform backend and let Terraform configuration set backend

0.3.1

Bug Fixes

- convert tf_vars value to json if the type is dict or list so the Terraform `-var` flag can properly parse the flag value

0.3.0

Changes

- `tf_plan` and `tf_apply` fixtures are now factory fixtures. The factory fixtures accept the `tf_vars` argument that passes Terraform variables to the target configuration. The fixture also accepts an `update=True|False` argument. If set to `True` the fixture will run the Terraform command before returning the output. If `False`, the fixture will return the cached output from the prior execution of the fixture. This is useful for cases where Terraform plan/apply for a large Terraform configuration only needs to be executed once per Pytest session and the output is used in multiple tests.

Page 2 of 3

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.