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
13726a82
Commit
13726a82
authored
Aug 01, 2017
by
xiangpengzhao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add [sig-autoscaling] prefix to autoscaling e2e tests
parent
5ce3b359
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
33 additions
and
9 deletions
+33
-9
BUILD
test/e2e/autoscaling/BUILD
+1
-0
autoscaling_timer.go
test/e2e/autoscaling/autoscaling_timer.go
+2
-2
cluster_size_autoscaling.go
test/e2e/autoscaling/cluster_size_autoscaling.go
+1
-1
dns_autoscaling.go
test/e2e/autoscaling/dns_autoscaling.go
+1
-1
framework.go
test/e2e/autoscaling/framework.go
+23
-0
horizontal_pod_autoscaling.go
test/e2e/autoscaling/horizontal_pod_autoscaling.go
+5
-5
No files found.
test/e2e/autoscaling/BUILD
View file @
13726a82
...
...
@@ -13,6 +13,7 @@ go_library(
"autoscaling_timer.go",
"cluster_size_autoscaling.go",
"dns_autoscaling.go",
"framework.go",
"horizontal_pod_autoscaling.go",
],
tags = ["automanaged"],
...
...
test/e2e/autoscaling/autoscaling_timer.go
View file @
13726a82
...
...
@@ -29,10 +29,10 @@ import (
.
"github.com/onsi/gomega"
)
var
_
=
framework
.
Kube
Describe
(
"[Feature:ClusterSizeAutoscalingScaleUp] [Slow] Autoscaling"
,
func
()
{
var
_
=
SIG
Describe
(
"[Feature:ClusterSizeAutoscalingScaleUp] [Slow] Autoscaling"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"autoscaling"
)
framework
.
Kube
Describe
(
"Autoscaling a service"
,
func
()
{
SIG
Describe
(
"Autoscaling a service"
,
func
()
{
BeforeEach
(
func
()
{
// Check if Cloud Autoscaler is enabled by trying to get its ConfigMap.
_
,
err
:=
f
.
ClientSet
.
CoreV1
()
.
ConfigMaps
(
"kube-system"
)
.
Get
(
"cluster-autoscaler-status"
,
metav1
.
GetOptions
{})
...
...
test/e2e/autoscaling/cluster_size_autoscaling.go
View file @
13726a82
...
...
@@ -75,7 +75,7 @@ const (
caOngoingScaleUpStatus
=
"InProgress"
)
var
_
=
framework
.
Kube
Describe
(
"Cluster size autoscaling [Slow]"
,
func
()
{
var
_
=
SIG
Describe
(
"Cluster size autoscaling [Slow]"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"autoscaling"
)
var
c
clientset
.
Interface
var
nodeCount
int
...
...
test/e2e/autoscaling/dns_autoscaling.go
View file @
13726a82
...
...
@@ -41,7 +41,7 @@ const (
DNSAutoscalerLabelName
=
"kube-dns-autoscaler"
)
var
_
=
framework
.
Kube
Describe
(
"DNS horizontal autoscaling"
,
func
()
{
var
_
=
SIG
Describe
(
"DNS horizontal autoscaling"
,
func
()
{
f
:=
framework
.
NewDefaultFramework
(
"dns-autoscaling"
)
var
c
clientset
.
Interface
var
previousParams
map
[
string
]
string
...
...
test/e2e/autoscaling/framework.go
0 → 100644
View file @
13726a82
/*
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
autoscaling
import
"github.com/onsi/ginkgo"
func
SIGDescribe
(
text
string
,
body
func
())
bool
{
return
ginkgo
.
Describe
(
"[sig-autoscaling] "
+
text
,
body
)
}
test/e2e/autoscaling/horizontal_pod_autoscaling.go
View file @
13726a82
...
...
@@ -27,14 +27,14 @@ import (
// These tests don't seem to be running properly in parallel: issue: #20338.
//
var
_
=
framework
.
Kube
Describe
(
"[HPA] Horizontal pod autoscaling (scale resource: CPU)"
,
func
()
{
var
_
=
SIG
Describe
(
"[HPA] Horizontal pod autoscaling (scale resource: CPU)"
,
func
()
{
var
rc
*
common
.
ResourceConsumer
f
:=
framework
.
NewDefaultFramework
(
"horizontal-pod-autoscaling"
)
titleUp
:=
"Should scale from 1 pod to 3 pods and from 3 to 5"
titleDown
:=
"Should scale from 5 pods to 3 pods and from 3 to 1"
framework
.
Kube
Describe
(
"[Serial] [Slow] Deployment"
,
func
()
{
SIG
Describe
(
"[Serial] [Slow] Deployment"
,
func
()
{
// CPU tests via deployments
It
(
titleUp
,
func
()
{
scaleUp
(
"test-deployment"
,
common
.
KindDeployment
,
false
,
rc
,
f
)
...
...
@@ -44,7 +44,7 @@ var _ = framework.KubeDescribe("[HPA] Horizontal pod autoscaling (scale resource
})
})
framework
.
Kube
Describe
(
"[Serial] [Slow] ReplicaSet"
,
func
()
{
SIG
Describe
(
"[Serial] [Slow] ReplicaSet"
,
func
()
{
// CPU tests via deployments
It
(
titleUp
,
func
()
{
scaleUp
(
"rs"
,
common
.
KindReplicaSet
,
false
,
rc
,
f
)
...
...
@@ -55,7 +55,7 @@ var _ = framework.KubeDescribe("[HPA] Horizontal pod autoscaling (scale resource
})
// These tests take ~20 minutes each.
framework
.
Kube
Describe
(
"[Serial] [Slow] ReplicationController"
,
func
()
{
SIG
Describe
(
"[Serial] [Slow] ReplicationController"
,
func
()
{
// CPU tests via replication controllers
It
(
titleUp
+
" and verify decision stability"
,
func
()
{
scaleUp
(
"rc"
,
common
.
KindRC
,
true
,
rc
,
f
)
...
...
@@ -65,7 +65,7 @@ var _ = framework.KubeDescribe("[HPA] Horizontal pod autoscaling (scale resource
})
})
framework
.
Kube
Describe
(
"ReplicationController light"
,
func
()
{
SIG
Describe
(
"ReplicationController light"
,
func
()
{
It
(
"Should scale from 1 pod to 2 pods"
,
func
()
{
scaleTest
:=
&
HPAScaleTest
{
initPods
:
1
,
...
...
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