eks-anywhere icon indicating copy to clipboard operation
eks-anywhere copied to clipboard

Add poweroff hardware cleanup step after Tinkerbell E2E tests

Open cxbrowne1207 opened this issue 9 months ago • 2 comments

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 to Provider.CleanupResources
  • Move powerOffHardware out of ValidateHardwareDecommissioned 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.

cxbrowne1207 avatar May 10 '24 21:05 cxbrowne1207