From 4ed859c307c267107c57108593d43963ac6070e1 Mon Sep 17 00:00:00 2001 From: Claudiu Belu Date: Wed, 8 Aug 2018 17:20:27 -0700 Subject: [PATCH] tests: Skips AfterEach step if provider is not supported The BeforeEach step for cluster_size_autoscaling is skipped if the provider is not gce or gke. The AfterEach step should also be skipped, since nothing was done. --- test/e2e/autoscaling/cluster_size_autoscaling.go | 1 + 1 file changed, 1 insertion(+) diff --git a/test/e2e/autoscaling/cluster_size_autoscaling.go b/test/e2e/autoscaling/cluster_size_autoscaling.go index 78104bdde05..db7610e2457 100644 --- a/test/e2e/autoscaling/cluster_size_autoscaling.go +++ b/test/e2e/autoscaling/cluster_size_autoscaling.go @@ -134,6 +134,7 @@ var _ = SIGDescribe("Cluster size autoscaling [Slow]", func() { }) AfterEach(func() { + framework.SkipUnlessProviderIs("gce", "gke") By(fmt.Sprintf("Restoring initial size of the cluster")) setMigSizes(originalSizes) expectedNodes := 0