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
8d6e32d3
Commit
8d6e32d3
authored
May 11, 2015
by
Victor Marmol
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #8080 from yujuhong/disable_test
Temporarily disable the static pod test in integration.go
parents
14654754
2adfb489
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
9 deletions
+5
-9
integration.go
cmd/integration/integration.go
+5
-9
No files found.
cmd/integration/integration.go
View file @
8d6e32d3
...
...
@@ -348,6 +348,7 @@ func podRunning(c *client.Client, podNamespace string, podName string) wait.Cond
}
}
// runStaticPodTest is disabled until #6651 is resolved.
func
runStaticPodTest
(
c
*
client
.
Client
,
configFilePath
string
)
{
var
testCases
=
[]
struct
{
desc
string
...
...
@@ -976,7 +977,7 @@ func main() {
firstManifestURL
:=
ServeCachedManifestFile
(
testPodSpecFile
)
secondManifestURL
:=
ServeCachedManifestFile
(
testManifestFile
)
apiServerURL
,
configFilePath
:=
startComponents
(
firstManifestURL
,
secondManifestURL
,
apiVersion
)
apiServerURL
,
_
:=
startComponents
(
firstManifestURL
,
secondManifestURL
,
apiVersion
)
// Ok. we're good to go.
glog
.
Infof
(
"API Server started on %s"
,
apiServerURL
)
...
...
@@ -997,9 +998,6 @@ func main() {
runSelfLinkTestOnNamespace
(
c
,
api
.
NamespaceDefault
)
runSelfLinkTestOnNamespace
(
c
,
"other"
)
},
func
(
c
*
client
.
Client
)
{
runStaticPodTest
(
c
,
configFilePath
)
},
}
// Only run at most maxConcurrency tests in parallel.
...
...
@@ -1043,12 +1041,10 @@ func main() {
// 1 pod infra container + 2 containers from the URL on first Kubelet +
// 1 pod infra container + 2 containers from the URL on second Kubelet +
// 1 pod infra container + 1 container from the service test.
// In addition, runStaticPodTest creates 2 pod infra containers +
// 2 pod containers from the file (1 for manifest and 1 for spec)
// The total number of container created is 13
// The total number of container created is 9
if
len
(
createdConts
)
!=
1
6
{
glog
.
Fatalf
(
"Expected 1
6
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
),
createdConts
.
List
(),
fakeDocker1
.
Created
,
fakeDocker2
.
Created
)
if
len
(
createdConts
)
!=
1
2
{
glog
.
Fatalf
(
"Expected 1
2
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
),
createdConts
.
List
(),
fakeDocker1
.
Created
,
fakeDocker2
.
Created
)
}
glog
.
Infof
(
"OK - found created containers: %#v"
,
createdConts
.
List
())
...
...
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