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'] == '10.0.0.0/16'
When removing the scope argument and letting it default to function, the terraform is applied but not destroyed, as expected. Is there anything I am doing incorrectly?
The following snippet produces an apply and destroy despite the teardown option. Other scopes such as module produce the same result.
When removing the
scopeargument and letting it default to function, the terraform is applied but not destroyed, as expected. Is there anything I am doing incorrectly?