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
235df842
Commit
235df842
authored
Nov 24, 2017
by
yuexiao-wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrong number of args in apiserver/pkg
Signed-off-by:
yuexiao-wang
<
wang.yuexiao@zte.com.cn
>
parent
d20b1569
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
resttest.go
...c/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go
+2
-2
compression_test.go
...c/k8s.io/apiserver/pkg/server/filters/compression_test.go
+1
-1
No files found.
staging/src/k8s.io/apiserver/pkg/registry/rest/resttest/resttest.go
View file @
235df842
...
@@ -1321,7 +1321,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc
...
@@ -1321,7 +1321,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc
t
.
Errorf
(
"column %d has unexpected format: %q with type %q"
,
j
,
column
.
Format
,
column
.
Type
)
t
.
Errorf
(
"column %d has unexpected format: %q with type %q"
,
j
,
column
.
Format
,
column
.
Type
)
}
}
if
column
.
Priority
<
0
||
column
.
Priority
>
2
{
if
column
.
Priority
<
0
||
column
.
Priority
>
2
{
t
.
Errorf
(
"column %d has unexpected priority"
,
j
,
column
.
Priority
)
t
.
Errorf
(
"column %d has unexpected priority
: %q
"
,
j
,
column
.
Priority
)
}
}
if
len
(
column
.
Description
)
==
0
{
if
len
(
column
.
Description
)
==
0
{
t
.
Errorf
(
"column %d has no description"
,
j
)
t
.
Errorf
(
"column %d has no description"
,
j
)
...
@@ -1332,7 +1332,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc
...
@@ -1332,7 +1332,7 @@ func (t *Tester) testListTableConversion(obj runtime.Object, assignFn AssignFunc
}
}
for
i
,
row
:=
range
table
.
Rows
{
for
i
,
row
:=
range
table
.
Rows
{
if
len
(
row
.
Cells
)
!=
len
(
table
.
ColumnDefinitions
)
{
if
len
(
row
.
Cells
)
!=
len
(
table
.
ColumnDefinitions
)
{
t
.
Errorf
(
"row %d did not have the correct number of cells: %d in %v"
,
len
(
table
.
ColumnDefinitions
),
row
.
Cells
)
t
.
Errorf
(
"row %d did not have the correct number of cells: %d in %v"
,
i
,
len
(
table
.
ColumnDefinitions
),
row
.
Cells
)
}
}
for
j
,
cell
:=
range
row
.
Cells
{
for
j
,
cell
:=
range
row
.
Cells
{
// do not add to this test without discussion - may break clients
// do not add to this test without discussion - may break clients
...
...
staging/src/k8s.io/apiserver/pkg/server/filters/compression_test.go
View file @
235df842
...
@@ -94,7 +94,7 @@ func TestCompression(t *testing.T) {
...
@@ -94,7 +94,7 @@ func TestCompression(t *testing.T) {
}
}
body
,
err
:=
ioutil
.
ReadAll
(
reader
)
body
,
err
:=
ioutil
.
ReadAll
(
reader
)
if
err
!=
nil
{
if
err
!=
nil
{
t
.
Fatal
(
"unexpected error: %v"
,
err
)
t
.
Fatal
f
(
"unexpected error: %v"
,
err
)
}
}
if
!
bytes
.
Equal
(
body
,
responseData
)
{
if
!
bytes
.
Equal
(
body
,
responseData
)
{
t
.
Fatalf
(
"Expected response body %s to equal %s"
,
body
,
responseData
)
t
.
Fatalf
(
"Expected response body %s to equal %s"
,
body
,
responseData
)
...
...
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