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
75258b27
Commit
75258b27
authored
Aug 10, 2017
by
Di Xu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update testcase err msg
parent
fc0bdb56
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
validation_test.go
pkg/api/validation/validation_test.go
+1
-1
pods_test.go
pkg/quota/evaluator/core/pods_test.go
+2
-2
No files found.
pkg/api/validation/validation_test.go
View file @
75258b27
...
@@ -5060,7 +5060,7 @@ func TestValidatePod(t *testing.T) {
...
@@ -5060,7 +5060,7 @@ func TestValidatePod(t *testing.T) {
},
},
},
},
"invalid opaque integer resource requirement: request must be <= limit"
:
{
"invalid opaque integer resource requirement: request must be <= limit"
:
{
expectedError
:
"must be
greater
than or equal to pod.alpha.kubernetes.io/opaque-int-resource-A"
,
expectedError
:
"must be
less
than or equal to pod.alpha.kubernetes.io/opaque-int-resource-A"
,
spec
:
api
.
Pod
{
spec
:
api
.
Pod
{
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"123"
,
Namespace
:
"ns"
},
ObjectMeta
:
metav1
.
ObjectMeta
{
Name
:
"123"
,
Namespace
:
"ns"
},
Spec
:
api
.
PodSpec
{
Spec
:
api
.
PodSpec
{
...
...
pkg/quota/evaluator/core/pods_test.go
View file @
75258b27
...
@@ -42,7 +42,7 @@ func TestPodConstraintsFunc(t *testing.T) {
...
@@ -42,7 +42,7 @@ func TestPodConstraintsFunc(t *testing.T) {
}},
}},
},
},
},
},
err
:
`spec.initContainers[0].resources.
limits: Invalid value: "1m": must be greater than or equal to cpu reques
t`
,
err
:
`spec.initContainers[0].resources.
requests: Invalid value: "2m": must be less than or equal to cpu limi
t`
,
},
},
"container resource invalid"
:
{
"container resource invalid"
:
{
pod
:
&
api
.
Pod
{
pod
:
&
api
.
Pod
{
...
@@ -55,7 +55,7 @@ func TestPodConstraintsFunc(t *testing.T) {
...
@@ -55,7 +55,7 @@ func TestPodConstraintsFunc(t *testing.T) {
}},
}},
},
},
},
},
err
:
`spec.containers[0].resources.
limits: Invalid value: "1m": must be greater than or equal to cpu reques
t`
,
err
:
`spec.containers[0].resources.
requests: Invalid value: "2m": must be less than or equal to cpu limi
t`
,
},
},
"init container resource missing"
:
{
"init container resource missing"
:
{
pod
:
&
api
.
Pod
{
pod
:
&
api
.
Pod
{
...
...
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