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
68dec277
Commit
68dec277
authored
Feb 18, 2016
by
nikhiljindal
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adding some debug messages on test failure
parent
d8c493a2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
limit_range.go
test/e2e/limit_range.go
+10
-2
No files found.
test/e2e/limit_range.go
View file @
68dec277
...
...
@@ -61,7 +61,11 @@ var _ = Describe("LimitRange", func() {
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
for
i
:=
range
pod
.
Spec
.
Containers
{
err
=
equalResourceRequirement
(
expected
,
pod
.
Spec
.
Containers
[
i
]
.
Resources
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
if
err
!=
nil
{
// Print the pod to help in debugging.
Logf
(
"Pod %+v does not have the expected requirements"
,
pod
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
}
}
By
(
"Creating a Pod with partial resource requirements"
)
...
...
@@ -78,7 +82,11 @@ var _ = Describe("LimitRange", func() {
expected
=
api
.
ResourceRequirements
{
Requests
:
getResourceList
(
"300m"
,
"150Mi"
),
Limits
:
getResourceList
(
"300m"
,
"500Mi"
)}
for
i
:=
range
pod
.
Spec
.
Containers
{
err
=
equalResourceRequirement
(
expected
,
pod
.
Spec
.
Containers
[
i
]
.
Resources
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
if
err
!=
nil
{
// Print the pod to help in debugging.
Logf
(
"Pod %+v does not have the expected requirements"
,
pod
)
Expect
(
err
)
.
NotTo
(
HaveOccurred
())
}
}
By
(
"Failing to create a Pod with less than min resources"
)
...
...
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