mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 06:27:05 +00:00
Empty test starts a single Pod
This commit is contained in:
parent
5802799e56
commit
bcedf60db6
@ -19,6 +19,8 @@ package e2e
|
||||
import (
|
||||
"time"
|
||||
|
||||
"k8s.io/kubernetes/pkg/api"
|
||||
"k8s.io/kubernetes/pkg/api/v1"
|
||||
"k8s.io/kubernetes/test/e2e/framework"
|
||||
|
||||
. "github.com/onsi/ginkgo"
|
||||
@ -39,5 +41,13 @@ var _ = framework.KubeDescribe("Empty [Feature:Empty]", func() {
|
||||
framework.ExpectNoError(err)
|
||||
})
|
||||
|
||||
It("does nothing", func() {})
|
||||
It("starts a pod", func() {
|
||||
configs, _ := generateConfigsForGroup([]*v1.Namespace{f.Namespace}, "empty-pod", 1, 1, framework.GetPauseImageName(f.ClientSet), []string{}, api.Kind("ReplicationController"), 0)
|
||||
if len(configs) != 1 {
|
||||
framework.Failf("generateConfigs should have generated single config")
|
||||
}
|
||||
config := configs[0]
|
||||
config.SetClient(f.ClientSet)
|
||||
framework.ExpectNoError(config.Run())
|
||||
})
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user