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
30bd5729
Unverified
Commit
30bd5729
authored
Apr 08, 2019
by
Kubernetes Prow Robot
Committed by
GitHub
Apr 08, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #76251 from SataQiu/fix-golint-framework-20190408
Fix golint failures of test/e2e/framework/framework.go
parents
386d323f
14058190
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
9 deletions
+9
-9
framework.go
test/e2e/framework/framework.go
+6
-6
proxy.go
test/e2e/network/proxy.go
+1
-1
density.go
test/e2e/scalability/density.go
+1
-1
load.go
test/e2e/scalability/load.go
+1
-1
No files found.
test/e2e/framework/framework.go
View file @
30bd5729
...
...
@@ -105,7 +105,7 @@ type Framework struct {
cleanupHandle
CleanupActionHandle
// configuration for framework's client
Options
Framework
Options
Options
Options
// Place where various additional data is stored during test run to be printed to ReportDir,
// or stdout if ReportDir is not set once test ends.
...
...
@@ -122,8 +122,8 @@ type TestDataSummary interface {
PrintJSON
()
string
}
//
Framework
Options is a struct for managing test framework options.
type
Framework
Options
struct
{
// Options is a struct for managing test framework options.
type
Options
struct
{
ClientQPS
float32
ClientBurst
int
GroupVersion
*
schema
.
GroupVersion
...
...
@@ -132,7 +132,7 @@ type FrameworkOptions struct {
// NewDefaultFramework makes a new framework and sets up a BeforeEach/AfterEach for
// you (you can write additional before/after each functions).
func
NewDefaultFramework
(
baseName
string
)
*
Framework
{
options
:=
Framework
Options
{
options
:=
Options
{
ClientQPS
:
20
,
ClientBurst
:
50
,
}
...
...
@@ -140,7 +140,7 @@ func NewDefaultFramework(baseName string) *Framework {
}
// NewFramework creates a test framework.
func
NewFramework
(
baseName
string
,
options
Framework
Options
,
client
clientset
.
Interface
)
*
Framework
{
func
NewFramework
(
baseName
string
,
options
Options
,
client
clientset
.
Interface
)
*
Framework
{
f
:=
&
Framework
{
BaseName
:
baseName
,
AddonResourceConstraints
:
make
(
map
[
string
]
ResourceConstraint
),
...
...
@@ -667,7 +667,7 @@ func kubectlExecWithRetry(namespace string, podName, containerName string, args
return
stdOutBytes
,
stdErrBytes
,
err
}
err
:=
fmt
.
Errorf
(
"Failed: kubectl exec failed %d times with
\"
i/o timeout
\"
. Giving up
.
"
,
maxKubectlExecRetries
)
err
:=
fmt
.
Errorf
(
"Failed: kubectl exec failed %d times with
\"
i/o timeout
\"
. Giving up"
,
maxKubectlExecRetries
)
return
nil
,
nil
,
err
}
...
...
test/e2e/network/proxy.go
View file @
30bd5729
...
...
@@ -54,7 +54,7 @@ const (
var
_
=
SIGDescribe
(
"Proxy"
,
func
()
{
version
:=
"v1"
Context
(
"version "
+
version
,
func
()
{
options
:=
framework
.
Framework
Options
{
options
:=
framework
.
Options
{
ClientQPS
:
-
1.0
,
}
f
:=
framework
.
NewFramework
(
"proxy"
,
options
,
nil
)
...
...
test/e2e/scalability/density.go
View file @
30bd5729
...
...
@@ -475,7 +475,7 @@ var _ = SIGDescribe("Density", func() {
Expect
(
missingMeasurements
<=
MaxMissingPodStartupMeasurements
)
.
To
(
Equal
(
true
))
})
options
:=
framework
.
Framework
Options
{
options
:=
framework
.
Options
{
ClientQPS
:
50.0
,
ClientBurst
:
100
,
}
...
...
test/e2e/scalability/load.go
View file @
30bd5729
...
...
@@ -133,7 +133,7 @@ var _ = SIGDescribe("Load capacity", func() {
// Explicitly put here, to delete namespace at the end of the test
// (after measuring latency metrics, etc.).
options
:=
framework
.
Framework
Options
{
options
:=
framework
.
Options
{
ClientQPS
:
float32
(
math
.
Max
(
50.0
,
float64
(
2
*
throughput
))),
ClientBurst
:
int
(
math
.
Max
(
100.0
,
float64
(
4
*
throughput
))),
}
...
...
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