pytest-terraform
pytest-terraform copied to clipboard
pytest terraform plugin with fixtures and offline replay support
at the moment open tofu support requires passing --tf-binary flag, we should automatically support without explicit cli flag.
**Can be assigned to me, just looking for some feedback beforehand.** Sometimes tests require that specific infrastructure is already created. It isn't always possible or practical to create it within...
Can be assigned to me, I would just like some feedback on the issue / approach first. It would be good to specify and override values for Terraform variables when...
The following snippet produces an apply and destroy despite the teardown option. Other scopes such as module produce the same result. ``` @terraform('network', scope='session', teardown=terraform.TEARDOWN_OFF) def test_network(network): assert network['aws_vpc.main.cidr_block'] ==...
Currently it appears that resources defined with `count` or `for_each` are not being parsed properly. The `TerraformState.parse_state` function always picks the first instance of each resource, so any resources defined...
ala ```python def test(terraform): with terraform(path) as tf: tf.apply(auto=True) with terraform(path, state_from=tf) as tf2: apply_mods ```
I was looking for a way to split up my terraform fixtures, to have a base fixture that could be used by more than one test, and then have per-test...
switch to ruff for lint and format and update dependencies