Update client library to react to changes in Decoding

This commit is contained in:
Clayton Coleman
2015-12-21 00:32:52 -05:00
parent 24a7919002
commit efe88e0818
20 changed files with 65 additions and 88 deletions

View File

@@ -26,8 +26,8 @@ import (
)
func TestNewClient(t *testing.T) {
o := NewObjects(api.Scheme, api.Scheme)
if err := AddObjectsFromPath("../../../../examples/guestbook/frontend-service.yaml", o, api.Scheme); err != nil {
o := NewObjects(api.Scheme, api.Codecs.UniversalDecoder())
if err := AddObjectsFromPath("../../../../examples/guestbook/frontend-service.yaml", o, api.Codecs.UniversalDecoder()); err != nil {
t.Fatal(err)
}
client := &Fake{}
@@ -52,7 +52,7 @@ func TestNewClient(t *testing.T) {
}
func TestErrors(t *testing.T) {
o := NewObjects(api.Scheme, api.Scheme)
o := NewObjects(api.Scheme, api.Codecs.UniversalDecoder())
o.Add(&api.List{
Items: []runtime.Object{
// This first call to List will return this error