Rename RawJSON to Raw in runtime.Unknown and add ContentType & ContentEncoding.

This commit is contained in:
Wojciech Tyczynski
2016-03-16 09:03:33 +01:00
parent 71a3b91ac1
commit 218d3e5923
15 changed files with 79 additions and 34 deletions

View File

@@ -180,7 +180,8 @@ func FuzzerFor(t *testing.T, version unversioned.GroupVersion, src rand.Source)
if true { //c.RandBool() {
*j = &runtime.Unknown{
// We do not set TypeMeta here because it is not carried through a round trip
RawJSON: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
Raw: []byte(`{"apiVersion":"unknown.group/unknown","kind":"Something","someKey":"someValue"}`),
ContentType: runtime.ContentTypeJSON,
}
} else {
types := []runtime.Object{&api.Pod{}, &api.ReplicationController{}}