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
a82dd05b
Commit
a82dd05b
authored
Mar 12, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5338 from erictune/integ_test_typo
Fix log messages and var names in integr test
parents
d9249a26
cf22810f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
integration.go
cmd/integration/integration.go
+10
-10
No files found.
cmd/integration/integration.go
View file @
a82dd05b
...
...
@@ -763,29 +763,29 @@ func main() {
}
wg
.
Wait
()
// Check that kubelet tried to make the
pod
s.
// Check that kubelet tried to make the
container
s.
// Using a set to list unique creation attempts. Our fake is
// really stupid, so kubelet tries to create these multiple times.
created
Pod
s
:=
util
.
StringSet
{}
created
Cont
s
:=
util
.
StringSet
{}
for
_
,
p
:=
range
fakeDocker1
.
Created
{
// The last 8 characters are random, so slice them off.
if
n
:=
len
(
p
);
n
>
8
{
created
Pod
s
.
Insert
(
p
[
:
n
-
8
])
created
Cont
s
.
Insert
(
p
[
:
n
-
8
])
}
}
for
_
,
p
:=
range
fakeDocker2
.
Created
{
// The last 8 characters are random, so slice them off.
if
n
:=
len
(
p
);
n
>
8
{
created
Pod
s
.
Insert
(
p
[
:
n
-
8
])
created
Cont
s
.
Insert
(
p
[
:
n
-
8
])
}
}
// We expect 9: 2
pod infra containers + 2 pod
s from the replication controller +
// 1
pod infra container + 2 pod
s from the URL +
// 1
pod infra container + 1 pod
from the service test.
if
len
(
created
Pod
s
)
!=
9
{
glog
.
Fatalf
(
"Expected 9
pods; got %v
\n\n
list of created pods:
\n\n
%#v
\n\n
Docker 1 Created:
\n\n
%#v
\n\n
Docker 2 Created:
\n\n
%#v
\n\n
"
,
len
(
createdPods
),
createdPod
s
.
List
(),
fakeDocker1
.
Created
,
fakeDocker2
.
Created
)
// We expect 9: 2
infra containers + 2 container
s from the replication controller +
// 1
infra container + 2 container
s from the URL +
// 1
infra container + 1 container
from the service test.
if
len
(
created
Cont
s
)
!=
9
{
glog
.
Fatalf
(
"Expected 9
containers; got %v
\n\n
list of created containers:
\n\n
%#v
\n\n
Docker 1 Created:
\n\n
%#v
\n\n
Docker 2 Created:
\n\n
%#v
\n\n
"
,
len
(
createdConts
),
createdCont
s
.
List
(),
fakeDocker1
.
Created
,
fakeDocker2
.
Created
)
}
glog
.
Infof
(
"OK - found created
pods: %#v"
,
createdPod
s
.
List
())
glog
.
Infof
(
"OK - found created
containers: %#v"
,
createdCont
s
.
List
())
}
// ServeCachedManifestFile serves a file for kubelet to read.
...
...
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