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
bdac1981
Commit
bdac1981
authored
Nov 05, 2015
by
Jeff Lowdermilk
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #16895 from jlowdermilk/hpa-tests
Run autoscaling suite in gce-disruptive-1.1
parents
5156b93a
721eb6e7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
3 deletions
+26
-3
e2e.sh
hack/jenkins/e2e.sh
+24
-1
horizontal_pod_autoscaling.go
test/e2e/horizontal_pod_autoscaling.go
+2
-2
No files found.
hack/jenkins/e2e.sh
View file @
bdac1981
...
...
@@ -95,7 +95,6 @@ fi
# Specialized to skip when running reboot tests.
REBOOT_SKIP_TESTS
=(
"Autoscaling
\s
Suite"
"Skipped"
"Restart
\s
should
\s
restart
\s
all
\s
nodes"
"Example"
...
...
@@ -104,6 +103,7 @@ REBOOT_SKIP_TESTS=(
# Specialized tests which should be skipped by default for projects.
GCE_DEFAULT_SKIP_TESTS
=(
"
${
REBOOT_SKIP_TESTS
[@]
}
"
"Autoscaling
\s
Suite"
"Reboot"
"ServiceLoadBalancer"
)
...
...
@@ -136,6 +136,7 @@ AWS_REQUIRED_SKIP_TESTS=(
# Tests which kills or restarts components and/or nodes.
DISRUPTIVE_TESTS
=(
"Autoscaling
\s
Suite"
"DaemonRestart"
"Etcd
\s
failure"
"Nodes
\s
Resize"
...
...
@@ -160,6 +161,7 @@ GCE_FLAKY_TESTS=(
# comments below, and for poorly implemented tests, please quote the
# issue number tracking speed improvements.
GCE_SLOW_TESTS
=(
"Autoscaling
\s
Suite"
# Before enabling this loadbalancer test in any other test list you must
# make sure the associated project has enough quota. At the time of this
# writing a GCE project is allowed 3 backend services by default. This
...
...
@@ -485,6 +487,27 @@ case ${JOB_NAME} in
:
${
ENABLE_DEPLOYMENTS
:
=true
}
;;
# Runs "disruptive" tests on GCE on the release candidate branch,
# sequentially, against the latest 1.1 ci release.
kubernetes-e2e-gce-disruptive-1.1
)
:
${
E2E_CLUSTER_NAME
:
=
"jenkins-gce-e2e-disruptive-1.1"
}
:
${
E2E_DOWN
:
=
"false"
}
:
${
E2E_NETWORK
:
=
"gce-e2e-disruptive-1-1"
}
:
${
GINKGO_TEST_ARGS
:
=
"--ginkgo.skip=
$(
join_regex_allow_empty
\
${
REBOOT_SKIP_TESTS
[@]
:+
${
REBOOT_SKIP_TESTS
[@]
}}
\
)
--ginkgo.focus=
$(
join_regex_no_empty
\
${
DISRUPTIVE_TESTS
[@]
:+
${
DISRUPTIVE_TESTS
[@]
}}
\
"GCE
\s
L7
\s
LoadBalancer
\s
Controller"
)
"
}
:
${
JENKINS_PUBLISHED_VERSION
:
=
"ci/latest-1.1"
}
:
${
KUBE_GCE_INSTANCE_PREFIX
=
"e2e-gce-disruptive-1-1"
}
:
${
KUBE_GCS_STAGING_PATH_SUFFIX
:
=
"disruptive-1.1"
}
# TODO: move into its own project
:
${
PROJECT
:
=
"kubernetes-jenkins"
}
:
${
ENABLE_DEPLOYMENTS
:
=true
}
:
${
ENABLE_DAEMONSETS
:
=true
}
;;
kubernetes-e2e-gke-subnet
)
:
${
DOGFOOD_GCLOUD
:
=
"true"
}
:
${
E2E_CLUSTER_NAME
:
=
"jkns-gke-subnet"
}
...
...
test/e2e/horizontal_pod_autoscaling.go
View file @
bdac1981
...
...
@@ -36,7 +36,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
f
:=
NewFramework
(
"horizontal-pod-autoscaling"
)
// CPU tests
It
(
"[
Skipped][
Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)"
,
func
()
{
It
(
"[Autoscaling Suite] should scale from 1 pod to 3 pods and from 3 to 5 (scale resource: CPU)"
,
func
()
{
rc
=
NewDynamicResourceConsumer
(
"rc"
,
1
,
250
,
0
,
500
,
100
,
f
)
defer
rc
.
CleanUp
()
createCPUHorizontalPodAutoscaler
(
rc
,
20
)
...
...
@@ -46,7 +46,7 @@ var _ = Describe("Horizontal pod autoscaling", func() {
rc
.
WaitForReplicas
(
5
)
})
It
(
"[
Skipped][
Autoscaling Suite] should scale from 5 pods to 3 pods and from 3 to 1 (scale resource: CPU)"
,
func
()
{
It
(
"[Autoscaling Suite] should scale from 5 pods to 3 pods and from 3 to 1 (scale resource: CPU)"
,
func
()
{
rc
=
NewDynamicResourceConsumer
(
"rc"
,
5
,
400
,
0
,
500
,
100
,
f
)
defer
rc
.
CleanUp
()
createCPUHorizontalPodAutoscaler
(
rc
,
30
)
...
...
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