mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 21:47:07 +00:00
add [sig-apps] prefix to workload e2e tests
This commit is contained in:
parent
b31d1db4f4
commit
0c93f75629
@ -98,7 +98,7 @@ func newPodOnNode(c clientset.Interface, namespace, podName, nodeName string) er
|
|||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("Network Partition [Disruptive] [Slow]", func() {
|
var _ = framework.KubeDescribe("[sig-apps] Network Partition [Disruptive] [Slow]", func() {
|
||||||
f := framework.NewDefaultFramework("network-partition")
|
f := framework.NewDefaultFramework("network-partition")
|
||||||
var systemPodsNo int32
|
var systemPodsNo int32
|
||||||
var c clientset.Interface
|
var c clientset.Interface
|
||||||
|
@ -15,6 +15,7 @@ go_library(
|
|||||||
"daemon_set.go",
|
"daemon_set.go",
|
||||||
"deployment.go",
|
"deployment.go",
|
||||||
"disruption.go",
|
"disruption.go",
|
||||||
|
"framework.go",
|
||||||
"job.go",
|
"job.go",
|
||||||
"rc.go",
|
"rc.go",
|
||||||
"replica_set.go",
|
"replica_set.go",
|
||||||
|
@ -42,7 +42,7 @@ const (
|
|||||||
cronJobTimeout = 5 * time.Minute
|
cronJobTimeout = 5 * time.Minute
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("CronJob", func() {
|
var _ = SIGDescribe("CronJob", func() {
|
||||||
f := framework.NewDefaultFramework("cronjob")
|
f := framework.NewDefaultFramework("cronjob")
|
||||||
|
|
||||||
sleepCommand := []string{"sleep", "300"}
|
sleepCommand := []string{"sleep", "300"}
|
||||||
|
@ -177,7 +177,7 @@ func getContainerRestarts(c clientset.Interface, ns string, labelSelector labels
|
|||||||
return failedContainers, containerRestartNodes.List()
|
return failedContainers, containerRestartNodes.List()
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("DaemonRestart [Disruptive]", func() {
|
var _ = SIGDescribe("DaemonRestart [Disruptive]", func() {
|
||||||
|
|
||||||
f := framework.NewDefaultFramework("daemonrestart")
|
f := framework.NewDefaultFramework("daemonrestart")
|
||||||
rcName := "daemonrestart" + strconv.Itoa(numPods) + "-" + string(uuid.NewUUID())
|
rcName := "daemonrestart" + strconv.Itoa(numPods) + "-" + string(uuid.NewUUID())
|
||||||
|
@ -62,7 +62,7 @@ const (
|
|||||||
// happen. In the future, running in parallel may work if we have an eviction
|
// happen. In the future, running in parallel may work if we have an eviction
|
||||||
// model which lets the DS controller kick out other pods to make room.
|
// model which lets the DS controller kick out other pods to make room.
|
||||||
// See http://issues.k8s.io/21767 for more details
|
// See http://issues.k8s.io/21767 for more details
|
||||||
var _ = framework.KubeDescribe("Daemon set [Serial]", func() {
|
var _ = SIGDescribe("Daemon set [Serial]", func() {
|
||||||
var f *framework.Framework
|
var f *framework.Framework
|
||||||
|
|
||||||
AfterEach(func() {
|
AfterEach(func() {
|
||||||
|
@ -55,7 +55,7 @@ var (
|
|||||||
nilRs *extensions.ReplicaSet
|
nilRs *extensions.ReplicaSet
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("Deployment", func() {
|
var _ = SIGDescribe("Deployment", func() {
|
||||||
var ns string
|
var ns string
|
||||||
var c clientset.Interface
|
var c clientset.Interface
|
||||||
|
|
||||||
|
@ -41,7 +41,7 @@ const (
|
|||||||
timeout = 60 * time.Second
|
timeout = 60 * time.Second
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("DisruptionController", func() {
|
var _ = SIGDescribe("DisruptionController", func() {
|
||||||
f := framework.NewDefaultFramework("disruption")
|
f := framework.NewDefaultFramework("disruption")
|
||||||
var ns string
|
var ns string
|
||||||
var cs *kubernetes.Clientset
|
var cs *kubernetes.Clientset
|
||||||
|
23
test/e2e/workload/framework.go
Normal file
23
test/e2e/workload/framework.go
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
/*
|
||||||
|
Copyright 2017 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 workload
|
||||||
|
|
||||||
|
import "github.com/onsi/ginkgo"
|
||||||
|
|
||||||
|
func SIGDescribe(text string, body func()) bool {
|
||||||
|
return ginkgo.Describe("[sig-apps] "+text, body)
|
||||||
|
}
|
@ -32,7 +32,7 @@ import (
|
|||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("Job", func() {
|
var _ = SIGDescribe("Job", func() {
|
||||||
f := framework.NewDefaultFramework("job")
|
f := framework.NewDefaultFramework("job")
|
||||||
parallelism := int32(2)
|
parallelism := int32(2)
|
||||||
completions := int32(4)
|
completions := int32(4)
|
||||||
|
@ -34,7 +34,7 @@ import (
|
|||||||
. "github.com/onsi/gomega"
|
. "github.com/onsi/gomega"
|
||||||
)
|
)
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("ReplicationController", func() {
|
var _ = SIGDescribe("ReplicationController", func() {
|
||||||
f := framework.NewDefaultFramework("replication-controller")
|
f := framework.NewDefaultFramework("replication-controller")
|
||||||
|
|
||||||
It("should serve a basic image on each replica with a public image [Conformance]", func() {
|
It("should serve a basic image on each replica with a public image [Conformance]", func() {
|
||||||
|
@ -74,7 +74,7 @@ func newPodQuota(name, number string) *v1.ResourceQuota {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var _ = framework.KubeDescribe("ReplicaSet", func() {
|
var _ = SIGDescribe("ReplicaSet", func() {
|
||||||
f := framework.NewDefaultFramework("replicaset")
|
f := framework.NewDefaultFramework("replicaset")
|
||||||
|
|
||||||
It("should serve a basic image on each replica with a public image [Conformance]", func() {
|
It("should serve a basic image on each replica with a public image [Conformance]", func() {
|
||||||
|
@ -50,7 +50,7 @@ const (
|
|||||||
|
|
||||||
// GCE Quota requirements: 3 pds, one per stateful pod manifest declared above.
|
// GCE Quota requirements: 3 pds, one per stateful pod manifest declared above.
|
||||||
// GCE Api requirements: nodes and master need storage r/w permissions.
|
// GCE Api requirements: nodes and master need storage r/w permissions.
|
||||||
var _ = framework.KubeDescribe("StatefulSet", func() {
|
var _ = SIGDescribe("StatefulSet", func() {
|
||||||
f := framework.NewDefaultFramework("statefulset")
|
f := framework.NewDefaultFramework("statefulset")
|
||||||
var ns string
|
var ns string
|
||||||
var c clientset.Interface
|
var c clientset.Interface
|
||||||
|
Loading…
Reference in New Issue
Block a user