mirror of
https://github.com/k3s-io/kubernetes.git
synced 2026-01-05 15:37:24 +00:00
Update client library to react to changes in Decoding
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user