@@ -41,6 +41,7 @@ import (
41
41
e2enode "k8s.io/kubernetes/test/e2e/framework/node"
42
42
e2epod "k8s.io/kubernetes/test/e2e/framework/pod"
43
43
e2eservice "k8s.io/kubernetes/test/e2e/framework/service"
44
+ e2eskipper "k8s.io/kubernetes/test/e2e/framework/skipper"
44
45
e2esset "k8s.io/kubernetes/test/e2e/framework/statefulset"
45
46
testutils "k8s.io/kubernetes/test/utils"
46
47
@@ -120,7 +121,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
120
121
framework .ExpectNoError (err )
121
122
122
123
// TODO(foxish): Re-enable testing on gce after kubernetes#56787 is fixed.
123
- framework .SkipUnlessProviderIs ("gke" , "aws" )
124
+ e2eskipper .SkipUnlessProviderIs ("gke" , "aws" )
124
125
if strings .Index (framework .TestContext .CloudConfig .NodeInstanceGroup , "," ) >= 0 {
125
126
framework .Failf ("Test dose not support cluster setup with more than one MIG: %s" , framework .TestContext .CloudConfig .NodeInstanceGroup )
126
127
}
@@ -129,8 +130,8 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
129
130
framework .KubeDescribe ("Pods" , func () {
130
131
ginkgo .Context ("should return to running and ready state after network partition is healed" , func () {
131
132
ginkgo .BeforeEach (func () {
132
- framework .SkipUnlessNodeCountIsAtLeast (2 )
133
- framework .SkipUnlessSSHKeyPresent ()
133
+ e2eskipper .SkipUnlessNodeCountIsAtLeast (2 )
134
+ e2eskipper .SkipUnlessSSHKeyPresent ()
134
135
})
135
136
136
137
// What happens in this test:
@@ -239,7 +240,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
239
240
framework .KubeDescribe ("[ReplicationController]" , func () {
240
241
ginkgo .It ("should recreate pods scheduled on the unreachable node " +
241
242
"AND allow scheduling of pods on a node after it rejoins the cluster" , func () {
242
- framework .SkipUnlessSSHKeyPresent ()
243
+ e2eskipper .SkipUnlessSSHKeyPresent ()
243
244
244
245
// Create a replication controller for a service that serves its hostname.
245
246
// The source for the Docker container kubernetes/serve_hostname is in contrib/for-demos/serve_hostname
@@ -306,7 +307,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
306
307
})
307
308
308
309
ginkgo .It ("should eagerly create replacement pod during network partition when termination grace is non-zero" , func () {
309
- framework .SkipUnlessSSHKeyPresent ()
310
+ e2eskipper .SkipUnlessSSHKeyPresent ()
310
311
311
312
// Create a replication controller for a service that serves its hostname.
312
313
// The source for the Docker container kubernetes/serve_hostname is in contrib/for-demos/serve_hostname
@@ -363,7 +364,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
363
364
364
365
ginkgo .BeforeEach (func () {
365
366
// TODO(foxish): Re-enable testing on gce after kubernetes#56787 is fixed.
366
- framework .SkipUnlessProviderIs ("gke" )
367
+ e2eskipper .SkipUnlessProviderIs ("gke" )
367
368
ginkgo .By ("creating service " + headlessSvcName + " in namespace " + f .Namespace .Name )
368
369
headlessService := e2eservice .CreateServiceSpec (headlessSvcName , "" , true , labels )
369
370
_ , err := f .ClientSet .CoreV1 ().Services (f .Namespace .Name ).Create (headlessService )
@@ -398,7 +399,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
398
399
})
399
400
400
401
ginkgo .It ("should not reschedule stateful pods if there is a network partition [Slow] [Disruptive]" , func () {
401
- framework .SkipUnlessSSHKeyPresent ()
402
+ e2eskipper .SkipUnlessSSHKeyPresent ()
402
403
403
404
ps := e2esset .NewStatefulSet (psName , ns , headlessSvcName , 3 , []v1.VolumeMount {}, []v1.VolumeMount {}, labels )
404
405
_ , err := c .AppsV1 ().StatefulSets (ns ).Create (ps )
@@ -431,7 +432,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
431
432
432
433
framework .KubeDescribe ("[Job]" , func () {
433
434
ginkgo .It ("should create new pods when node is partitioned" , func () {
434
- framework .SkipUnlessSSHKeyPresent ()
435
+ e2eskipper .SkipUnlessSSHKeyPresent ()
435
436
436
437
parallelism := int32 (2 )
437
438
completions := int32 (4 )
@@ -479,7 +480,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
479
480
framework .KubeDescribe ("Pods" , func () {
480
481
ginkgo .Context ("should be evicted from unready Node" , func () {
481
482
ginkgo .BeforeEach (func () {
482
- framework .SkipUnlessNodeCountIsAtLeast (2 )
483
+ e2eskipper .SkipUnlessNodeCountIsAtLeast (2 )
483
484
})
484
485
485
486
// What happens in this test:
@@ -490,7 +491,7 @@ var _ = SIGDescribe("Network Partition [Disruptive] [Slow]", func() {
490
491
// 3. After enough time passess all Pods are evicted from the given Node
491
492
ginkgo .It ("[Feature:TaintEviction] All pods on the unreachable node should be marked as NotReady upon the node turn NotReady " +
492
493
"AND all pods should be evicted after eviction timeout passes" , func () {
493
- framework .SkipUnlessSSHKeyPresent ()
494
+ e2eskipper .SkipUnlessSSHKeyPresent ()
494
495
ginkgo .By ("choose a node - we will block all network traffic on this node" )
495
496
var podOpts metav1.ListOptions
496
497
nodes , err := e2enode .GetReadySchedulableNodes (c )
0 commit comments