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
c75e344b
Commit
c75e344b
authored
Feb 08, 2016
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #20828 from pwittrock/metricse2etest
Auto commit by PR queue bot
parents
dada2a18
6cb09700
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
9 deletions
+5
-9
kubelet_test.go
test/e2e_node/kubelet_test.go
+2
-6
run_e2e.go
test/e2e_node/runner/run_e2e.go
+3
-3
No files found.
test/e2e_node/kubelet_test.go
View file @
c75e344b
...
@@ -184,13 +184,9 @@ var _ = Describe("Kubelet", func() {
...
@@ -184,13 +184,9 @@ var _ = Describe("Kubelet", func() {
Expect
(
vs
.
CapacityBytes
)
.
NotTo
(
BeZero
())
Expect
(
vs
.
CapacityBytes
)
.
NotTo
(
BeZero
())
Expect
(
vs
.
AvailableBytes
)
.
NotTo
(
BeZero
())
Expect
(
vs
.
AvailableBytes
)
.
NotTo
(
BeZero
())
Expect
(
vs
.
UsedBytes
)
.
NotTo
(
BeZero
())
Expect
(
vs
.
UsedBytes
)
.
NotTo
(
BeZero
())
if
strings
.
HasPrefix
(
vs
.
Name
,
"default-token-"
)
{
volumeNames
=
append
(
volumeNames
,
vs
.
Name
)
volumeNames
=
append
(
volumeNames
,
"default-token-"
)
}
else
{
volumeNames
=
append
(
volumeNames
,
vs
.
Name
)
}
}
}
Expect
(
volumeNames
)
.
To
(
ConsistOf
(
"
default-token-"
,
"
test-empty-dir"
))
Expect
(
volumeNames
)
.
To
(
ConsistOf
(
"test-empty-dir"
))
// fs usage (not for system containers)
// fs usage (not for system containers)
Expect
(
container
.
Rootfs
)
.
NotTo
(
BeNil
(),
spew
.
Sdump
(
container
))
Expect
(
container
.
Rootfs
)
.
NotTo
(
BeNil
(),
spew
.
Sdump
(
container
))
...
...
test/e2e_node/runner/run_e2e.go
View file @
c75e344b
...
@@ -52,7 +52,7 @@ var kubeOutputRelPath = flag.String("k8s-build-output", "_output/local/bin/linux
...
@@ -52,7 +52,7 @@ var kubeOutputRelPath = flag.String("k8s-build-output", "_output/local/bin/linux
var
kubeRoot
=
""
var
kubeRoot
=
""
const
buildScriptRelPath
=
"hack/build-go.sh"
const
buildScriptRelPath
=
"hack/build-go.sh"
const
ginkoTestRelPath
=
"test/e2e_node"
const
gink
g
oTestRelPath
=
"test/e2e_node"
const
healthyTimeoutDuration
=
time
.
Minute
*
3
const
healthyTimeoutDuration
=
time
.
Minute
*
3
func
main
()
{
func
main
()
{
...
@@ -158,9 +158,9 @@ func runTests(fullhost string) ([]byte, error) {
...
@@ -158,9 +158,9 @@ func runTests(fullhost string) ([]byte, error) {
glog
.
Infof
(
"Kubelet host %s tunnel running on port %s"
,
host
,
ah
.
LPort
)
glog
.
Infof
(
"Kubelet host %s tunnel running on port %s"
,
host
,
ah
.
LPort
)
u
.
Wait
()
u
.
Wait
()
glog
.
Infof
(
"Running ginkgo tests against host %s"
,
host
)
glog
.
Infof
(
"Running ginkgo tests against host %s"
,
host
)
gink
oTests
:=
filepath
.
Join
(
kubeRoot
,
gink
oTestRelPath
)
gink
goTests
:=
filepath
.
Join
(
kubeRoot
,
ginkg
oTestRelPath
)
return
exec
.
Command
(
return
exec
.
Command
(
"ginkgo"
,
ginkoTests
,
"--"
,
"ginkgo"
,
gink
g
oTests
,
"--"
,
"--kubelet-address"
,
fmt
.
Sprintf
(
"http://127.0.0.1:%s"
,
kh
.
LPort
),
"--kubelet-address"
,
fmt
.
Sprintf
(
"http://127.0.0.1:%s"
,
kh
.
LPort
),
"--api-server-address"
,
fmt
.
Sprintf
(
"http://127.0.0.1:%s"
,
ah
.
LPort
),
"--api-server-address"
,
fmt
.
Sprintf
(
"http://127.0.0.1:%s"
,
ah
.
LPort
),
"--node-name"
,
fullhost
,
"--node-name"
,
fullhost
,
...
...
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