type HPAUpgradeTest … // Name returns the tracking name of the test. func (HPAUpgradeTest) Name() string { … } // Setup creates a resource consumer and an HPA object that autoscales the consumer. func (t *HPAUpgradeTest) Setup(ctx context.Context, f *framework.Framework) { … } // Test waits for upgrade to complete and verifies if HPA works correctly. func (t *HPAUpgradeTest) Test(ctx context.Context, f *framework.Framework, done <-chan struct{ … } // Teardown cleans up any remaining resources. func (t *HPAUpgradeTest) Teardown(ctx context.Context, f *framework.Framework) { … } func (t *HPAUpgradeTest) test(ctx context.Context) { … }