eks-anywhere
eks-anywhere copied to clipboard
Add poweroff hardware cleanup step after Tinkerbell E2E tests
Issue #, if available:
Description of changes: This PR makes changes to ensure that Tinkerbell hardware for a test are powered off after a run. A few changes were made as a result:
- Changed
--cleanup-vms
to--cleanup-resources
to make it more generic (because tinkerbell does not use VMs). - Changed the E2E test
Provider.CleanupVMs
method toProvider.CleanupResources
- Move
powerOffHardware
out ofValidateHardwareDecommissioned
so it does not run twice at the end of existing tests. - Implemented the E2E test Tinkerbell
Provider.CleanupResources
method to power off hardware machines.
Testing (if applicable):
Documentation added/planned (if applicable):
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.