mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-01 18:58:18 +00:00
Handle streaming serializers more consistently
Add tests to watch behavior in both protocols (http and websocket) against all 3 media types. Adopt the `application/vnd.kubernetes.protobuf;stream=watch` media type for the content that comes back from a watch call so that it can be distinguished from a Status result.
This commit is contained in:
@@ -129,7 +129,6 @@ func TestInstallAPIGroups(t *testing.T) {
|
||||
IsLegacyGroup: true,
|
||||
ParameterCodec: api.ParameterCodec,
|
||||
NegotiatedSerializer: api.Codecs,
|
||||
NegotiatedStreamSerializer: api.StreamCodecs,
|
||||
},
|
||||
{
|
||||
// extensions group version
|
||||
@@ -138,7 +137,6 @@ func TestInstallAPIGroups(t *testing.T) {
|
||||
OptionsExternalVersion: &apiGroupMeta.GroupVersion,
|
||||
ParameterCodec: api.ParameterCodec,
|
||||
NegotiatedSerializer: api.Codecs,
|
||||
NegotiatedStreamSerializer: api.StreamCodecs,
|
||||
},
|
||||
}
|
||||
s.InstallAPIGroups(apiGroupsInfo)
|
||||
|
||||
Reference in New Issue
Block a user