Merge pull request #56268 from yanxuean/miss-fmt-args

Automatic merge from submit-queue (batch tested with PRs 56217, 56268, 56263, 56328, 56200). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

missing format args in apiserver/pkg/endpoints

Signed-off-by: yanxuean <yan.xuean@zte.com.cn>

**What this PR does / why we need it**:
missing format args in apiserver/pkg/endpoints

**Which issue(s) this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close the issue(s) when PR gets merged)*:
Fixes #

**Special notes for your reviewer**:

**Release note**:
```release-note
NONE
```
This commit is contained in:
Kubernetes Submit Queue 2017-12-14 23:37:43 -08:00 committed by GitHub
commit 5aa03d978d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1958,11 +1958,11 @@ func TestGetTable(t *testing.T) {
}
obj, _, err := extractBodyObject(resp, unstructured.UnstructuredJSONScheme)
if err != nil {
t.Fatalf("%d: unexpected body read error: %v", err)
t.Fatalf("%d: unexpected body read error: %v", i, err)
}
gvk := schema.GroupVersionKind{Version: "v1", Kind: "Status"}
if obj.GetObjectKind().GroupVersionKind() != gvk {
t.Fatalf("%d: unexpected error body: %#v", obj)
t.Fatalf("%d: unexpected error body: %#v", i, obj)
}
return
}
@ -2083,12 +2083,12 @@ func TestGetPartialObjectMetadata(t *testing.T) {
}
obj, _, err := extractBodyObject(resp, unstructured.UnstructuredJSONScheme)
if err != nil {
t.Errorf("%d: unexpected body read error: %v", err)
t.Errorf("%d: unexpected body read error: %v", i, err)
continue
}
gvk := schema.GroupVersionKind{Version: "v1", Kind: "Status"}
if obj.GetObjectKind().GroupVersionKind() != gvk {
t.Errorf("%d: unexpected error body: %#v", obj)
t.Errorf("%d: unexpected error body: %#v", i, obj)
}
continue
}