dmacvicar / terraform-provider-libvirt

Terraform provider to provision infrastructure with Linux's KVM using libvirt
Apache License 2.0
1.59k stars 458 forks source link

Investigate if we can use "sweepers" in our tests acceptance suite #805

Open MalloZup opened 3 years ago

MalloZup commented 3 years ago

From upstream doc and used in aws terraform provider there is the term of sweepers.

https://www.terraform.io/docs/extend/testing/acceptance-tests/sweepers.html

It could be useful for us to research if we could use this construct in our tests , so that when running the testsuite locally the environment is not in a "unclean" state.

MalloZup commented 3 years ago

see also from AWS: https://github.com/hashicorp/terraform-provider-aws/blob/master/docs/contributing/running-and-writing-acceptance-tests.md#running-test-sweepers