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
9a71dfe7
Commit
9a71dfe7
authored
Mar 11, 2016
by
Jay Vyas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
KubeDescribe implementation with verify into after-build/ scripts.
parent
a1fcccd8
Show whitespace changes
Inline
Side-by-side
Showing
72 changed files
with
160 additions
and
121 deletions
+160
-121
verify-e2e.sh
hack/after-build/verify-e2e.sh
+35
-0
addon_update.go
test/e2e/addon_update.go
+1
-1
batch_v1_jobs.go
test/e2e/batch_v1_jobs.go
+1
-1
cadvisor.go
test/e2e/cadvisor.go
+1
-1
cluster_size_autoscaling.go
test/e2e/cluster_size_autoscaling.go
+1
-1
cluster_upgrade.go
test/e2e/cluster_upgrade.go
+3
-3
configmap.go
test/e2e/configmap.go
+1
-1
container_probe.go
test/e2e/container_probe.go
+1
-1
daemon_restart.go
test/e2e/daemon_restart.go
+1
-1
daemon_set.go
test/e2e/daemon_set.go
+1
-1
dashboard.go
test/e2e/dashboard.go
+1
-1
density.go
test/e2e/density.go
+1
-1
deployment.go
test/e2e/deployment.go
+1
-1
dns.go
test/e2e/dns.go
+1
-1
docker_containers.go
test/e2e/docker_containers.go
+1
-1
downward_api.go
test/e2e/downward_api.go
+1
-1
downwardapi_volume.go
test/e2e/downwardapi_volume.go
+1
-1
empty_dir.go
test/e2e/empty_dir.go
+1
-1
empty_dir_wrapper.go
test/e2e/empty_dir_wrapper.go
+1
-1
es_cluster_logging.go
test/e2e/es_cluster_logging.go
+1
-1
etcd_failure.go
test/e2e/etcd_failure.go
+1
-1
events.go
test/e2e/events.go
+1
-1
example_cluster_dns.go
test/e2e/example_cluster_dns.go
+1
-1
example_k8petstore.go
test/e2e/example_k8petstore.go
+1
-1
examples.go
test/e2e/examples.go
+11
-11
expansion.go
test/e2e/expansion.go
+1
-1
framework.go
test/e2e/framework.go
+6
-0
garbage_collector.go
test/e2e/garbage_collector.go
+1
-1
generated_clientset.go
test/e2e/generated_clientset.go
+1
-1
horizontal_pod_autoscaling.go
test/e2e/horizontal_pod_autoscaling.go
+5
-7
host_path.go
test/e2e/host_path.go
+1
-1
ingress.go
test/e2e/ingress.go
+1
-1
initial_resources.go
test/e2e/initial_resources.go
+1
-1
job.go
test/e2e/job.go
+1
-1
kibana_logging.go
test/e2e/kibana_logging.go
+1
-1
kubectl.go
test/e2e/kubectl.go
+19
-19
kubelet.go
test/e2e/kubelet.go
+2
-2
kubelet_etc_hosts.go
test/e2e/kubelet_etc_hosts.go
+1
-1
kubelet_perf.go
test/e2e/kubelet_perf.go
+3
-3
kubeproxy.go
test/e2e/kubeproxy.go
+1
-1
limit_range.go
test/e2e/limit_range.go
+1
-1
load.go
test/e2e/load.go
+1
-1
mesos.go
test/e2e/mesos.go
+1
-1
metrics_grabber_test.go
test/e2e/metrics_grabber_test.go
+1
-1
monitoring.go
test/e2e/monitoring.go
+1
-1
namespace.go
test/e2e/namespace.go
+1
-1
networking.go
test/e2e/networking.go
+2
-2
nodeoutofdisk.go
test/e2e/nodeoutofdisk.go
+1
-1
pd.go
test/e2e/pd.go
+1
-1
persistent_volumes.go
test/e2e/persistent_volumes.go
+1
-1
pods.go
test/e2e/pods.go
+1
-1
portforward.go
test/e2e/portforward.go
+3
-3
pre_stop.go
test/e2e/pre_stop.go
+1
-1
privileged.go
test/e2e/privileged.go
+1
-1
proxy.go
test/e2e/proxy.go
+1
-1
rc.go
test/e2e/rc.go
+1
-1
reboot.go
test/e2e/reboot.go
+1
-1
replica_set.go
test/e2e/replica_set.go
+1
-1
resize_nodes.go
test/e2e/resize_nodes.go
+3
-3
resource_quota.go
test/e2e/resource_quota.go
+1
-1
restart.go
test/e2e/restart.go
+1
-1
scheduler_predicates.go
test/e2e/scheduler_predicates.go
+1
-1
secrets.go
test/e2e/secrets.go
+1
-1
security_context.go
test/e2e/security_context.go
+1
-1
service.go
test/e2e/service.go
+1
-1
service_accounts.go
test/e2e/service_accounts.go
+1
-1
service_latency.go
test/e2e/service_latency.go
+1
-1
serviceloadbalancers.go
test/e2e/serviceloadbalancers.go
+1
-1
ssh.go
test/e2e/ssh.go
+1
-1
ubernetes_lite.go
test/e2e/ubernetes_lite.go
+1
-1
volume_provisioning.go
test/e2e/volume_provisioning.go
+2
-2
volumes.go
test/e2e/volumes.go
+7
-7
No files found.
hack/after-build/verify-e2e.sh
0 → 100755
View file @
9a71dfe7
#!/bin/bash
# Copyright 2016 The Kubernetes Authors All rights reserved.
#
# 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.
# Verify that E2E's use Describe wrappers, so that we can auto tag and provide
# other wrapper functionality for the entire suite.
set
-o
errexit
set
-o
nounset
set
-o
pipefail
KUBE_ROOT
=
$(
dirname
"
${
BASH_SOURCE
}
"
)
/../..
cd
"
${
KUBE_ROOT
}
"
findDescViolations
()
{
find ./test/e2e/
-name
'*.go'
| xargs
cat
|
grep
"
\s
Describe("
}
# There should be only one call to describe.
if
[
$(
findDescViolations |
wc
-l
)
!=
1
]
;
then
echo
"The following lines use Describe instead of KubeDescribe."
echo
"Describe() is a reserved term which only should called via the KubeDescribe wrapper function."
findDescViolations
fi
test/e2e/addon_update.go
View file @
9a71dfe7
...
@@ -188,7 +188,7 @@ type stringPair struct {
...
@@ -188,7 +188,7 @@ type stringPair struct {
data
,
fileName
string
data
,
fileName
string
}
}
var
_
=
Describe
(
"Addon update"
,
func
()
{
var
_
=
Kube
Describe
(
"Addon update"
,
func
()
{
var
dir
string
var
dir
string
var
sshClient
*
ssh
.
Client
var
sshClient
*
ssh
.
Client
...
...
test/e2e/batch_v1_jobs.go
View file @
9a71dfe7
...
@@ -43,7 +43,7 @@ const (
...
@@ -43,7 +43,7 @@ const (
v1JobSelectorKey
=
"job-name"
v1JobSelectorKey
=
"job-name"
)
)
var
_
=
Describe
(
"V1Job"
,
func
()
{
var
_
=
Kube
Describe
(
"V1Job"
,
func
()
{
f
:=
NewDefaultFramework
(
"v1job"
)
f
:=
NewDefaultFramework
(
"v1job"
)
parallelism
:=
2
parallelism
:=
2
completions
:=
4
completions
:=
4
...
...
test/e2e/cadvisor.go
View file @
9a71dfe7
...
@@ -31,7 +31,7 @@ const (
...
@@ -31,7 +31,7 @@ const (
sleepDuration
=
10
*
time
.
Second
sleepDuration
=
10
*
time
.
Second
)
)
var
_
=
Describe
(
"Cadvisor"
,
func
()
{
var
_
=
Kube
Describe
(
"Cadvisor"
,
func
()
{
f
:=
NewDefaultFramework
(
"cadvisor"
)
f
:=
NewDefaultFramework
(
"cadvisor"
)
...
...
test/e2e/cluster_size_autoscaling.go
View file @
9a71dfe7
...
@@ -37,7 +37,7 @@ const (
...
@@ -37,7 +37,7 @@ const (
// run by default.
// run by default.
//
//
// These tests take ~20 minutes to run each.
// These tests take ~20 minutes to run each.
var
_
=
Describe
(
"Cluster size autoscaling [Feature:ClusterSizeAutoscaling] [Slow]"
,
func
()
{
var
_
=
Kube
Describe
(
"Cluster size autoscaling [Feature:ClusterSizeAutoscaling] [Slow]"
,
func
()
{
f
:=
NewDefaultFramework
(
"autoscaling"
)
f
:=
NewDefaultFramework
(
"autoscaling"
)
var
nodeCount
int
var
nodeCount
int
var
coresPerNode
int
var
coresPerNode
int
...
...
test/e2e/cluster_upgrade.go
View file @
9a71dfe7
...
@@ -137,7 +137,7 @@ func nodeUpgradeGKE(v string) error {
...
@@ -137,7 +137,7 @@ func nodeUpgradeGKE(v string) error {
return
err
return
err
}
}
var
_
=
Describe
(
"Upgrade [Feature:Upgrade]"
,
func
()
{
var
_
=
Kube
Describe
(
"Upgrade [Feature:Upgrade]"
,
func
()
{
svcName
,
replicas
:=
"baz"
,
2
svcName
,
replicas
:=
"baz"
,
2
var
rcName
,
ip
,
v
string
var
rcName
,
ip
,
v
string
...
@@ -190,7 +190,7 @@ var _ = Describe("Upgrade [Feature:Upgrade]", func() {
...
@@ -190,7 +190,7 @@ var _ = Describe("Upgrade [Feature:Upgrade]", func() {
w
.
Cleanup
()
w
.
Cleanup
()
})
})
Describe
(
"master upgrade"
,
func
()
{
Kube
Describe
(
"master upgrade"
,
func
()
{
It
(
"should maintain responsive services [Feature:MasterUpgrade]"
,
func
()
{
It
(
"should maintain responsive services [Feature:MasterUpgrade]"
,
func
()
{
By
(
"Validating cluster before master upgrade"
)
By
(
"Validating cluster before master upgrade"
)
expectNoError
(
validate
(
f
,
svcName
,
rcName
,
ingress
,
replicas
))
expectNoError
(
validate
(
f
,
svcName
,
rcName
,
ingress
,
replicas
))
...
@@ -203,7 +203,7 @@ var _ = Describe("Upgrade [Feature:Upgrade]", func() {
...
@@ -203,7 +203,7 @@ var _ = Describe("Upgrade [Feature:Upgrade]", func() {
})
})
})
})
Describe
(
"node upgrade"
,
func
()
{
Kube
Describe
(
"node upgrade"
,
func
()
{
var
tmplBefore
,
tmplAfter
string
var
tmplBefore
,
tmplAfter
string
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
if
providerIs
(
"gce"
)
{
if
providerIs
(
"gce"
)
{
...
...
test/e2e/configmap.go
View file @
9a71dfe7
...
@@ -27,7 +27,7 @@ import (
...
@@ -27,7 +27,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"ConfigMap"
,
func
()
{
var
_
=
Kube
Describe
(
"ConfigMap"
,
func
()
{
f
:=
NewDefaultFramework
(
"configmap"
)
f
:=
NewDefaultFramework
(
"configmap"
)
...
...
test/e2e/container_probe.go
View file @
9a71dfe7
...
@@ -35,7 +35,7 @@ const (
...
@@ -35,7 +35,7 @@ const (
probTestInitialDelaySeconds
=
30
probTestInitialDelaySeconds
=
30
)
)
var
_
=
Describe
(
"Probing container"
,
func
()
{
var
_
=
Kube
Describe
(
"Probing container"
,
func
()
{
framework
:=
NewDefaultFramework
(
"container-probe"
)
framework
:=
NewDefaultFramework
(
"container-probe"
)
var
podClient
client
.
PodInterface
var
podClient
client
.
PodInterface
probe
:=
webserverProbeBuilder
{}
probe
:=
webserverProbeBuilder
{}
...
...
test/e2e/daemon_restart.go
View file @
9a71dfe7
...
@@ -183,7 +183,7 @@ func getContainerRestarts(c *client.Client, ns string, labelSelector labels.Sele
...
@@ -183,7 +183,7 @@ func getContainerRestarts(c *client.Client, ns string, labelSelector labels.Sele
return
failedContainers
,
containerRestartNodes
.
List
()
return
failedContainers
,
containerRestartNodes
.
List
()
}
}
var
_
=
Describe
(
"DaemonRestart [Disruptive]"
,
func
()
{
var
_
=
Kube
Describe
(
"DaemonRestart [Disruptive]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"daemonrestart"
)
framework
:=
NewDefaultFramework
(
"daemonrestart"
)
rcName
:=
"daemonrestart"
+
strconv
.
Itoa
(
numPods
)
+
"-"
+
string
(
util
.
NewUUID
())
rcName
:=
"daemonrestart"
+
strconv
.
Itoa
(
numPods
)
+
"-"
+
string
(
util
.
NewUUID
())
...
...
test/e2e/daemon_set.go
View file @
9a71dfe7
...
@@ -53,7 +53,7 @@ const (
...
@@ -53,7 +53,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
_
=
Describe
(
"Daemon set [Serial]"
,
func
()
{
var
_
=
Kube
Describe
(
"Daemon set [Serial]"
,
func
()
{
var
f
*
Framework
var
f
*
Framework
AfterEach
(
func
()
{
AfterEach
(
func
()
{
...
...
test/e2e/dashboard.go
View file @
9a71dfe7
...
@@ -28,7 +28,7 @@ import (
...
@@ -28,7 +28,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Kubernetes Dashboard"
,
func
()
{
var
_
=
Kube
Describe
(
"Kubernetes Dashboard"
,
func
()
{
const
(
const
(
uiServiceName
=
"kubernetes-dashboard"
uiServiceName
=
"kubernetes-dashboard"
uiAppName
=
uiServiceName
uiAppName
=
uiServiceName
...
...
test/e2e/density.go
View file @
9a71dfe7
...
@@ -116,7 +116,7 @@ func density30AddonResourceVerifier() map[string]resourceConstraint {
...
@@ -116,7 +116,7 @@ func density30AddonResourceVerifier() map[string]resourceConstraint {
// IMPORTANT: This test is designed to work on large (>= 100 Nodes) clusters. For smaller ones
// IMPORTANT: This test is designed to work on large (>= 100 Nodes) clusters. For smaller ones
// results will not be representative for control-plane performance as we'll start hitting
// results will not be representative for control-plane performance as we'll start hitting
// limits on Docker's concurrent container startup.
// limits on Docker's concurrent container startup.
var
_
=
Describe
(
"Density"
,
func
()
{
var
_
=
Kube
Describe
(
"Density"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
nodeCount
int
var
nodeCount
int
var
RCName
string
var
RCName
string
...
...
test/e2e/deployment.go
View file @
9a71dfe7
...
@@ -46,7 +46,7 @@ const (
...
@@ -46,7 +46,7 @@ const (
redisImageName
=
"redis"
redisImageName
=
"redis"
)
)
var
_
=
Describe
(
"Deployment"
,
func
()
{
var
_
=
Kube
Describe
(
"Deployment"
,
func
()
{
f
:=
NewDefaultFramework
(
"deployment"
)
f
:=
NewDefaultFramework
(
"deployment"
)
It
(
"deployment should create new pods"
,
func
()
{
It
(
"deployment should create new pods"
,
func
()
{
...
...
test/e2e/dns.go
View file @
9a71dfe7
...
@@ -249,7 +249,7 @@ func createServiceSpec(serviceName string, isHeadless bool, selector map[string]
...
@@ -249,7 +249,7 @@ func createServiceSpec(serviceName string, isHeadless bool, selector map[string]
return
headlessService
return
headlessService
}
}
var
_
=
Describe
(
"DNS"
,
func
()
{
var
_
=
Kube
Describe
(
"DNS"
,
func
()
{
f
:=
NewDefaultFramework
(
"dns"
)
f
:=
NewDefaultFramework
(
"dns"
)
It
(
"should provide DNS for the cluster [Conformance]"
,
func
()
{
It
(
"should provide DNS for the cluster [Conformance]"
,
func
()
{
...
...
test/e2e/docker_containers.go
View file @
9a71dfe7
...
@@ -24,7 +24,7 @@ import (
...
@@ -24,7 +24,7 @@ import (
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
)
)
var
_
=
Describe
(
"Docker Containers"
,
func
()
{
var
_
=
Kube
Describe
(
"Docker Containers"
,
func
()
{
framework
:=
NewDefaultFramework
(
"containers"
)
framework
:=
NewDefaultFramework
(
"containers"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ns
string
var
ns
string
...
...
test/e2e/downward_api.go
View file @
9a71dfe7
...
@@ -25,7 +25,7 @@ import (
...
@@ -25,7 +25,7 @@ import (
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
)
)
var
_
=
Describe
(
"Downward API"
,
func
()
{
var
_
=
Kube
Describe
(
"Downward API"
,
func
()
{
framework
:=
NewDefaultFramework
(
"downward-api"
)
framework
:=
NewDefaultFramework
(
"downward-api"
)
It
(
"should provide pod name and namespace as env vars [Conformance]"
,
func
()
{
It
(
"should provide pod name and namespace as env vars [Conformance]"
,
func
()
{
...
...
test/e2e/downwardapi_volume.go
View file @
9a71dfe7
...
@@ -27,7 +27,7 @@ import (
...
@@ -27,7 +27,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Downward API volume"
,
func
()
{
var
_
=
Kube
Describe
(
"Downward API volume"
,
func
()
{
// How long to wait for a log pod to be displayed
// How long to wait for a log pod to be displayed
const
podLogTimeout
=
45
*
time
.
Second
const
podLogTimeout
=
45
*
time
.
Second
...
...
test/e2e/empty_dir.go
View file @
9a71dfe7
...
@@ -33,7 +33,7 @@ const (
...
@@ -33,7 +33,7 @@ const (
testImageNonRootUid
=
"gcr.io/google_containers/mounttest-user:0.3"
testImageNonRootUid
=
"gcr.io/google_containers/mounttest-user:0.3"
)
)
var
_
=
Describe
(
"EmptyDir volumes"
,
func
()
{
var
_
=
Kube
Describe
(
"EmptyDir volumes"
,
func
()
{
f
:=
NewDefaultFramework
(
"emptydir"
)
f
:=
NewDefaultFramework
(
"emptydir"
)
...
...
test/e2e/empty_dir_wrapper.go
View file @
9a71dfe7
...
@@ -28,7 +28,7 @@ import (
...
@@ -28,7 +28,7 @@ import (
// This test will create a pod with a secret volume and gitRepo volume
// This test will create a pod with a secret volume and gitRepo volume
// Thus requests a secret, a git server pod, and a git server service
// Thus requests a secret, a git server pod, and a git server service
var
_
=
Describe
(
"EmptyDir wrapper volumes"
,
func
()
{
var
_
=
Kube
Describe
(
"EmptyDir wrapper volumes"
,
func
()
{
f
:=
NewDefaultFramework
(
"emptydir-wrapper"
)
f
:=
NewDefaultFramework
(
"emptydir-wrapper"
)
It
(
"should becomes running"
,
func
()
{
It
(
"should becomes running"
,
func
()
{
...
...
test/e2e/es_cluster_logging.go
View file @
9a71dfe7
...
@@ -30,7 +30,7 @@ import (
...
@@ -30,7 +30,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Cluster level logging using Elasticsearch [Feature:Elasticsearch]"
,
func
()
{
var
_
=
Kube
Describe
(
"Cluster level logging using Elasticsearch [Feature:Elasticsearch]"
,
func
()
{
f
:=
NewDefaultFramework
(
"es-logging"
)
f
:=
NewDefaultFramework
(
"es-logging"
)
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
...
test/e2e/etcd_failure.go
View file @
9a71dfe7
...
@@ -27,7 +27,7 @@ import (
...
@@ -27,7 +27,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Etcd failure [Disruptive]"
,
func
()
{
var
_
=
Kube
Describe
(
"Etcd failure [Disruptive]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"etcd-failure"
)
framework
:=
NewDefaultFramework
(
"etcd-failure"
)
...
...
test/e2e/events.go
View file @
9a71dfe7
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Events"
,
func
()
{
var
_
=
Kube
Describe
(
"Events"
,
func
()
{
framework
:=
NewDefaultFramework
(
"events"
)
framework
:=
NewDefaultFramework
(
"events"
)
It
(
"should be sent by kubelets and the scheduler about pods scheduling and running [Conformance]"
,
func
()
{
It
(
"should be sent by kubelets and the scheduler about pods scheduling and running [Conformance]"
,
func
()
{
...
...
test/e2e/example_cluster_dns.go
View file @
9a71dfe7
...
@@ -41,7 +41,7 @@ try:
...
@@ -41,7 +41,7 @@ try:
except:
except:
print 'err'`
print 'err'`
var
_
=
Describe
(
"ClusterDns [Feature:Example]"
,
func
()
{
var
_
=
Kube
Describe
(
"ClusterDns [Feature:Example]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"cluster-dns"
)
framework
:=
NewDefaultFramework
(
"cluster-dns"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
...
...
test/e2e/example_k8petstore.go
View file @
9a71dfe7
...
@@ -153,7 +153,7 @@ T:
...
@@ -153,7 +153,7 @@ T:
Ω
(
totalTransactions
)
.
Should
(
BeNumerically
(
">"
,
finalTransactionsExpected
))
Ω
(
totalTransactions
)
.
Should
(
BeNumerically
(
">"
,
finalTransactionsExpected
))
}
}
var
_
=
Describe
(
"Pet Store [Feature:Example]"
,
func
()
{
var
_
=
Kube
Describe
(
"Pet Store [Feature:Example]"
,
func
()
{
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
// The shell scripts in k8petstore break on jenkins... Pure golang rewrite is in progress.
// The shell scripts in k8petstore break on jenkins... Pure golang rewrite is in progress.
...
...
test/e2e/examples.go
View file @
9a71dfe7
...
@@ -37,7 +37,7 @@ const (
...
@@ -37,7 +37,7 @@ const (
serverStartTimeout
=
podStartTimeout
+
3
*
time
.
Minute
serverStartTimeout
=
podStartTimeout
+
3
*
time
.
Minute
)
)
var
_
=
Describe
(
"[Feature:Example]"
,
func
()
{
var
_
=
Kube
Describe
(
"[Feature:Example]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"examples"
)
framework
:=
NewDefaultFramework
(
"examples"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ns
string
var
ns
string
...
@@ -46,7 +46,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -46,7 +46,7 @@ var _ = Describe("[Feature:Example]", func() {
ns
=
framework
.
Namespace
.
Name
ns
=
framework
.
Namespace
.
Name
})
})
Describe
(
"Redis"
,
func
()
{
Kube
Describe
(
"Redis"
,
func
()
{
It
(
"should create and stop redis servers"
,
func
()
{
It
(
"should create and stop redis servers"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/redis"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/redis"
,
file
)
...
@@ -108,7 +108,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -108,7 +108,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Celery-RabbitMQ"
,
func
()
{
Kube
Describe
(
"Celery-RabbitMQ"
,
func
()
{
It
(
"should create and stop celery+rabbitmq servers"
,
func
()
{
It
(
"should create and stop celery+rabbitmq servers"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"celery-rabbitmq"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"celery-rabbitmq"
,
file
)
...
@@ -151,7 +151,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -151,7 +151,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Spark"
,
func
()
{
Kube
Describe
(
"Spark"
,
func
()
{
It
(
"should start spark master, driver and workers"
,
func
()
{
It
(
"should start spark master, driver and workers"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"spark"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"spark"
,
file
)
...
@@ -201,7 +201,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -201,7 +201,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Cassandra"
,
func
()
{
Kube
Describe
(
"Cassandra"
,
func
()
{
It
(
"should create and scale cassandra"
,
func
()
{
It
(
"should create and scale cassandra"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"cassandra"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"cassandra"
,
file
)
...
@@ -248,7 +248,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -248,7 +248,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Storm"
,
func
()
{
Kube
Describe
(
"Storm"
,
func
()
{
It
(
"should create and stop Zookeeper, Nimbus and Storm worker servers"
,
func
()
{
It
(
"should create and stop Zookeeper, Nimbus and Storm worker servers"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"storm"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"storm"
,
file
)
...
@@ -302,7 +302,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -302,7 +302,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Liveness"
,
func
()
{
Kube
Describe
(
"Liveness"
,
func
()
{
It
(
"liveness pods should be automatically restarted"
,
func
()
{
It
(
"liveness pods should be automatically restarted"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs"
,
"user-guide"
,
"liveness"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs"
,
"user-guide"
,
"liveness"
,
file
)
...
@@ -352,7 +352,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -352,7 +352,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Secret"
,
func
()
{
Kube
Describe
(
"Secret"
,
func
()
{
It
(
"should create a pod that reads a secret"
,
func
()
{
It
(
"should create a pod that reads a secret"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs"
,
"user-guide"
,
"secrets"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs"
,
"user-guide"
,
"secrets"
,
file
)
...
@@ -374,7 +374,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -374,7 +374,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Downward API"
,
func
()
{
Kube
Describe
(
"Downward API"
,
func
()
{
It
(
"should create a pod that prints his name and namespace"
,
func
()
{
It
(
"should create a pod that prints his name and namespace"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs"
,
"user-guide"
,
"downward-api"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs"
,
"user-guide"
,
"downward-api"
,
file
)
...
@@ -396,7 +396,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -396,7 +396,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"RethinkDB"
,
func
()
{
Kube
Describe
(
"RethinkDB"
,
func
()
{
It
(
"should create and stop rethinkdb servers"
,
func
()
{
It
(
"should create and stop rethinkdb servers"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"rethinkdb"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"rethinkdb"
,
file
)
...
@@ -438,7 +438,7 @@ var _ = Describe("[Feature:Example]", func() {
...
@@ -438,7 +438,7 @@ var _ = Describe("[Feature:Example]", func() {
})
})
})
})
Describe
(
"Hazelcast"
,
func
()
{
Kube
Describe
(
"Hazelcast"
,
func
()
{
It
(
"should create and scale hazelcast"
,
func
()
{
It
(
"should create and scale hazelcast"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"hazelcast"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples"
,
"hazelcast"
,
file
)
...
...
test/e2e/expansion.go
View file @
9a71dfe7
...
@@ -25,7 +25,7 @@ import (
...
@@ -25,7 +25,7 @@ import (
// These tests exercise the Kubernetes expansion syntax $(VAR).
// These tests exercise the Kubernetes expansion syntax $(VAR).
// For more information, see: docs/design/expansion.md
// For more information, see: docs/design/expansion.md
var
_
=
Describe
(
"Variable Expansion"
,
func
()
{
var
_
=
Kube
Describe
(
"Variable Expansion"
,
func
()
{
framework
:=
NewDefaultFramework
(
"var-expansion"
)
framework
:=
NewDefaultFramework
(
"var-expansion"
)
It
(
"should allow composing env vars into new env vars [Conformance]"
,
func
()
{
It
(
"should allow composing env vars into new env vars [Conformance]"
,
func
()
{
...
...
test/e2e/framework.go
View file @
9a71dfe7
...
@@ -413,3 +413,9 @@ func kubectlExec(namespace string, podName, containerName string, args ...string
...
@@ -413,3 +413,9 @@ func kubectlExec(namespace string, podName, containerName string, args ...string
err
:=
cmd
.
Run
()
err
:=
cmd
.
Run
()
return
stdout
.
Bytes
(),
stderr
.
Bytes
(),
err
return
stdout
.
Bytes
(),
stderr
.
Bytes
(),
err
}
}
// Wrapper function for ginkgo describe. Adds namespacing.
// TODO: Support type safe tagging as well https://github.com/kubernetes/kubernetes/pull/22401.
func
KubeDescribe
(
text
string
,
body
func
())
bool
{
return
Describe
(
"[k8s.io] "
+
text
,
body
)
}
test/e2e/garbage_collector.go
View file @
9a71dfe7
...
@@ -30,7 +30,7 @@ import (
...
@@ -30,7 +30,7 @@ import (
// This test requires that --terminated-pod-gc-threshold=100 be set on the controller manager
// This test requires that --terminated-pod-gc-threshold=100 be set on the controller manager
//
//
// Slow by design (7 min)
// Slow by design (7 min)
var
_
=
Describe
(
"Garbage collector [Slow]"
,
func
()
{
var
_
=
Kube
Describe
(
"Garbage collector [Slow]"
,
func
()
{
f
:=
NewDefaultFramework
(
"garbage-collector"
)
f
:=
NewDefaultFramework
(
"garbage-collector"
)
It
(
"should handle the creation of 1000 pods"
,
func
()
{
It
(
"should handle the creation of 1000 pods"
,
func
()
{
SkipUnlessProviderIs
(
"gce"
)
SkipUnlessProviderIs
(
"gce"
)
...
...
test/e2e/generated_clientset.go
View file @
9a71dfe7
...
@@ -32,7 +32,7 @@ import (
...
@@ -32,7 +32,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Generated release_1_2 clientset"
,
func
()
{
var
_
=
Kube
Describe
(
"Generated release_1_2 clientset"
,
func
()
{
framework
:=
NewDefaultFramework
(
"clientset"
)
framework
:=
NewDefaultFramework
(
"clientset"
)
It
(
"should create pods, delete pods, watch pods"
,
func
()
{
It
(
"should create pods, delete pods, watch pods"
,
func
()
{
podClient
:=
framework
.
Clientset_1_2
.
Core
()
.
Pods
(
framework
.
Namespace
.
Name
)
podClient
:=
framework
.
Clientset_1_2
.
Core
()
.
Pods
(
framework
.
Namespace
.
Name
)
...
...
test/e2e/horizontal_pod_autoscaling.go
View file @
9a71dfe7
...
@@ -34,8 +34,7 @@ const (
...
@@ -34,8 +34,7 @@ const (
// These tests don't seem to be running properly in parallel: issue: #20338.
// These tests don't seem to be running properly in parallel: issue: #20338.
//
//
var
_
=
KubeDescribe
(
"Horizontal pod autoscaling (scale resource: CPU)"
,
func
()
{
var
_
=
Describe
(
"Horizontal pod autoscaling (scale resource: CPU)"
,
func
()
{
var
rc
*
ResourceConsumer
var
rc
*
ResourceConsumer
f
:=
NewDefaultFramework
(
"horizontal-pod-autoscaling"
)
f
:=
NewDefaultFramework
(
"horizontal-pod-autoscaling"
)
...
@@ -43,7 +42,7 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
...
@@ -43,7 +42,7 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
titleDown
:=
"Should scale from 5 pods to 3 pods and from 3 to 1 and verify decision stability"
titleDown
:=
"Should scale from 5 pods to 3 pods and from 3 to 1 and verify decision stability"
// These tests take ~20 minutes each.
// These tests take ~20 minutes each.
Describe
(
"[Serial] [Slow] Deployment"
,
func
()
{
Kube
Describe
(
"[Serial] [Slow] Deployment"
,
func
()
{
// CPU tests via deployments
// CPU tests via deployments
It
(
titleUp
,
func
()
{
It
(
titleUp
,
func
()
{
scaleUp
(
"test-deployment"
,
kindDeployment
,
rc
,
f
)
scaleUp
(
"test-deployment"
,
kindDeployment
,
rc
,
f
)
...
@@ -54,7 +53,7 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
...
@@ -54,7 +53,7 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
})
})
// These tests take ~20 minutes each.
// These tests take ~20 minutes each.
Describe
(
"[Serial] [Slow] ReplicaSet"
,
func
()
{
Kube
Describe
(
"[Serial] [Slow] ReplicaSet"
,
func
()
{
// CPU tests via deployments
// CPU tests via deployments
It
(
titleUp
,
func
()
{
It
(
titleUp
,
func
()
{
scaleUp
(
"rs"
,
kindReplicaSet
,
rc
,
f
)
scaleUp
(
"rs"
,
kindReplicaSet
,
rc
,
f
)
...
@@ -63,9 +62,8 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
...
@@ -63,9 +62,8 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
scaleDown
(
"rs"
,
kindReplicaSet
,
rc
,
f
)
scaleDown
(
"rs"
,
kindReplicaSet
,
rc
,
f
)
})
})
})
})
// These tests take ~20 minutes each.
// These tests take ~20 minutes each.
Describe
(
"[Serial] [Slow] ReplicationController"
,
func
()
{
Kube
Describe
(
"[Serial] [Slow] ReplicationController"
,
func
()
{
// CPU tests via replication controllers
// CPU tests via replication controllers
It
(
titleUp
,
func
()
{
It
(
titleUp
,
func
()
{
scaleUp
(
"rc"
,
kindRC
,
rc
,
f
)
scaleUp
(
"rc"
,
kindRC
,
rc
,
f
)
...
@@ -75,7 +73,7 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
...
@@ -75,7 +73,7 @@ var _ = Describe("Horizontal pod autoscaling (scale resource: CPU)", func() {
})
})
})
})
Describe
(
"ReplicationController light"
,
func
()
{
Kube
Describe
(
"ReplicationController light"
,
func
()
{
It
(
"Should scale from 1 pod to 2 pods"
,
func
()
{
It
(
"Should scale from 1 pod to 2 pods"
,
func
()
{
scaleTest
:=
&
HPAScaleTest
{
scaleTest
:=
&
HPAScaleTest
{
initPods
:
1
,
initPods
:
1
,
...
...
test/e2e/host_path.go
View file @
9a71dfe7
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
//TODO : Consolidate this code with the code for emptyDir.
//TODO : Consolidate this code with the code for emptyDir.
//This will require some smart.
//This will require some smart.
var
_
=
Describe
(
"hostPath"
,
func
()
{
var
_
=
Kube
Describe
(
"hostPath"
,
func
()
{
framework
:=
NewDefaultFramework
(
"hostpath"
)
framework
:=
NewDefaultFramework
(
"hostpath"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
var
namespace
*
api
.
Namespace
var
namespace
*
api
.
Namespace
...
...
test/e2e/ingress.go
View file @
9a71dfe7
...
@@ -440,7 +440,7 @@ func (cont *IngressController) Cleanup(del bool) error {
...
@@ -440,7 +440,7 @@ func (cont *IngressController) Cleanup(del bool) error {
// test requires at least 5.
// test requires at least 5.
//
//
// Slow by design (10 min)
// Slow by design (10 min)
var
_
=
Describe
(
"GCE L7 LoadBalancer Controller [Feature:Ingress]"
,
func
()
{
var
_
=
Kube
Describe
(
"GCE L7 LoadBalancer Controller [Feature:Ingress]"
,
func
()
{
// These variables are initialized after framework's beforeEach.
// These variables are initialized after framework's beforeEach.
var
ns
string
var
ns
string
var
addonDir
string
var
addonDir
string
...
...
test/e2e/initial_resources.go
View file @
9a71dfe7
...
@@ -29,7 +29,7 @@ import (
...
@@ -29,7 +29,7 @@ import (
// these tests are not run by default.
// these tests are not run by default.
//
//
// Flaky issue #20272
// Flaky issue #20272
var
_
=
Describe
(
"Initial Resources [Feature:InitialResources] [Flaky]"
,
func
()
{
var
_
=
Kube
Describe
(
"Initial Resources [Feature:InitialResources] [Flaky]"
,
func
()
{
f
:=
NewDefaultFramework
(
"initial-resources"
)
f
:=
NewDefaultFramework
(
"initial-resources"
)
It
(
"should set initial resources based on historical data"
,
func
()
{
It
(
"should set initial resources based on historical data"
,
func
()
{
...
...
test/e2e/job.go
View file @
9a71dfe7
...
@@ -39,7 +39,7 @@ const (
...
@@ -39,7 +39,7 @@ const (
jobSelectorKey
=
"job"
jobSelectorKey
=
"job"
)
)
var
_
=
Describe
(
"Job"
,
func
()
{
var
_
=
Kube
Describe
(
"Job"
,
func
()
{
f
:=
NewDefaultFramework
(
"job"
)
f
:=
NewDefaultFramework
(
"job"
)
parallelism
:=
2
parallelism
:=
2
completions
:=
4
completions
:=
4
...
...
test/e2e/kibana_logging.go
View file @
9a71dfe7
...
@@ -26,7 +26,7 @@ import (
...
@@ -26,7 +26,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Kibana Logging Instances Is Alive"
,
func
()
{
var
_
=
Kube
Describe
(
"Kibana Logging Instances Is Alive"
,
func
()
{
f
:=
NewDefaultFramework
(
"kibana-logging"
)
f
:=
NewDefaultFramework
(
"kibana-logging"
)
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
...
test/e2e/kubectl.go
View file @
9a71dfe7
...
@@ -109,7 +109,7 @@ var (
...
@@ -109,7 +109,7 @@ var (
podProbeParametersVersion
=
version
.
MustParse
(
"v1.2.0-alpha.4"
)
podProbeParametersVersion
=
version
.
MustParse
(
"v1.2.0-alpha.4"
)
)
)
var
_
=
Describe
(
"Kubectl client"
,
func
()
{
var
_
=
Kube
Describe
(
"Kubectl client"
,
func
()
{
defer
GinkgoRecover
()
defer
GinkgoRecover
()
framework
:=
NewDefaultFramework
(
"kubectl"
)
framework
:=
NewDefaultFramework
(
"kubectl"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
...
@@ -119,7 +119,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -119,7 +119,7 @@ var _ = Describe("Kubectl client", func() {
ns
=
framework
.
Namespace
.
Name
ns
=
framework
.
Namespace
.
Name
})
})
Describe
(
"Update Demo"
,
func
()
{
Kube
Describe
(
"Update Demo"
,
func
()
{
var
updateDemoRoot
,
nautilusPath
,
kittenPath
string
var
updateDemoRoot
,
nautilusPath
,
kittenPath
string
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
updateDemoRoot
=
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs/user-guide/update-demo"
)
updateDemoRoot
=
filepath
.
Join
(
testContext
.
RepoRoot
,
"docs/user-guide/update-demo"
)
...
@@ -159,7 +159,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -159,7 +159,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Guestbook application"
,
func
()
{
Kube
Describe
(
"Guestbook application"
,
func
()
{
var
guestbookPath
string
var
guestbookPath
string
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
@@ -179,7 +179,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -179,7 +179,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Simple pod"
,
func
()
{
Kube
Describe
(
"Simple pod"
,
func
()
{
var
podPath
string
var
podPath
string
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
@@ -525,7 +525,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -525,7 +525,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl api-versions"
,
func
()
{
Kube
Describe
(
"Kubectl api-versions"
,
func
()
{
It
(
"should check if v1 is in available api versions [Conformance]"
,
func
()
{
It
(
"should check if v1 is in available api versions [Conformance]"
,
func
()
{
By
(
"validating api verions"
)
By
(
"validating api verions"
)
output
:=
runKubectlOrDie
(
"api-versions"
)
output
:=
runKubectlOrDie
(
"api-versions"
)
...
@@ -535,7 +535,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -535,7 +535,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl apply"
,
func
()
{
Kube
Describe
(
"Kubectl apply"
,
func
()
{
It
(
"should apply a new configuration to an existing RC"
,
func
()
{
It
(
"should apply a new configuration to an existing RC"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/guestbook-go"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/guestbook-go"
,
file
)
...
@@ -554,7 +554,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -554,7 +554,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl cluster-info"
,
func
()
{
Kube
Describe
(
"Kubectl cluster-info"
,
func
()
{
It
(
"should check if Kubernetes master services is included in cluster-info [Conformance]"
,
func
()
{
It
(
"should check if Kubernetes master services is included in cluster-info [Conformance]"
,
func
()
{
By
(
"validating cluster-info"
)
By
(
"validating cluster-info"
)
output
:=
runKubectlOrDie
(
"cluster-info"
)
output
:=
runKubectlOrDie
(
"cluster-info"
)
...
@@ -571,7 +571,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -571,7 +571,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl describe"
,
func
()
{
Kube
Describe
(
"Kubectl describe"
,
func
()
{
It
(
"should check if kubectl describe prints relevant information for rc and pods [Conformance]"
,
func
()
{
It
(
"should check if kubectl describe prints relevant information for rc and pods [Conformance]"
,
func
()
{
SkipUnlessServerVersionGTE
(
nodePortsOptionalVersion
,
c
)
SkipUnlessServerVersionGTE
(
nodePortsOptionalVersion
,
c
)
...
@@ -670,7 +670,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -670,7 +670,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl expose"
,
func
()
{
Kube
Describe
(
"Kubectl expose"
,
func
()
{
It
(
"should create services for rc [Conformance]"
,
func
()
{
It
(
"should create services for rc [Conformance]"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/guestbook-go"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/guestbook-go"
,
file
)
...
@@ -740,7 +740,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -740,7 +740,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl label"
,
func
()
{
Kube
Describe
(
"Kubectl label"
,
func
()
{
var
podPath
string
var
podPath
string
var
nsFlag
string
var
nsFlag
string
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
@@ -776,7 +776,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -776,7 +776,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl logs"
,
func
()
{
Kube
Describe
(
"Kubectl logs"
,
func
()
{
var
rcPath
string
var
rcPath
string
var
nsFlag
string
var
nsFlag
string
containerName
:=
"redis-master"
containerName
:=
"redis-master"
...
@@ -837,7 +837,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -837,7 +837,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl patch"
,
func
()
{
Kube
Describe
(
"Kubectl patch"
,
func
()
{
It
(
"should add annotations for pods in rc [Conformance]"
,
func
()
{
It
(
"should add annotations for pods in rc [Conformance]"
,
func
()
{
mkpath
:=
func
(
file
string
)
string
{
mkpath
:=
func
(
file
string
)
string
{
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/guestbook-go"
,
file
)
return
filepath
.
Join
(
testContext
.
RepoRoot
,
"examples/guestbook-go"
,
file
)
...
@@ -866,7 +866,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -866,7 +866,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl version"
,
func
()
{
Kube
Describe
(
"Kubectl version"
,
func
()
{
It
(
"should check is all data is printed [Conformance]"
,
func
()
{
It
(
"should check is all data is printed [Conformance]"
,
func
()
{
version
:=
runKubectlOrDie
(
"version"
)
version
:=
runKubectlOrDie
(
"version"
)
requiredItems
:=
[]
string
{
"Client Version:"
,
"Server Version:"
,
"Major:"
,
"Minor:"
,
"GitCommit:"
}
requiredItems
:=
[]
string
{
"Client Version:"
,
"Server Version:"
,
"Major:"
,
"Minor:"
,
"GitCommit:"
}
...
@@ -878,7 +878,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -878,7 +878,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl run default"
,
func
()
{
Kube
Describe
(
"Kubectl run default"
,
func
()
{
var
nsFlag
string
var
nsFlag
string
var
name
string
var
name
string
...
@@ -920,7 +920,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -920,7 +920,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl run rc"
,
func
()
{
Kube
Describe
(
"Kubectl run rc"
,
func
()
{
var
nsFlag
string
var
nsFlag
string
var
rcName
string
var
rcName
string
...
@@ -974,7 +974,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -974,7 +974,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl run deployment"
,
func
()
{
Kube
Describe
(
"Kubectl run deployment"
,
func
()
{
var
nsFlag
string
var
nsFlag
string
var
dName
string
var
dName
string
...
@@ -1016,7 +1016,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -1016,7 +1016,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl run job"
,
func
()
{
Kube
Describe
(
"Kubectl run job"
,
func
()
{
var
nsFlag
string
var
nsFlag
string
var
jobName
string
var
jobName
string
...
@@ -1068,7 +1068,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -1068,7 +1068,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Kubectl run --rm job"
,
func
()
{
Kube
Describe
(
"Kubectl run --rm job"
,
func
()
{
nsFlag
:=
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
)
nsFlag
:=
fmt
.
Sprintf
(
"--namespace=%v"
,
ns
)
jobName
:=
"e2e-test-rm-busybox-job"
jobName
:=
"e2e-test-rm-busybox-job"
...
@@ -1092,7 +1092,7 @@ var _ = Describe("Kubectl client", func() {
...
@@ -1092,7 +1092,7 @@ var _ = Describe("Kubectl client", func() {
})
})
})
})
Describe
(
"Proxy server"
,
func
()
{
Kube
Describe
(
"Proxy server"
,
func
()
{
// TODO: test proxy options (static, prefix, etc)
// TODO: test proxy options (static, prefix, etc)
It
(
"should support proxy with --port 0 [Conformance]"
,
func
()
{
It
(
"should support proxy with --port 0 [Conformance]"
,
func
()
{
By
(
"starting the proxy server"
)
By
(
"starting the proxy server"
)
...
...
test/e2e/kubelet.go
View file @
9a71dfe7
...
@@ -86,7 +86,7 @@ func waitTillNPodsRunningOnNodes(c *client.Client, nodeNames sets.String, podNam
...
@@ -86,7 +86,7 @@ func waitTillNPodsRunningOnNodes(c *client.Client, nodeNames sets.String, podNam
})
})
}
}
var
_
=
Describe
(
"kubelet"
,
func
()
{
var
_
=
Kube
Describe
(
"kubelet"
,
func
()
{
var
numNodes
int
var
numNodes
int
var
nodeNames
sets
.
String
var
nodeNames
sets
.
String
framework
:=
NewDefaultFramework
(
"kubelet"
)
framework
:=
NewDefaultFramework
(
"kubelet"
)
...
@@ -107,7 +107,7 @@ var _ = Describe("kubelet", func() {
...
@@ -107,7 +107,7 @@ var _ = Describe("kubelet", func() {
resourceMonitor
.
Stop
()
resourceMonitor
.
Stop
()
})
})
Describe
(
"Clean up pods on node"
,
func
()
{
Kube
Describe
(
"Clean up pods on node"
,
func
()
{
type
DeleteTest
struct
{
type
DeleteTest
struct
{
podsPerNode
int
podsPerNode
int
timeout
time
.
Duration
timeout
time
.
Duration
...
...
test/e2e/kubelet_etc_hosts.go
View file @
9a71dfe7
...
@@ -40,7 +40,7 @@ type KubeletManagedHostConfig struct {
...
@@ -40,7 +40,7 @@ type KubeletManagedHostConfig struct {
f
*
Framework
f
*
Framework
}
}
var
_
=
Describe
(
"KubeletManagedEtcHosts"
,
func
()
{
var
_
=
Kube
Describe
(
"KubeletManagedEtcHosts"
,
func
()
{
f
:=
NewDefaultFramework
(
"e2e-kubelet-etc-hosts"
)
f
:=
NewDefaultFramework
(
"e2e-kubelet-etc-hosts"
)
config
:=
&
KubeletManagedHostConfig
{
config
:=
&
KubeletManagedHostConfig
{
f
:
f
,
f
:
f
,
...
...
test/e2e/kubelet_perf.go
View file @
9a71dfe7
...
@@ -179,7 +179,7 @@ func verifyCPULimits(expected containersCPUSummary, actual nodesCPUSummary) {
...
@@ -179,7 +179,7 @@ func verifyCPULimits(expected containersCPUSummary, actual nodesCPUSummary) {
}
}
// Slow by design (1 hour)
// Slow by design (1 hour)
var
_
=
Describe
(
"Kubelet [Serial] [Slow]"
,
func
()
{
var
_
=
Kube
Describe
(
"Kubelet [Serial] [Slow]"
,
func
()
{
var
nodeNames
sets
.
String
var
nodeNames
sets
.
String
framework
:=
NewDefaultFramework
(
"kubelet-perf"
)
framework
:=
NewDefaultFramework
(
"kubelet-perf"
)
var
rm
*
resourceMonitor
var
rm
*
resourceMonitor
...
@@ -197,7 +197,7 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
...
@@ -197,7 +197,7 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
AfterEach
(
func
()
{
AfterEach
(
func
()
{
rm
.
Stop
()
rm
.
Stop
()
})
})
Describe
(
"regular resource usage tracking"
,
func
()
{
Kube
Describe
(
"regular resource usage tracking"
,
func
()
{
// We assume that the scheduler will make reasonable scheduling choices
// We assume that the scheduler will make reasonable scheduling choices
// and assign ~N pods on the node.
// and assign ~N pods on the node.
// Although we want to track N pods per node, there are N + add-on pods
// Although we want to track N pods per node, there are N + add-on pods
...
@@ -248,7 +248,7 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
...
@@ -248,7 +248,7 @@ var _ = Describe("Kubelet [Serial] [Slow]", func() {
})
})
}
}
})
})
Describe
(
"experimental resource usage tracking [Feature:ExperimentalResourceUsageTracking]"
,
func
()
{
Kube
Describe
(
"experimental resource usage tracking [Feature:ExperimentalResourceUsageTracking]"
,
func
()
{
density
:=
[]
int
{
100
}
density
:=
[]
int
{
100
}
for
i
:=
range
density
{
for
i
:=
range
density
{
podsPerNode
:=
density
[
i
]
podsPerNode
:=
density
[
i
]
...
...
test/e2e/kubeproxy.go
View file @
9a71dfe7
...
@@ -69,7 +69,7 @@ type KubeProxyTestConfig struct {
...
@@ -69,7 +69,7 @@ type KubeProxyTestConfig struct {
nodes
[]
api
.
Node
nodes
[]
api
.
Node
}
}
var
_
=
Describe
(
"KubeProxy"
,
func
()
{
var
_
=
Kube
Describe
(
"KubeProxy"
,
func
()
{
f
:=
NewDefaultFramework
(
"e2e-kubeproxy"
)
f
:=
NewDefaultFramework
(
"e2e-kubeproxy"
)
config
:=
&
KubeProxyTestConfig
{
config
:=
&
KubeProxyTestConfig
{
f
:
f
,
f
:
f
,
...
...
test/e2e/limit_range.go
View file @
9a71dfe7
...
@@ -26,7 +26,7 @@ import (
...
@@ -26,7 +26,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"LimitRange"
,
func
()
{
var
_
=
Kube
Describe
(
"LimitRange"
,
func
()
{
f
:=
NewDefaultFramework
(
"limitrange"
)
f
:=
NewDefaultFramework
(
"limitrange"
)
It
(
"should create a LimitRange with defaults and ensure pod has those defaults applied."
,
func
()
{
It
(
"should create a LimitRange with defaults and ensure pod has those defaults applied."
,
func
()
{
...
...
test/e2e/load.go
View file @
9a71dfe7
...
@@ -47,7 +47,7 @@ const (
...
@@ -47,7 +47,7 @@ const (
// the ginkgo.skip list (see driver.go).
// the ginkgo.skip list (see driver.go).
// To run this suite you must explicitly ask for it by setting the
// To run this suite you must explicitly ask for it by setting the
// -t/--test flag or ginkgo.focus flag.
// -t/--test flag or ginkgo.focus flag.
var
_
=
Describe
(
"Load capacity"
,
func
()
{
var
_
=
Kube
Describe
(
"Load capacity"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
nodeCount
int
var
nodeCount
int
var
ns
string
var
ns
string
...
...
test/e2e/mesos.go
View file @
9a71dfe7
...
@@ -29,7 +29,7 @@ import (
...
@@ -29,7 +29,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Mesos"
,
func
()
{
var
_
=
Kube
Describe
(
"Mesos"
,
func
()
{
framework
:=
NewDefaultFramework
(
"pods"
)
framework
:=
NewDefaultFramework
(
"pods"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ns
string
var
ns
string
...
...
test/e2e/metrics_grabber_test.go
View file @
9a71dfe7
...
@@ -77,7 +77,7 @@ func checkMetrics(response metrics.Metrics, assumedMetrics map[string][]string)
...
@@ -77,7 +77,7 @@ func checkMetrics(response metrics.Metrics, assumedMetrics map[string][]string)
Expect
(
invalidLabels
)
.
To
(
BeEmpty
())
Expect
(
invalidLabels
)
.
To
(
BeEmpty
())
}
}
var
_
=
Describe
(
"MetricsGrabber"
,
func
()
{
var
_
=
Kube
Describe
(
"MetricsGrabber"
,
func
()
{
framework
:=
NewDefaultFramework
(
"metrics-grabber"
)
framework
:=
NewDefaultFramework
(
"metrics-grabber"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
var
grabber
*
metrics
.
MetricsGrabber
var
grabber
*
metrics
.
MetricsGrabber
...
...
test/e2e/monitoring.go
View file @
9a71dfe7
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
)
)
var
_
=
Describe
(
"Monitoring"
,
func
()
{
var
_
=
Kube
Describe
(
"Monitoring"
,
func
()
{
f
:=
NewDefaultFramework
(
"monitoring"
)
f
:=
NewDefaultFramework
(
"monitoring"
)
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
...
test/e2e/namespace.go
View file @
9a71dfe7
...
@@ -207,7 +207,7 @@ func ensureServicesAreRemovedWhenNamespaceIsDeleted(f *Framework) {
...
@@ -207,7 +207,7 @@ func ensureServicesAreRemovedWhenNamespaceIsDeleted(f *Framework) {
// that each have a variable amount of content in the associated Namespace.
// that each have a variable amount of content in the associated Namespace.
// When run in [Serial] this test appears to delete Namespace objects at a
// When run in [Serial] this test appears to delete Namespace objects at a
// rate of approximately 1 per second.
// rate of approximately 1 per second.
var
_
=
Describe
(
"Namespaces [Serial]"
,
func
()
{
var
_
=
Kube
Describe
(
"Namespaces [Serial]"
,
func
()
{
f
:=
NewDefaultFramework
(
"namespaces"
)
f
:=
NewDefaultFramework
(
"namespaces"
)
...
...
test/e2e/networking.go
View file @
9a71dfe7
...
@@ -29,7 +29,7 @@ import (
...
@@ -29,7 +29,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Networking"
,
func
()
{
var
_
=
Kube
Describe
(
"Networking"
,
func
()
{
f
:=
NewDefaultFramework
(
"nettest"
)
f
:=
NewDefaultFramework
(
"nettest"
)
var
svcname
=
"nettest"
var
svcname
=
"nettest"
...
@@ -213,7 +213,7 @@ var _ = Describe("Networking", func() {
...
@@ -213,7 +213,7 @@ var _ = Describe("Networking", func() {
})
})
// Marked with [Flaky] until the tests prove themselves stable.
// Marked with [Flaky] until the tests prove themselves stable.
Describe
(
"[Flaky] Granular Checks"
,
func
()
{
Kube
Describe
(
"[Flaky] Granular Checks"
,
func
()
{
It
(
"should function for pod communication on a single node"
,
func
()
{
It
(
"should function for pod communication on a single node"
,
func
()
{
...
...
test/e2e/nodeoutofdisk.go
View file @
9a71dfe7
...
@@ -64,7 +64,7 @@ const (
...
@@ -64,7 +64,7 @@ const (
// 7. Observe that the pod in pending status schedules on that node.
// 7. Observe that the pod in pending status schedules on that node.
//
//
// Flaky issue #20015. We have no clear path for how to test this functionality in a non-flaky way.
// Flaky issue #20015. We have no clear path for how to test this functionality in a non-flaky way.
var
_
=
Describe
(
"NodeOutOfDisk [Serial] [Flaky] [Disruptive]"
,
func
()
{
var
_
=
Kube
Describe
(
"NodeOutOfDisk [Serial] [Flaky] [Disruptive]"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
unfilledNodeName
,
recoveredNodeName
string
var
unfilledNodeName
,
recoveredNodeName
string
framework
:=
NewDefaultFramework
(
"node-outofdisk"
)
framework
:=
NewDefaultFramework
(
"node-outofdisk"
)
...
...
test/e2e/pd.go
View file @
9a71dfe7
...
@@ -45,7 +45,7 @@ const (
...
@@ -45,7 +45,7 @@ const (
gcePDDetachPollTime
=
10
*
time
.
Second
gcePDDetachPollTime
=
10
*
time
.
Second
)
)
var
_
=
Describe
(
"Pod Disks"
,
func
()
{
var
_
=
Kube
Describe
(
"Pod Disks"
,
func
()
{
var
(
var
(
podClient
client
.
PodInterface
podClient
client
.
PodInterface
host0Name
string
host0Name
string
...
...
test/e2e/persistent_volumes.go
View file @
9a71dfe7
...
@@ -30,7 +30,7 @@ import (
...
@@ -30,7 +30,7 @@ import (
// This test needs privileged containers, which are disabled by default. Run
// This test needs privileged containers, which are disabled by default. Run
// the test with "go run hack/e2e.go ... --ginkgo.focus=[Feature:Volumes]"
// the test with "go run hack/e2e.go ... --ginkgo.focus=[Feature:Volumes]"
var
_
=
Describe
(
"PersistentVolumes [Feature:Volumes]"
,
func
()
{
var
_
=
Kube
Describe
(
"PersistentVolumes [Feature:Volumes]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"pv"
)
framework
:=
NewDefaultFramework
(
"pv"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
var
ns
string
var
ns
string
...
...
test/e2e/pods.go
View file @
9a71dfe7
...
@@ -205,7 +205,7 @@ func getRestartDelay(c *client.Client, pod *api.Pod, ns string, name string, con
...
@@ -205,7 +205,7 @@ func getRestartDelay(c *client.Client, pod *api.Pod, ns string, name string, con
return
0
,
fmt
.
Errorf
(
"timeout getting pod restart delay"
)
return
0
,
fmt
.
Errorf
(
"timeout getting pod restart delay"
)
}
}
var
_
=
Describe
(
"Pods"
,
func
()
{
var
_
=
Kube
Describe
(
"Pods"
,
func
()
{
framework
:=
NewDefaultFramework
(
"pods"
)
framework
:=
NewDefaultFramework
(
"pods"
)
It
(
"should get a host IP [Conformance]"
,
func
()
{
It
(
"should get a host IP [Conformance]"
,
func
()
{
...
...
test/e2e/portforward.go
View file @
9a71dfe7
...
@@ -110,10 +110,10 @@ func runPortForward(ns, podName string, port int) (*exec.Cmd, int) {
...
@@ -110,10 +110,10 @@ func runPortForward(ns, podName string, port int) (*exec.Cmd, int) {
return
cmd
,
listenPort
return
cmd
,
listenPort
}
}
var
_
=
Describe
(
"Port forwarding"
,
func
()
{
var
_
=
Kube
Describe
(
"Port forwarding"
,
func
()
{
framework
:=
NewDefaultFramework
(
"port-forwarding"
)
framework
:=
NewDefaultFramework
(
"port-forwarding"
)
Describe
(
"With a server that expects a client request"
,
func
()
{
Kube
Describe
(
"With a server that expects a client request"
,
func
()
{
It
(
"should support a client that connects, sends no data, and disconnects [Conformance]"
,
func
()
{
It
(
"should support a client that connects, sends no data, and disconnects [Conformance]"
,
func
()
{
By
(
"creating the target pod"
)
By
(
"creating the target pod"
)
pod
:=
pfPod
(
"abc"
,
"1"
,
"1"
,
"1"
)
pod
:=
pfPod
(
"abc"
,
"1"
,
"1"
,
"1"
)
...
@@ -214,7 +214,7 @@ var _ = Describe("Port forwarding", func() {
...
@@ -214,7 +214,7 @@ var _ = Describe("Port forwarding", func() {
verifyLogMessage
(
logOutput
,
"^Done$"
)
verifyLogMessage
(
logOutput
,
"^Done$"
)
})
})
})
})
Describe
(
"With a server that expects no client request"
,
func
()
{
Kube
Describe
(
"With a server that expects no client request"
,
func
()
{
It
(
"should support a client that connects, sends no data, and disconnects [Conformance]"
,
func
()
{
It
(
"should support a client that connects, sends no data, and disconnects [Conformance]"
,
func
()
{
By
(
"creating the target pod"
)
By
(
"creating the target pod"
)
pod
:=
pfPod
(
""
,
"10"
,
"10"
,
"100"
)
pod
:=
pfPod
(
""
,
"10"
,
"10"
,
"100"
)
...
...
test/e2e/pre_stop.go
View file @
9a71dfe7
...
@@ -158,7 +158,7 @@ func testPreStop(c *client.Client, ns string) {
...
@@ -158,7 +158,7 @@ func testPreStop(c *client.Client, ns string) {
expectNoError
(
err
,
"validating pre-stop."
)
expectNoError
(
err
,
"validating pre-stop."
)
}
}
var
_
=
Describe
(
"PreStop"
,
func
()
{
var
_
=
Kube
Describe
(
"PreStop"
,
func
()
{
f
:=
NewDefaultFramework
(
"prestop"
)
f
:=
NewDefaultFramework
(
"prestop"
)
It
(
"should call prestop when killing a pod [Conformance]"
,
func
()
{
It
(
"should call prestop when killing a pod [Conformance]"
,
func
()
{
...
...
test/e2e/privileged.go
View file @
9a71dfe7
...
@@ -47,7 +47,7 @@ type PrivilegedPodTestConfig struct {
...
@@ -47,7 +47,7 @@ type PrivilegedPodTestConfig struct {
hostExecPod
*
api
.
Pod
hostExecPod
*
api
.
Pod
}
}
var
_
=
Describe
(
"PrivilegedPod"
,
func
()
{
var
_
=
Kube
Describe
(
"PrivilegedPod"
,
func
()
{
f
:=
NewDefaultFramework
(
"e2e-privilegedpod"
)
f
:=
NewDefaultFramework
(
"e2e-privilegedpod"
)
config
:=
&
PrivilegedPodTestConfig
{
config
:=
&
PrivilegedPodTestConfig
{
f
:
f
,
f
:
f
,
...
...
test/e2e/proxy.go
View file @
9a71dfe7
...
@@ -34,7 +34,7 @@ import (
...
@@ -34,7 +34,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"Proxy"
,
func
()
{
var
_
=
Kube
Describe
(
"Proxy"
,
func
()
{
version
:=
testapi
.
Default
.
GroupVersion
()
.
Version
version
:=
testapi
.
Default
.
GroupVersion
()
.
Version
Context
(
"version "
+
version
,
func
()
{
proxyContext
(
version
)
})
Context
(
"version "
+
version
,
func
()
{
proxyContext
(
version
)
})
})
})
...
...
test/e2e/rc.go
View file @
9a71dfe7
...
@@ -29,7 +29,7 @@ import (
...
@@ -29,7 +29,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"ReplicationController"
,
func
()
{
var
_
=
Kube
Describe
(
"ReplicationController"
,
func
()
{
framework
:=
NewDefaultFramework
(
"replication-controller"
)
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/reboot.go
View file @
9a71dfe7
...
@@ -45,7 +45,7 @@ const (
...
@@ -45,7 +45,7 @@ const (
rebootPodReadyAgainTimeout
=
5
*
time
.
Minute
rebootPodReadyAgainTimeout
=
5
*
time
.
Minute
)
)
var
_
=
Describe
(
"Reboot [Disruptive] [Feature:Reboot]"
,
func
()
{
var
_
=
Kube
Describe
(
"Reboot [Disruptive] [Feature:Reboot]"
,
func
()
{
var
f
*
Framework
var
f
*
Framework
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
...
test/e2e/replica_set.go
View file @
9a71dfe7
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
.
"github.com/onsi/gomega"
.
"github.com/onsi/gomega"
)
)
var
_
=
Describe
(
"ReplicaSet"
,
func
()
{
var
_
=
Kube
Describe
(
"ReplicaSet"
,
func
()
{
framework
:=
NewDefaultFramework
(
"replicaset"
)
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/resize_nodes.go
View file @
9a71dfe7
...
@@ -340,7 +340,7 @@ func expectNodeReadiness(isReady bool, newNode chan *api.Node) {
...
@@ -340,7 +340,7 @@ func expectNodeReadiness(isReady bool, newNode chan *api.Node) {
}
}
}
}
var
_
=
Describe
(
"Nodes [Disruptive]"
,
func
()
{
var
_
=
Kube
Describe
(
"Nodes [Disruptive]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"resize-nodes"
)
framework
:=
NewDefaultFramework
(
"resize-nodes"
)
var
systemPodsNo
int
var
systemPodsNo
int
var
c
*
client
.
Client
var
c
*
client
.
Client
...
@@ -354,7 +354,7 @@ var _ = Describe("Nodes [Disruptive]", func() {
...
@@ -354,7 +354,7 @@ var _ = Describe("Nodes [Disruptive]", func() {
})
})
// Slow issue #13323 (8 min)
// Slow issue #13323 (8 min)
Describe
(
"Resize [Slow]"
,
func
()
{
Kube
Describe
(
"Resize [Slow]"
,
func
()
{
var
skipped
bool
var
skipped
bool
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
...
@@ -448,7 +448,7 @@ var _ = Describe("Nodes [Disruptive]", func() {
...
@@ -448,7 +448,7 @@ var _ = Describe("Nodes [Disruptive]", func() {
})
})
})
})
Describe
(
"Network"
,
func
()
{
Kube
Describe
(
"Network"
,
func
()
{
Context
(
"when a node becomes unreachable"
,
func
()
{
Context
(
"when a node becomes unreachable"
,
func
()
{
BeforeEach
(
func
()
{
BeforeEach
(
func
()
{
SkipUnlessProviderIs
(
"gce"
,
"gke"
,
"aws"
)
SkipUnlessProviderIs
(
"gce"
,
"gke"
,
"aws"
)
...
...
test/e2e/resource_quota.go
View file @
9a71dfe7
...
@@ -35,7 +35,7 @@ const (
...
@@ -35,7 +35,7 @@ const (
resourceQuotaTimeout
=
30
*
time
.
Second
resourceQuotaTimeout
=
30
*
time
.
Second
)
)
var
_
=
Describe
(
"ResourceQuota"
,
func
()
{
var
_
=
Kube
Describe
(
"ResourceQuota"
,
func
()
{
f
:=
NewDefaultFramework
(
"resourcequota"
)
f
:=
NewDefaultFramework
(
"resourcequota"
)
It
(
"should create a ResourceQuota and ensure its status is promptly calculated."
,
func
()
{
It
(
"should create a ResourceQuota and ensure its status is promptly calculated."
,
func
()
{
...
...
test/e2e/restart.go
View file @
9a71dfe7
...
@@ -48,7 +48,7 @@ const (
...
@@ -48,7 +48,7 @@ const (
restartPodReadyAgainTimeout
=
5
*
time
.
Minute
restartPodReadyAgainTimeout
=
5
*
time
.
Minute
)
)
var
_
=
Describe
(
"Restart [Disruptive]"
,
func
()
{
var
_
=
Kube
Describe
(
"Restart [Disruptive]"
,
func
()
{
f
:=
NewDefaultFramework
(
"restart"
)
f
:=
NewDefaultFramework
(
"restart"
)
var
ps
*
podStore
var
ps
*
podStore
...
...
test/e2e/scheduler_predicates.go
View file @
9a71dfe7
...
@@ -140,7 +140,7 @@ func waitForStableCluster(c *client.Client) int {
...
@@ -140,7 +140,7 @@ func waitForStableCluster(c *client.Client) int {
return
len
(
scheduledPods
)
return
len
(
scheduledPods
)
}
}
var
_
=
Describe
(
"SchedulerPredicates [Serial]"
,
func
()
{
var
_
=
Kube
Describe
(
"SchedulerPredicates [Serial]"
,
func
()
{
var
c
*
client
.
Client
var
c
*
client
.
Client
var
nodeList
*
api
.
NodeList
var
nodeList
*
api
.
NodeList
var
systemPodsNo
int
var
systemPodsNo
int
...
...
test/e2e/secrets.go
View file @
9a71dfe7
...
@@ -25,7 +25,7 @@ import (
...
@@ -25,7 +25,7 @@ import (
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
)
)
var
_
=
Describe
(
"Secrets"
,
func
()
{
var
_
=
Kube
Describe
(
"Secrets"
,
func
()
{
f
:=
NewDefaultFramework
(
"secrets"
)
f
:=
NewDefaultFramework
(
"secrets"
)
It
(
"should be consumable from pods in volume [Conformance]"
,
func
()
{
It
(
"should be consumable from pods in volume [Conformance]"
,
func
()
{
...
...
test/e2e/security_context.go
View file @
9a71dfe7
...
@@ -57,7 +57,7 @@ func scTestPod(hostIPC bool, hostPID bool) *api.Pod {
...
@@ -57,7 +57,7 @@ func scTestPod(hostIPC bool, hostPID bool) *api.Pod {
return
pod
return
pod
}
}
var
_
=
Describe
(
"Security Context [Feature:SecurityContext]"
,
func
()
{
var
_
=
Kube
Describe
(
"Security Context [Feature:SecurityContext]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"security-context"
)
framework
:=
NewDefaultFramework
(
"security-context"
)
It
(
"should support pod.Spec.SecurityContext.SupplementalGroups"
,
func
()
{
It
(
"should support pod.Spec.SecurityContext.SupplementalGroups"
,
func
()
{
...
...
test/e2e/service.go
View file @
9a71dfe7
...
@@ -61,7 +61,7 @@ const loadBalancerCreateTimeout = 20 * time.Minute
...
@@ -61,7 +61,7 @@ const loadBalancerCreateTimeout = 20 * time.Minute
// This should match whatever the default/configured range is
// This should match whatever the default/configured range is
var
ServiceNodePortRange
=
utilnet
.
PortRange
{
Base
:
30000
,
Size
:
2768
}
var
ServiceNodePortRange
=
utilnet
.
PortRange
{
Base
:
30000
,
Size
:
2768
}
var
_
=
Describe
(
"Services"
,
func
()
{
var
_
=
Kube
Describe
(
"Services"
,
func
()
{
f
:=
NewDefaultFramework
(
"services"
)
f
:=
NewDefaultFramework
(
"services"
)
var
c
*
client
.
Client
var
c
*
client
.
Client
...
...
test/e2e/service_accounts.go
View file @
9a71dfe7
...
@@ -33,7 +33,7 @@ import (
...
@@ -33,7 +33,7 @@ import (
var
serviceAccountTokenNamespaceVersion
=
version
.
MustParse
(
"v1.2.0"
)
var
serviceAccountTokenNamespaceVersion
=
version
.
MustParse
(
"v1.2.0"
)
var
_
=
Describe
(
"ServiceAccounts"
,
func
()
{
var
_
=
Kube
Describe
(
"ServiceAccounts"
,
func
()
{
f
:=
NewDefaultFramework
(
"svcaccounts"
)
f
:=
NewDefaultFramework
(
"svcaccounts"
)
It
(
"should ensure a single API token exists"
,
func
()
{
It
(
"should ensure a single API token exists"
,
func
()
{
...
...
test/e2e/service_latency.go
View file @
9a71dfe7
...
@@ -39,7 +39,7 @@ func (d durations) Len() int { return len(d) }
...
@@ -39,7 +39,7 @@ func (d durations) Len() int { return len(d) }
func
(
d
durations
)
Less
(
i
,
j
int
)
bool
{
return
d
[
i
]
<
d
[
j
]
}
func
(
d
durations
)
Less
(
i
,
j
int
)
bool
{
return
d
[
i
]
<
d
[
j
]
}
func
(
d
durations
)
Swap
(
i
,
j
int
)
{
d
[
i
],
d
[
j
]
=
d
[
j
],
d
[
i
]
}
func
(
d
durations
)
Swap
(
i
,
j
int
)
{
d
[
i
],
d
[
j
]
=
d
[
j
],
d
[
i
]
}
var
_
=
Describe
(
"Service endpoints latency"
,
func
()
{
var
_
=
Kube
Describe
(
"Service endpoints latency"
,
func
()
{
f
:=
NewDefaultFramework
(
"svc-latency"
)
f
:=
NewDefaultFramework
(
"svc-latency"
)
It
(
"should not be very high [Conformance]"
,
func
()
{
It
(
"should not be very high [Conformance]"
,
func
()
{
...
...
test/e2e/serviceloadbalancers.go
View file @
9a71dfe7
...
@@ -204,7 +204,7 @@ func (s *ingManager) test(path string) error {
...
@@ -204,7 +204,7 @@ func (s *ingManager) test(path string) error {
})
})
}
}
var
_
=
Describe
(
"ServiceLoadBalancer [Feature:ServiceLoadBalancer]"
,
func
()
{
var
_
=
Kube
Describe
(
"ServiceLoadBalancer [Feature:ServiceLoadBalancer]"
,
func
()
{
// These variables are initialized after framework's beforeEach.
// These variables are initialized after framework's beforeEach.
var
ns
string
var
ns
string
var
repoRoot
string
var
repoRoot
string
...
...
test/e2e/ssh.go
View file @
9a71dfe7
...
@@ -23,7 +23,7 @@ import (
...
@@ -23,7 +23,7 @@ import (
.
"github.com/onsi/ginkgo"
.
"github.com/onsi/ginkgo"
)
)
var
_
=
Describe
(
"SSH"
,
func
()
{
var
_
=
Kube
Describe
(
"SSH"
,
func
()
{
f
:=
NewDefaultFramework
(
"ssh"
)
f
:=
NewDefaultFramework
(
"ssh"
)
...
...
test/e2e/ubernetes_lite.go
View file @
9a71dfe7
...
@@ -31,7 +31,7 @@ import (
...
@@ -31,7 +31,7 @@ import (
"k8s.io/kubernetes/pkg/util/sets"
"k8s.io/kubernetes/pkg/util/sets"
)
)
var
_
=
Describe
(
"Ubernetes Lite"
,
func
()
{
var
_
=
Kube
Describe
(
"Ubernetes Lite"
,
func
()
{
framework
:=
NewDefaultFramework
(
"ubernetes-lite"
)
framework
:=
NewDefaultFramework
(
"ubernetes-lite"
)
var
zoneCount
int
var
zoneCount
int
var
err
error
var
err
error
...
...
test/e2e/volume_provisioning.go
View file @
9a71dfe7
...
@@ -36,7 +36,7 @@ const (
...
@@ -36,7 +36,7 @@ const (
expectedSize
=
"2Gi"
expectedSize
=
"2Gi"
)
)
var
_
=
Describe
(
"Dynamic provisioning"
,
func
()
{
var
_
=
Kube
Describe
(
"Dynamic provisioning"
,
func
()
{
framework
:=
NewDefaultFramework
(
"volume-provisioning"
)
framework
:=
NewDefaultFramework
(
"volume-provisioning"
)
// filled in BeforeEach
// filled in BeforeEach
...
@@ -48,7 +48,7 @@ var _ = Describe("Dynamic provisioning", func() {
...
@@ -48,7 +48,7 @@ var _ = Describe("Dynamic provisioning", func() {
ns
=
framework
.
Namespace
.
Name
ns
=
framework
.
Namespace
.
Name
})
})
Describe
(
"DynamicProvisioner"
,
func
()
{
Kube
Describe
(
"DynamicProvisioner"
,
func
()
{
It
(
"should create and delete persistent volumes"
,
func
()
{
It
(
"should create and delete persistent volumes"
,
func
()
{
SkipUnlessProviderIs
(
"openstack"
,
"gce"
,
"aws"
)
SkipUnlessProviderIs
(
"openstack"
,
"gce"
,
"aws"
)
By
(
"creating a claim with a dynamic provisioning annotation"
)
By
(
"creating a claim with a dynamic provisioning annotation"
)
...
...
test/e2e/volumes.go
View file @
9a71dfe7
...
@@ -331,7 +331,7 @@ func deleteCinderVolume(name string) error {
...
@@ -331,7 +331,7 @@ func deleteCinderVolume(name string) error {
// These tests need privileged containers, which are disabled by default. Run
// These tests need privileged containers, which are disabled by default. Run
// the test with "go run hack/e2e.go ... --ginkgo.focus=[Feature:Volumes]"
// the test with "go run hack/e2e.go ... --ginkgo.focus=[Feature:Volumes]"
var
_
=
Describe
(
"Volumes [Feature:Volumes]"
,
func
()
{
var
_
=
Kube
Describe
(
"Volumes [Feature:Volumes]"
,
func
()
{
framework
:=
NewDefaultFramework
(
"volume"
)
framework
:=
NewDefaultFramework
(
"volume"
)
// If 'false', the test won't clear its volumes upon completion. Useful for debugging,
// If 'false', the test won't clear its volumes upon completion. Useful for debugging,
...
@@ -350,7 +350,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
...
@@ -350,7 +350,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
// NFS
// NFS
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Describe
(
"NFS"
,
func
()
{
Kube
Describe
(
"NFS"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
config
:=
VolumeTestConfig
{
config
:=
VolumeTestConfig
{
namespace
:
namespace
.
Name
,
namespace
:
namespace
.
Name
,
...
@@ -384,7 +384,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
...
@@ -384,7 +384,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
// Gluster
// Gluster
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Describe
(
"GlusterFS"
,
func
()
{
Kube
Describe
(
"GlusterFS"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
config
:=
VolumeTestConfig
{
config
:=
VolumeTestConfig
{
namespace
:
namespace
.
Name
,
namespace
:
namespace
.
Name
,
...
@@ -463,7 +463,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
...
@@ -463,7 +463,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
// are installed on all nodes!
// are installed on all nodes!
// Run the test with "go run hack/e2e.go ... --ginkgo.focus=iSCSI"
// Run the test with "go run hack/e2e.go ... --ginkgo.focus=iSCSI"
Describe
(
"iSCSI"
,
func
()
{
Kube
Describe
(
"iSCSI"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
config
:=
VolumeTestConfig
{
config
:=
VolumeTestConfig
{
namespace
:
namespace
.
Name
,
namespace
:
namespace
.
Name
,
...
@@ -505,7 +505,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
...
@@ -505,7 +505,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
// Ceph RBD
// Ceph RBD
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Describe
(
"Ceph RBD"
,
func
()
{
Kube
Describe
(
"Ceph RBD"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
config
:=
VolumeTestConfig
{
config
:=
VolumeTestConfig
{
namespace
:
namespace
.
Name
,
namespace
:
namespace
.
Name
,
...
@@ -578,7 +578,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
...
@@ -578,7 +578,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
// Ceph
// Ceph
////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////
Describe
(
"CephFS"
,
func
()
{
Kube
Describe
(
"CephFS"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
config
:=
VolumeTestConfig
{
config
:=
VolumeTestConfig
{
namespace
:
namespace
.
Name
,
namespace
:
namespace
.
Name
,
...
@@ -649,7 +649,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
...
@@ -649,7 +649,7 @@ var _ = Describe("Volumes [Feature:Volumes]", func() {
// and that the usual OpenStack authentication env. variables are set
// and that the usual OpenStack authentication env. variables are set
// (OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME at least).
// (OS_USERNAME, OS_PASSWORD, OS_TENANT_NAME at least).
Describe
(
"Cinder"
,
func
()
{
Kube
Describe
(
"Cinder"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
It
(
"should be mountable"
,
func
()
{
config
:=
VolumeTestConfig
{
config
:=
VolumeTestConfig
{
namespace
:
namespace
.
Name
,
namespace
:
namespace
.
Name
,
...
...
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