Rename runtime.DefaultScheme to latest.Codec for ease of readability

This commit is contained in:
Clayton Coleman
2014-09-16 16:19:35 -04:00
parent fe614aeda2
commit 154a91cd33
8 changed files with 57 additions and 57 deletions

View File

@@ -113,7 +113,7 @@ func TestPollMinions(t *testing.T) {
ml := &api.MinionList{Items: item.minions}
handler := util.FakeHandler{
StatusCode: 200,
ResponseBody: runtime.DefaultScheme.EncodeOrDie(ml),
ResponseBody: latest.Codec.EncodeOrDie(ml),
T: t,
}
mux := http.NewServeMux()
@@ -140,7 +140,7 @@ func TestDefaultErrorFunc(t *testing.T) {
testPod := &api.Pod{JSONBase: api.JSONBase{ID: "foo"}}
handler := util.FakeHandler{
StatusCode: 200,
ResponseBody: runtime.DefaultScheme.EncodeOrDie(testPod),
ResponseBody: latest.Codec.EncodeOrDie(testPod),
T: t,
}
mux := http.NewServeMux()
@@ -259,7 +259,7 @@ func TestBind(t *testing.T) {
t.Errorf("Unexpected error: %v", err)
continue
}
expectedBody := runtime.DefaultScheme.EncodeOrDie(item.binding)
expectedBody := latest.Codec.EncodeOrDie(item.binding)
handler.ValidateRequest(t, "/api/v1beta1/bindings", "POST", &expectedBody)
}
}