This addresses #220 and is a prerequisite to completing #212. See #220 for more details.
Testing
[x] make testacc passes
[x] Verified that TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted fails on master when run individually (not as part of the larger test suite)
$ TEST=TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted make testacc
[ ... ]
resource_xenorchestra_vm_test.go:1397: failed to halt VM with error: jsonrpc2: code 14 message: VM lacks feature : {"objectId":"195f07f5-c699-a270-3a31-a9eaafc54af3"}
- [x] Verified that the `TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted` test can run in isolation after this change
$ TEST=TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted make testacc
[ ... ]
=== RUN TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted
=== PAUSE TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted
=== CONT TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted
--- PASS: TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted (105.49s)
PASS
[DEBUG] Running sweeper
ok github.com/ddelnano/terraform-provider-xenorchestra/xoa 123.809s
testing: warning: no tests to run
PASS
ok github.com/ddelnano/terraform-provider-xenorchestra/xoa/internal 0.012s [no tests to run]
This addresses #220 and is a prerequisite to completing #212. See #220 for more details.
Testing
make testacc
passesTestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted
fails on master when run individually (not as part of the larger test suite)[ ... ]
--- FAIL: TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted (49.81s)
$ TEST=TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted make testacc
[ ... ]
=== RUN TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted === PAUSE TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted === CONT TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted --- PASS: TestAccXenorchestraVm_diskAndNetworkAttachmentIgnoredWhenHalted (105.49s) PASS [DEBUG] Running sweeper ok github.com/ddelnano/terraform-provider-xenorchestra/xoa 123.809s testing: warning: no tests to run PASS ok github.com/ddelnano/terraform-provider-xenorchestra/xoa/internal 0.012s [no tests to run]