[x] Run a test that leaves a VM running (TestAccXenorchestraVm_createWithShorterResourceTimeout) twice and verify that the VM is terminated before the test runs
# Test passes the first time
$ TEST=TestAccXenorchestraVm_createWithShorterResourceTimeout make testacc
=== RUN TestAccXenorchestraVm_createWithShorterResourceTimeout
=== PAUSE TestAccXenorchestraVm_createWithShorterResourceTimeout
=== CONT TestAccXenorchestraVm_createWithShorterResourceTimeout
--- PASS: TestAccXenorchestraVm_createWithShorterResourceTimeout (22.65s)
PASS
[DEBUG] Running sweeper
ok github.com/ddelnano/terraform-provider-xenorchestra/xoa 40.988s
testing: warning: no tests to run
PASS
ok github.com/ddelnano/terraform-provider-xenorchestra/xoa/internal 0.040s [no tests to run]
Test passes the second time and Vm is deleted before the second test runs
$ TEST=TestAccXenorchestraVm_createWithShorterResourceTimeout make testacc
[ ... ]
[DEBUG] Deleting vm terraform-acc - TestAccXenorchestraVm_createWithShorterResourceTimeout
This addresses #84 and will aid in merging #179
Testing
TestAccXenorchestraVm_createWithShorterResourceTimeout
) twice and verify that the VM is terminated before the test runs$ TEST=TestAccXenorchestraVm_createWithShorterResourceTimeout make testacc === RUN TestAccXenorchestraVm_createWithShorterResourceTimeout === PAUSE TestAccXenorchestraVm_createWithShorterResourceTimeout === CONT TestAccXenorchestraVm_createWithShorterResourceTimeout --- PASS: TestAccXenorchestraVm_createWithShorterResourceTimeout (22.65s) PASS [DEBUG] Running sweeper ok github.com/ddelnano/terraform-provider-xenorchestra/xoa 40.988s testing: warning: no tests to run PASS ok github.com/ddelnano/terraform-provider-xenorchestra/xoa/internal 0.040s [no tests to run]
Test passes the second time and Vm is deleted before the second test runs
$ TEST=TestAccXenorchestraVm_createWithShorterResourceTimeout make testacc
[ ... ]
[DEBUG] Deleting vm
terraform-acc - TestAccXenorchestraVm_createWithShorterResourceTimeout