From a74737eb037cbcad47aee3cb3fe0b619271a57ab Mon Sep 17 00:00:00 2001 From: wojtekt Date: Mon, 22 Feb 2021 19:53:33 +0100 Subject: [PATCH] Mark remaining e2e_node tests with [sig-*] label --- test/e2e_node/BUILD | 3 +- test/e2e_node/apparmor_test.go | 2 +- test/e2e_node/container_log_rotation_test.go | 2 +- test/e2e_node/container_manager_test.go | 2 +- test/e2e_node/critical_pod_test.go | 2 +- test/e2e_node/density_test.go | 2 +- test/e2e_node/device_plugin_test.go | 2 +- test/e2e_node/docker_test.go | 2 +- test/e2e_node/dynamic_kubelet_config_test.go | 2 +- test/e2e_node/eviction_test.go | 18 +++++----- test/e2e_node/garbage_collector_test.go | 2 +- test/e2e_node/gcp/BUILD | 36 +++++++++++++++++++ test/e2e_node/gcp/OWNERS | 4 +++ test/e2e_node/gcp/framework.go | 24 +++++++++++++ .../{ => gcp}/gke_environment_test.go | 14 ++++++-- test/e2e_node/gpu_device_plugin_test.go | 2 +- test/e2e_node/image_id_test.go | 2 +- test/e2e_node/log_path_test.go | 2 +- test/e2e_node/mirror_pod_grace_period_test.go | 2 +- test/e2e_node/mirror_pod_test.go | 2 +- test/e2e_node/node_container_manager_test.go | 2 +- test/e2e_node/node_problem_detector_linux.go | 4 +-- test/e2e_node/node_shutdown_linux_test.go | 2 +- test/e2e_node/pods_container_manager_test.go | 2 +- test/e2e_node/quota_lsci_test.go | 2 +- test/e2e_node/resource_metrics_test.go | 2 +- test/e2e_node/restart_test.go | 2 +- test/e2e_node/runtime_conformance_test.go | 2 +- test/e2e_node/runtimeclass_test.go | 2 +- test/e2e_node/security_context_test.go | 2 +- test/e2e_node/summary_test.go | 2 +- test/e2e_node/system_node_critical_test.go | 2 +- test/e2e_node/volume_manager_test.go | 2 +- 33 files changed, 114 insertions(+), 41 deletions(-) create mode 100644 test/e2e_node/gcp/BUILD create mode 100644 test/e2e_node/gcp/OWNERS create mode 100644 test/e2e_node/gcp/framework.go rename test/e2e_node/{ => gcp}/gke_environment_test.go (96%) diff --git a/test/e2e_node/BUILD b/test/e2e_node/BUILD index 5af085bd675..ce2542f9bfc 100644 --- a/test/e2e_node/BUILD +++ b/test/e2e_node/BUILD @@ -123,7 +123,6 @@ go_test( "e2e_node_suite_test.go", "eviction_test.go", "garbage_collector_test.go", - "gke_environment_test.go", "gpu_device_plugin_test.go", "hugepages_test.go", "image_id_test.go", @@ -219,7 +218,6 @@ go_test( "//test/e2e_node/services:go_default_library", "//test/utils:go_default_library", "//test/utils/image:go_default_library", - "//vendor/github.com/blang/semver:go_default_library", "//vendor/github.com/coreos/go-systemd/util:go_default_library", "//vendor/github.com/davecgh/go-spew/spew:go_default_library", "//vendor/github.com/google/go-cmp/cmp:go_default_library", @@ -276,6 +274,7 @@ filegroup( ":package-srcs", "//test/e2e_node/builder:all-srcs", "//test/e2e_node/environment:all-srcs", + "//test/e2e_node/gcp:all-srcs", "//test/e2e_node/perf/workloads:all-srcs", "//test/e2e_node/perftype:all-srcs", "//test/e2e_node/remote:all-srcs", diff --git a/test/e2e_node/apparmor_test.go b/test/e2e_node/apparmor_test.go index db4a9a62630..540c06affc8 100644 --- a/test/e2e_node/apparmor_test.go +++ b/test/e2e_node/apparmor_test.go @@ -46,7 +46,7 @@ import ( "github.com/onsi/gomega" ) -var _ = framework.KubeDescribe("AppArmor [Feature:AppArmor][NodeFeature:AppArmor]", func() { +var _ = SIGDescribe("AppArmor [Feature:AppArmor][NodeFeature:AppArmor]", func() { if isAppArmorEnabled() { ginkgo.BeforeEach(func() { ginkgo.By("Loading AppArmor profiles for testing") diff --git a/test/e2e_node/container_log_rotation_test.go b/test/e2e_node/container_log_rotation_test.go index 8ae9d3b2f8b..d00eca9d1b8 100644 --- a/test/e2e_node/container_log_rotation_test.go +++ b/test/e2e_node/container_log_rotation_test.go @@ -41,7 +41,7 @@ const ( rotationConsistentlyTimeout = 2 * time.Minute ) -var _ = framework.KubeDescribe("ContainerLogRotation [Slow] [Serial] [Disruptive]", func() { +var _ = SIGDescribe("ContainerLogRotation [Slow] [Serial] [Disruptive]", func() { f := framework.NewDefaultFramework("container-log-rotation-test") ginkgo.Context("when a container generates a lot of log", func() { ginkgo.BeforeEach(func() { diff --git a/test/e2e_node/container_manager_test.go b/test/e2e_node/container_manager_test.go index 135bc989303..497ff92f410 100644 --- a/test/e2e_node/container_manager_test.go +++ b/test/e2e_node/container_manager_test.go @@ -73,7 +73,7 @@ func validateOOMScoreAdjSettingIsInRange(pid int, expectedMinOOMScoreAdj, expect return nil } -var _ = framework.KubeDescribe("Container Manager Misc [Serial]", func() { +var _ = SIGDescribe("Container Manager Misc [Serial]", func() { f := framework.NewDefaultFramework("kubelet-container-manager") ginkgo.Describe("Validate OOM score adjustments [NodeFeature:OOMScoreAdj]", func() { ginkgo.Context("once the node is setup", func() { diff --git a/test/e2e_node/critical_pod_test.go b/test/e2e_node/critical_pod_test.go index c23708688e8..d9fae3fb516 100644 --- a/test/e2e_node/critical_pod_test.go +++ b/test/e2e_node/critical_pod_test.go @@ -41,7 +41,7 @@ const ( bestEffortPodName = "best-effort" ) -var _ = framework.KubeDescribe("CriticalPod [Serial] [Disruptive] [NodeFeature:CriticalPod]", func() { +var _ = SIGDescribe("CriticalPod [Serial] [Disruptive] [NodeFeature:CriticalPod]", func() { f := framework.NewDefaultFramework("critical-pod-test") ginkgo.Context("when we need to admit a critical pod", func() { tempSetCurrentKubeletConfig(f, func(initialConfig *kubeletconfig.KubeletConfiguration) { diff --git a/test/e2e_node/density_test.go b/test/e2e_node/density_test.go index d1a7a8a7de5..35bc15e35e1 100644 --- a/test/e2e_node/density_test.go +++ b/test/e2e_node/density_test.go @@ -49,7 +49,7 @@ const ( kubeletAddr = "localhost:10255" ) -var _ = framework.KubeDescribe("Density [Serial] [Slow]", func() { +var _ = SIGDescribe("Density [Serial] [Slow]", func() { const ( // The data collection time of resource collector and the standalone cadvisor // is not synchronized, so resource collector may miss data or diff --git a/test/e2e_node/device_plugin_test.go b/test/e2e_node/device_plugin_test.go index 2269f399dc7..5362c32178d 100644 --- a/test/e2e_node/device_plugin_test.go +++ b/test/e2e_node/device_plugin_test.go @@ -63,7 +63,7 @@ var ( ) // Serial because the test restarts Kubelet -var _ = framework.KubeDescribe("Device Plugin [Feature:DevicePluginProbe][NodeFeature:DevicePluginProbe][Serial]", func() { +var _ = SIGDescribe("Device Plugin [Feature:DevicePluginProbe][NodeFeature:DevicePluginProbe][Serial]", func() { f := framework.NewDefaultFramework("device-plugin-errors") testDevicePlugin(f, "/var/lib/kubelet/plugins_registry") }) diff --git a/test/e2e_node/docker_test.go b/test/e2e_node/docker_test.go index 5fdef6fbefb..08f77f6975b 100644 --- a/test/e2e_node/docker_test.go +++ b/test/e2e_node/docker_test.go @@ -32,7 +32,7 @@ import ( "github.com/onsi/gomega" ) -var _ = framework.KubeDescribe("Docker features [Feature:Docker][Legacy:Docker]", func() { +var _ = SIGDescribe("Docker features [Feature:Docker][Legacy:Docker]", func() { f := framework.NewDefaultFramework("docker-feature-test") ginkgo.BeforeEach(func() { diff --git a/test/e2e_node/dynamic_kubelet_config_test.go b/test/e2e_node/dynamic_kubelet_config_test.go index c89d8467c36..d72aa073177 100644 --- a/test/e2e_node/dynamic_kubelet_config_test.go +++ b/test/e2e_node/dynamic_kubelet_config_test.go @@ -70,7 +70,7 @@ type nodeConfigTestCase struct { } // This test is marked [Disruptive] because the Kubelet restarts several times during this test. -var _ = framework.KubeDescribe("[Feature:DynamicKubeletConfig][NodeFeature:DynamicKubeletConfig][Serial][Disruptive]", func() { +var _ = SIGDescribe("[Feature:DynamicKubeletConfig][NodeFeature:DynamicKubeletConfig][Serial][Disruptive]", func() { f := framework.NewDefaultFramework("dynamic-kubelet-configuration-test") var beforeNode *v1.Node var beforeConfigMap *v1.ConfigMap diff --git a/test/e2e_node/eviction_test.go b/test/e2e_node/eviction_test.go index 800d54e4c25..6d579130e7e 100644 --- a/test/e2e_node/eviction_test.go +++ b/test/e2e_node/eviction_test.go @@ -66,7 +66,7 @@ const ( // InodeEviction tests that the node responds to node disk pressure by evicting only responsible pods. // Node disk pressure is induced by consuming all inodes on the node. -var _ = framework.KubeDescribe("InodeEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("InodeEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("inode-eviction-test") expectedNodeCondition := v1.NodeDiskPressure expectedStarvedResource := resourceInodes @@ -102,7 +102,7 @@ var _ = framework.KubeDescribe("InodeEviction [Slow] [Serial] [Disruptive][NodeF // ImageGCNoEviction tests that the node does not evict pods when inodes are consumed by images // Disk pressure is induced by pulling large images -var _ = framework.KubeDescribe("ImageGCNoEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("ImageGCNoEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("image-gc-eviction-test") pressureTimeout := 10 * time.Minute expectedNodeCondition := v1.NodeDiskPressure @@ -132,7 +132,7 @@ var _ = framework.KubeDescribe("ImageGCNoEviction [Slow] [Serial] [Disruptive][N // MemoryAllocatableEviction tests that the node responds to node memory pressure by evicting only responsible pods. // Node memory pressure is only encountered because we reserve the majority of the node's capacity via kube-reserved. -var _ = framework.KubeDescribe("MemoryAllocatableEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("MemoryAllocatableEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("memory-allocatable-eviction-test") expectedNodeCondition := v1.NodeMemoryPressure expectedStarvedResource := v1.ResourceMemory @@ -165,7 +165,7 @@ var _ = framework.KubeDescribe("MemoryAllocatableEviction [Slow] [Serial] [Disru // LocalStorageEviction tests that the node responds to node disk pressure by evicting only responsible pods // Disk pressure is induced by running pods which consume disk space. -var _ = framework.KubeDescribe("LocalStorageEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("LocalStorageEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("localstorage-eviction-test") pressureTimeout := 10 * time.Minute expectedNodeCondition := v1.NodeDiskPressure @@ -194,7 +194,7 @@ var _ = framework.KubeDescribe("LocalStorageEviction [Slow] [Serial] [Disruptive // LocalStorageEviction tests that the node responds to node disk pressure by evicting only responsible pods // Disk pressure is induced by running pods which consume disk space, which exceed the soft eviction threshold. // Note: This test's purpose is to test Soft Evictions. Local storage was chosen since it is the least costly to run. -var _ = framework.KubeDescribe("LocalStorageSoftEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("LocalStorageSoftEviction [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("localstorage-eviction-test") pressureTimeout := 10 * time.Minute expectedNodeCondition := v1.NodeDiskPressure @@ -230,7 +230,7 @@ var _ = framework.KubeDescribe("LocalStorageSoftEviction [Slow] [Serial] [Disrup }) // LocalStorageCapacityIsolationEviction tests that container and volume local storage limits are enforced through evictions -var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolation][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("LocalStorageCapacityIsolationEviction [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolation][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("localstorage-eviction-test") evictionTestTimeout := 10 * time.Minute ginkgo.Context(fmt.Sprintf(testContextFmt, "evictions due to pod local storage violations"), func() { @@ -282,7 +282,7 @@ var _ = framework.KubeDescribe("LocalStorageCapacityIsolationEviction [Slow] [Se // PriorityMemoryEvictionOrdering tests that the node responds to node memory pressure by evicting pods. // This test tests that the guaranteed pod is never evicted, and that the lower-priority pod is evicted before // the higher priority pod. -var _ = framework.KubeDescribe("PriorityMemoryEvictionOrdering [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("PriorityMemoryEvictionOrdering [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("priority-memory-eviction-ordering-test") expectedNodeCondition := v1.NodeMemoryPressure expectedStarvedResource := v1.ResourceMemory @@ -339,7 +339,7 @@ var _ = framework.KubeDescribe("PriorityMemoryEvictionOrdering [Slow] [Serial] [ // PriorityLocalStorageEvictionOrdering tests that the node responds to node disk pressure by evicting pods. // This test tests that the guaranteed pod is never evicted, and that the lower-priority pod is evicted before // the higher priority pod. -var _ = framework.KubeDescribe("PriorityLocalStorageEvictionOrdering [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("PriorityLocalStorageEvictionOrdering [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("priority-disk-eviction-ordering-test") expectedNodeCondition := v1.NodeDiskPressure expectedStarvedResource := v1.ResourceEphemeralStorage @@ -395,7 +395,7 @@ var _ = framework.KubeDescribe("PriorityLocalStorageEvictionOrdering [Slow] [Ser }) // PriorityPidEvictionOrdering tests that the node emits pid pressure in response to a fork bomb, and evicts pods by priority -var _ = framework.KubeDescribe("PriorityPidEvictionOrdering [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { +var _ = SIGDescribe("PriorityPidEvictionOrdering [Slow] [Serial] [Disruptive][NodeFeature:Eviction]", func() { f := framework.NewDefaultFramework("pidpressure-eviction-test") pressureTimeout := 2 * time.Minute expectedNodeCondition := v1.NodePIDPressure diff --git a/test/e2e_node/garbage_collector_test.go b/test/e2e_node/garbage_collector_test.go index 0bc8baab2e1..ff371416631 100644 --- a/test/e2e_node/garbage_collector_test.go +++ b/test/e2e_node/garbage_collector_test.go @@ -70,7 +70,7 @@ type testRun struct { // GarbageCollect tests that the Kubelet conforms to the Kubelet Garbage Collection Policy, found here: // http://kubernetes.io/docs/admin/garbage-collection/ -var _ = framework.KubeDescribe("GarbageCollect [Serial][NodeFeature:GarbageCollect]", func() { +var _ = SIGDescribe("GarbageCollect [Serial][NodeFeature:GarbageCollect]", func() { f := framework.NewDefaultFramework("garbage-collect-test") containerNamePrefix := "gc-test-container-" podNamePrefix := "gc-test-pod-" diff --git a/test/e2e_node/gcp/BUILD b/test/e2e_node/gcp/BUILD new file mode 100644 index 00000000000..c8e8e95442f --- /dev/null +++ b/test/e2e_node/gcp/BUILD @@ -0,0 +1,36 @@ +load("@io_bazel_rules_go//go:def.bzl", "go_library", "go_test") + +go_library( + name = "go_default_library", + srcs = ["framework.go"], + importpath = "k8s.io/kubernetes/test/e2e_node/gcp", + visibility = ["//visibility:public"], + deps = ["//vendor/github.com/onsi/ginkgo:go_default_library"], +) + +filegroup( + name = "package-srcs", + srcs = glob(["**"]), + tags = ["automanaged"], + visibility = ["//visibility:private"], +) + +filegroup( + name = "all-srcs", + srcs = [":package-srcs"], + tags = ["automanaged"], + visibility = ["//visibility:public"], +) + +go_test( + name = "go_default_test", + srcs = ["gke_environment_test.go"], + embed = [":go_default_library"], + deps = [ + "//test/e2e/framework:go_default_library", + "//test/e2e/framework/skipper:go_default_library", + "//test/utils/image:go_default_library", + "//vendor/github.com/blang/semver:go_default_library", + "//vendor/github.com/onsi/ginkgo:go_default_library", + ], +) diff --git a/test/e2e_node/gcp/OWNERS b/test/e2e_node/gcp/OWNERS new file mode 100644 index 00000000000..830e24c5b36 --- /dev/null +++ b/test/e2e_node/gcp/OWNERS @@ -0,0 +1,4 @@ +# See the OWNERS docs at https://go.k8s.io/owners + +labels: +- sig/cloud-provider diff --git a/test/e2e_node/gcp/framework.go b/test/e2e_node/gcp/framework.go new file mode 100644 index 00000000000..8d1197f47eb --- /dev/null +++ b/test/e2e_node/gcp/framework.go @@ -0,0 +1,24 @@ +/* +Copyright 2021 The Kubernetes Authors. + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. +*/ + +package gcp + +import "github.com/onsi/ginkgo" + +// SIGDescribe annotates the test with the SIG label. +func SIGDescribe(text string, body func()) bool { + return ginkgo.Describe("[sig-cloud-provider-gcp] "+text, body) +} diff --git a/test/e2e_node/gke_environment_test.go b/test/e2e_node/gcp/gke_environment_test.go similarity index 96% rename from test/e2e_node/gke_environment_test.go rename to test/e2e_node/gcp/gke_environment_test.go index b601db42ca1..692f5db91f1 100644 --- a/test/e2e_node/gke_environment_test.go +++ b/test/e2e_node/gcp/gke_environment_test.go @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -package e2enode +package gcp import ( "bytes" @@ -320,7 +320,7 @@ func checkDockerStorageDriver() error { return fmt.Errorf("failed to find storage driver") } -var _ = framework.KubeDescribe("GKE system requirements [NodeConformance][Feature:GKEEnv][NodeFeature:GKEEnv]", func() { +var _ = SIGDescribe("GKE system requirements [NodeConformance][Feature:GKEEnv][NodeFeature:GKEEnv]", func() { ginkgo.BeforeEach(func() { e2eskipper.RunIfSystemSpecNameIs("gke") }) @@ -437,3 +437,13 @@ func getKernelVersion() (*semver.Version, error) { } return &kernelVersion, nil } + +// runCommand runs the cmd and returns the combined stdout and stderr, or an +// error if the command failed. +func runCommand(cmd ...string) (string, error) { + output, err := exec.Command(cmd[0], cmd[1:]...).CombinedOutput() + if err != nil { + return "", fmt.Errorf("failed to run %q: %s (%s)", strings.Join(cmd, " "), err, output) + } + return string(output), nil +} diff --git a/test/e2e_node/gpu_device_plugin_test.go b/test/e2e_node/gpu_device_plugin_test.go index 8bd7f2e769f..4d98df94657 100644 --- a/test/e2e_node/gpu_device_plugin_test.go +++ b/test/e2e_node/gpu_device_plugin_test.go @@ -65,7 +65,7 @@ func NVIDIADevicePlugin() *v1.Pod { } // Serial because the test restarts Kubelet -var _ = framework.KubeDescribe("NVIDIA GPU Device Plugin [Feature:GPUDevicePlugin][NodeFeature:GPUDevicePlugin][Serial] [Disruptive]", func() { +var _ = SIGDescribe("NVIDIA GPU Device Plugin [Feature:GPUDevicePlugin][NodeFeature:GPUDevicePlugin][Serial] [Disruptive]", func() { f := framework.NewDefaultFramework("device-plugin-gpus-errors") ginkgo.Context("DevicePlugin", func() { diff --git a/test/e2e_node/image_id_test.go b/test/e2e_node/image_id_test.go index e1392cf6e19..1d9102f51c0 100644 --- a/test/e2e_node/image_id_test.go +++ b/test/e2e_node/image_id_test.go @@ -28,7 +28,7 @@ import ( "github.com/onsi/gomega" ) -var _ = framework.KubeDescribe("ImageID [NodeFeature: ImageID]", func() { +var _ = SIGDescribe("ImageID [NodeFeature: ImageID]", func() { busyBoxImage := "k8s.gcr.io/busybox@sha256:4bdd623e848417d96127e16037743f0cd8b528c026e9175e22a84f639eca58ff" diff --git a/test/e2e_node/log_path_test.go b/test/e2e_node/log_path_test.go index 41646f326a5..9d7740a96a6 100644 --- a/test/e2e_node/log_path_test.go +++ b/test/e2e_node/log_path_test.go @@ -35,7 +35,7 @@ const ( logContainerName = "logger" ) -var _ = framework.KubeDescribe("ContainerLogPath [NodeConformance]", func() { +var _ = SIGDescribe("ContainerLogPath [NodeConformance]", func() { f := framework.NewDefaultFramework("kubelet-container-log-path") var podClient *framework.PodClient diff --git a/test/e2e_node/mirror_pod_grace_period_test.go b/test/e2e_node/mirror_pod_grace_period_test.go index 6dbd56d8a38..9e8a1c63205 100644 --- a/test/e2e_node/mirror_pod_grace_period_test.go +++ b/test/e2e_node/mirror_pod_grace_period_test.go @@ -30,7 +30,7 @@ import ( "k8s.io/kubernetes/test/e2e/framework" ) -var _ = framework.KubeDescribe("MirrorPodWithGracePeriod", func() { +var _ = SIGDescribe("MirrorPodWithGracePeriod", func() { f := framework.NewDefaultFramework("mirror-pod-with-grace-period") ginkgo.Context("when create a mirror pod ", func() { var ns, podPath, staticPodName, mirrorPodName string diff --git a/test/e2e_node/mirror_pod_test.go b/test/e2e_node/mirror_pod_test.go index c9e058723dc..7485eb6ca2a 100644 --- a/test/e2e_node/mirror_pod_test.go +++ b/test/e2e_node/mirror_pod_test.go @@ -40,7 +40,7 @@ import ( "github.com/onsi/gomega" ) -var _ = framework.KubeDescribe("MirrorPod", func() { +var _ = SIGDescribe("MirrorPod", func() { f := framework.NewDefaultFramework("mirror-pod") ginkgo.Context("when create a mirror pod ", func() { var ns, podPath, staticPodName, mirrorPodName string diff --git a/test/e2e_node/node_container_manager_test.go b/test/e2e_node/node_container_manager_test.go index d128cecaee6..6aa7acdc4b2 100644 --- a/test/e2e_node/node_container_manager_test.go +++ b/test/e2e_node/node_container_manager_test.go @@ -58,7 +58,7 @@ func setDesiredConfiguration(initialConfig *kubeletconfig.KubeletConfiguration) initialConfig.SystemReservedCgroup = systemReservedCgroup } -var _ = framework.KubeDescribe("Node Container Manager [Serial]", func() { +var _ = SIGDescribe("Node Container Manager [Serial]", func() { f := framework.NewDefaultFramework("node-container-manager") ginkgo.Describe("Validate Node Allocatable [NodeFeature:NodeAllocatable]", func() { ginkgo.It("sets up the node and runs the test", func() { diff --git a/test/e2e_node/node_problem_detector_linux.go b/test/e2e_node/node_problem_detector_linux.go index 7641f565734..fdf41f41c08 100644 --- a/test/e2e_node/node_problem_detector_linux.go +++ b/test/e2e_node/node_problem_detector_linux.go @@ -42,7 +42,7 @@ import ( testutils "k8s.io/kubernetes/test/utils" ) -var _ = framework.KubeDescribe("NodeProblemDetector [NodeFeature:NodeProblemDetector] [Serial]", func() { +var _ = SIGDescribe("NodeProblemDetector [NodeFeature:NodeProblemDetector] [Serial]", func() { const ( pollInterval = 1 * time.Second pollConsistent = 5 * time.Second @@ -68,7 +68,7 @@ var _ = framework.KubeDescribe("NodeProblemDetector [NodeFeature:NodeProblemDete }) // Test system log monitor. We may add other tests if we have more problem daemons in the future. - framework.KubeDescribe("SystemLogMonitor", func() { + ginkgo.Describe("SystemLogMonitor", func() { const ( // Use test condition to avoid changing the real node condition in use. // TODO(random-liu): Now node condition could be arbitrary string, consider whether we need to diff --git a/test/e2e_node/node_shutdown_linux_test.go b/test/e2e_node/node_shutdown_linux_test.go index aa9332d27ce..fb444fcf518 100644 --- a/test/e2e_node/node_shutdown_linux_test.go +++ b/test/e2e_node/node_shutdown_linux_test.go @@ -37,7 +37,7 @@ import ( "k8s.io/kubernetes/test/e2e/framework" ) -var _ = framework.KubeDescribe("GracefulNodeShutdown [Serial] [NodeAlphaFeature:GracefulNodeShutdown]", func() { +var _ = SIGDescribe("GracefulNodeShutdown [Serial] [NodeAlphaFeature:GracefulNodeShutdown]", func() { f := framework.NewDefaultFramework("graceful-node-shutdown") ginkgo.Context("when gracefully shutting down", func() { diff --git a/test/e2e_node/pods_container_manager_test.go b/test/e2e_node/pods_container_manager_test.go index e672c6566e7..bf194e65ce8 100644 --- a/test/e2e_node/pods_container_manager_test.go +++ b/test/e2e_node/pods_container_manager_test.go @@ -163,7 +163,7 @@ func makePodToVerifyCgroupRemoved(baseName string) *v1.Pod { return pod } -var _ = framework.KubeDescribe("Kubelet Cgroup Manager", func() { +var _ = SIGDescribe("Kubelet Cgroup Manager", func() { f := framework.NewDefaultFramework("kubelet-cgroup-manager") ginkgo.Describe("QOS containers", func() { ginkgo.Context("On enabling QOS cgroup hierarchy", func() { diff --git a/test/e2e_node/quota_lsci_test.go b/test/e2e_node/quota_lsci_test.go index b2b82b9b664..e26081b8633 100644 --- a/test/e2e_node/quota_lsci_test.go +++ b/test/e2e_node/quota_lsci_test.go @@ -90,7 +90,7 @@ func runOneQuotaTest(f *framework.Framework, quotasRequested bool) { // pod that creates a file, deletes it, and writes data to it. If // quotas are used to monitor, it will detect this deleted-but-in-use // file; if du is used to monitor, it will not detect this. -var _ = framework.KubeDescribe("LocalStorageCapacityIsolationQuotaMonitoring [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolationQuota][NodeFeature:LSCIQuotaMonitoring]", func() { +var _ = SIGDescribe("LocalStorageCapacityIsolationQuotaMonitoring [Slow] [Serial] [Disruptive] [Feature:LocalStorageCapacityIsolationQuota][NodeFeature:LSCIQuotaMonitoring]", func() { f := framework.NewDefaultFramework("localstorage-quota-monitoring-test") runOneQuotaTest(f, true) runOneQuotaTest(f, false) diff --git a/test/e2e_node/resource_metrics_test.go b/test/e2e_node/resource_metrics_test.go index 9f6585074cf..f07c0ab3cc0 100644 --- a/test/e2e_node/resource_metrics_test.go +++ b/test/e2e_node/resource_metrics_test.go @@ -40,7 +40,7 @@ const ( maxStatsAge = time.Minute ) -var _ = framework.KubeDescribe("ResourceMetricsAPI [NodeFeature:ResourceMetrics]", func() { +var _ = SIGDescribe("ResourceMetricsAPI [NodeFeature:ResourceMetrics]", func() { f := framework.NewDefaultFramework("resource-metrics") ginkgo.Context("when querying /resource/metrics", func() { ginkgo.BeforeEach(func() { diff --git a/test/e2e_node/restart_test.go b/test/e2e_node/restart_test.go index d3920fb6018..e7e827075ee 100644 --- a/test/e2e_node/restart_test.go +++ b/test/e2e_node/restart_test.go @@ -59,7 +59,7 @@ func waitForPods(f *framework.Framework, podCount int, timeout time.Duration) (r return runningPods } -var _ = framework.KubeDescribe("Restart [Serial] [Slow] [Disruptive] [NodeFeature:ContainerRuntimeRestart]", func() { +var _ = SIGDescribe("Restart [Serial] [Slow] [Disruptive] [NodeFeature:ContainerRuntimeRestart]", func() { const ( // Saturate the node. It's not necessary that all these pods enter // Running/Ready, because we don't know the number of cores in the diff --git a/test/e2e_node/runtime_conformance_test.go b/test/e2e_node/runtime_conformance_test.go index 5f72e386334..48255b92417 100644 --- a/test/e2e_node/runtime_conformance_test.go +++ b/test/e2e_node/runtime_conformance_test.go @@ -32,7 +32,7 @@ import ( "github.com/onsi/ginkgo" ) -var _ = framework.KubeDescribe("Container Runtime Conformance Test", func() { +var _ = SIGDescribe("Container Runtime Conformance Test", func() { f := framework.NewDefaultFramework("runtime-conformance") ginkgo.Describe("container runtime conformance blackbox test", func() { diff --git a/test/e2e_node/runtimeclass_test.go b/test/e2e_node/runtimeclass_test.go index 26c5b7120ae..83be28051c3 100644 --- a/test/e2e_node/runtimeclass_test.go +++ b/test/e2e_node/runtimeclass_test.go @@ -89,7 +89,7 @@ func makePodToVerifyCgroupSize(cgroupNames []string, expectedCPU string, expecte return pod } -var _ = framework.KubeDescribe("Kubelet PodOverhead handling [LinuxOnly]", func() { +var _ = SIGDescribe("Kubelet PodOverhead handling [LinuxOnly]", func() { f := framework.NewDefaultFramework("podoverhead-handling") ginkgo.Describe("PodOverhead cgroup accounting", func() { ginkgo.Context("On running pod with PodOverhead defined", func() { diff --git a/test/e2e_node/security_context_test.go b/test/e2e_node/security_context_test.go index ad531de8856..5e358f3e5b6 100644 --- a/test/e2e_node/security_context_test.go +++ b/test/e2e_node/security_context_test.go @@ -34,7 +34,7 @@ import ( "github.com/onsi/ginkgo" ) -var _ = framework.KubeDescribe("Security Context", func() { +var _ = SIGDescribe("Security Context", func() { f := framework.NewDefaultFramework("security-context-test") var podClient *framework.PodClient ginkgo.BeforeEach(func() { diff --git a/test/e2e_node/summary_test.go b/test/e2e_node/summary_test.go index 16ca3d99c51..c592be5debe 100644 --- a/test/e2e_node/summary_test.go +++ b/test/e2e_node/summary_test.go @@ -38,7 +38,7 @@ import ( "github.com/onsi/gomega/types" ) -var _ = framework.KubeDescribe("Summary API [NodeConformance]", func() { +var _ = SIGDescribe("Summary API [NodeConformance]", func() { f := framework.NewDefaultFramework("summary-test") ginkgo.Context("when querying /stats/summary", func() { ginkgo.AfterEach(func() { diff --git a/test/e2e_node/system_node_critical_test.go b/test/e2e_node/system_node_critical_test.go index a25fe416232..0c5b21e5d74 100644 --- a/test/e2e_node/system_node_critical_test.go +++ b/test/e2e_node/system_node_critical_test.go @@ -33,7 +33,7 @@ import ( "github.com/onsi/gomega" ) -var _ = framework.KubeDescribe("SystemNodeCriticalPod [Slow] [Serial] [Disruptive] [NodeFeature:SystemNodeCriticalPod]", func() { +var _ = SIGDescribe("SystemNodeCriticalPod [Slow] [Serial] [Disruptive] [NodeFeature:SystemNodeCriticalPod]", func() { f := framework.NewDefaultFramework("system-node-critical-pod-test") // this test only manipulates pods in kube-system f.SkipNamespaceCreation = true diff --git a/test/e2e_node/volume_manager_test.go b/test/e2e_node/volume_manager_test.go index b068d943d29..c067e32abf3 100644 --- a/test/e2e_node/volume_manager_test.go +++ b/test/e2e_node/volume_manager_test.go @@ -31,7 +31,7 @@ import ( "github.com/onsi/ginkgo" ) -var _ = framework.KubeDescribe("Kubelet Volume Manager", func() { +var _ = SIGDescribe("Kubelet Volume Manager", func() { f := framework.NewDefaultFramework("kubelet-volume-manager") ginkgo.Describe("Volume Manager", func() { ginkgo.Context("On terminatation of pod with memory backed volume", func() {