Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
0c93f756
Commit
0c93f756
authored
Jul 12, 2017
by
Jun Xiang Tee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add [sig-apps] prefix to workload e2e tests
parent
b31d1db4
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
34 additions
and
10 deletions
+34
-10
network_partition.go
test/e2e/network_partition.go
+1
-1
BUILD
test/e2e/workload/BUILD
+1
-0
cronjob.go
test/e2e/workload/cronjob.go
+1
-1
daemon_restart.go
test/e2e/workload/daemon_restart.go
+1
-1
daemon_set.go
test/e2e/workload/daemon_set.go
+1
-1
deployment.go
test/e2e/workload/deployment.go
+1
-1
disruption.go
test/e2e/workload/disruption.go
+1
-1
framework.go
test/e2e/workload/framework.go
+23
-0
job.go
test/e2e/workload/job.go
+1
-1
rc.go
test/e2e/workload/rc.go
+1
-1
replica_set.go
test/e2e/workload/replica_set.go
+1
-1
statefulset.go
test/e2e/workload/statefulset.go
+1
-1
No files found.
test/e2e/network_partition.go
View file @
0c93f756
...
@@ -98,7 +98,7 @@ func newPodOnNode(c clientset.Interface, namespace, podName, nodeName string) er
...
@@ -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
...
...
test/e2e/workload/BUILD
View file @
0c93f756
...
@@ -15,6 +15,7 @@ go_library(
...
@@ -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",
...
...
test/e2e/workload/cronjob.go
View file @
0c93f756
...
@@ -42,7 +42,7 @@ const (
...
@@ -42,7 +42,7 @@ const (
cronJobTimeout
=
5
*
time
.
Minute
cronJobTimeout
=
5
*
time
.
Minute
)
)
var
_
=
framework
.
Kube
Describe
(
"CronJob"
,
func
()
{
var
_
=
SIG
Describe
(
"CronJob"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"cronjob"
)
f
:=
framework
.
NewDefaultFramework
(
"cronjob"
)
sleepCommand
:=
[]
string
{
"sleep"
,
"300"
}
sleepCommand
:=
[]
string
{
"sleep"
,
"300"
}
...
...
test/e2e/workload/daemon_restart.go
View file @
0c93f756
...
@@ -177,7 +177,7 @@ func getContainerRestarts(c clientset.Interface, ns string, labelSelector labels
...
@@ -177,7 +177,7 @@ func getContainerRestarts(c clientset.Interface, ns string, labelSelector labels
return
failedContainers
,
containerRestartNodes
.
List
()
return
failedContainers
,
containerRestartNodes
.
List
()
}
}
var
_
=
framework
.
Kube
Describe
(
"DaemonRestart [Disruptive]"
,
func
()
{
var
_
=
SIG
Describe
(
"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
())
...
...
test/e2e/workload/daemon_set.go
View file @
0c93f756
...
@@ -62,7 +62,7 @@ const (
...
@@ -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
.
Kube
Describe
(
"Daemon set [Serial]"
,
func
()
{
var
_
=
SIG
Describe
(
"Daemon set [Serial]"
,
func
()
{
var
f
*
framework
.
Framework
var
f
*
framework
.
Framework
AfterEach
(
func
()
{
AfterEach
(
func
()
{
...
...
test/e2e/workload/deployment.go
View file @
0c93f756
...
@@ -55,7 +55,7 @@ var (
...
@@ -55,7 +55,7 @@ var (
nilRs
*
extensions
.
ReplicaSet
nilRs
*
extensions
.
ReplicaSet
)
)
var
_
=
framework
.
Kube
Describe
(
"Deployment"
,
func
()
{
var
_
=
SIG
Describe
(
"Deployment"
,
func
()
{
var
ns
string
var
ns
string
var
c
clientset
.
Interface
var
c
clientset
.
Interface
...
...
test/e2e/workload/disruption.go
View file @
0c93f756
...
@@ -41,7 +41,7 @@ const (
...
@@ -41,7 +41,7 @@ const (
timeout
=
60
*
time
.
Second
timeout
=
60
*
time
.
Second
)
)
var
_
=
framework
.
Kube
Describe
(
"DisruptionController"
,
func
()
{
var
_
=
SIG
Describe
(
"DisruptionController"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"disruption"
)
f
:=
framework
.
NewDefaultFramework
(
"disruption"
)
var
ns
string
var
ns
string
var
cs
*
kubernetes
.
Clientset
var
cs
*
kubernetes
.
Clientset
...
...
test/e2e/workload/framework.go
0 → 100644
View file @
0c93f756
/*
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
)
}
test/e2e/workload/job.go
View file @
0c93f756
...
@@ -32,7 +32,7 @@ import (
...
@@ -32,7 +32,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
framework
.
Kube
Describe
(
"Job"
,
func
()
{
var
_
=
SIG
Describe
(
"Job"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"job"
)
f
:=
framework
.
NewDefaultFramework
(
"job"
)
parallelism
:=
int32
(
2
)
parallelism
:=
int32
(
2
)
completions
:=
int32
(
4
)
completions
:=
int32
(
4
)
...
...
test/e2e/workload/rc.go
View file @
0c93f756
...
@@ -34,7 +34,7 @@ import (
...
@@ -34,7 +34,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
framework
.
Kube
Describe
(
"ReplicationController"
,
func
()
{
var
_
=
SIG
Describe
(
"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
()
{
...
...
test/e2e/workload/replica_set.go
View file @
0c93f756
...
@@ -74,7 +74,7 @@ func newPodQuota(name, number string) *v1.ResourceQuota {
...
@@ -74,7 +74,7 @@ func newPodQuota(name, number string) *v1.ResourceQuota {
}
}
}
}
var
_
=
framework
.
Kube
Describe
(
"ReplicaSet"
,
func
()
{
var
_
=
SIG
Describe
(
"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
()
{
...
...
test/e2e/workload/statefulset.go
View file @
0c93f756
...
@@ -50,7 +50,7 @@ const (
...
@@ -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
.
Kube
Describe
(
"StatefulSet"
,
func
()
{
var
_
=
SIG
Describe
(
"StatefulSet"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"statefulset"
)
f
:=
framework
.
NewDefaultFramework
(
"statefulset"
)
var
ns
string
var
ns
string
var
c
clientset
.
Interface
var
c
clientset
.
Interface
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment