From 58afaaafb1f81712066586bdd0a2a0817505b6ab Mon Sep 17 00:00:00 2001 From: Clayton Coleman Date: Sat, 16 Apr 2016 17:11:43 -0400 Subject: [PATCH] Check for protobuf mimetype in apiserver --- pkg/apiserver/apiserver_test.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/apiserver/apiserver_test.go b/pkg/apiserver/apiserver_test.go index 48e94bed9c..36e09c5901 100644 --- a/pkg/apiserver/apiserver_test.go +++ b/pkg/apiserver/apiserver_test.go @@ -1233,11 +1233,11 @@ func TestMetadata(t *testing.T) { matches[s] = i + 1 } } - if matches["text/plain,application/json,application/yaml"] == 0 || - matches["application/json,application/yaml"] == 0 || - matches["application/json"] == 0 || + if matches["text/plain,application/json,application/yaml,application/vnd.kubernetes.protobuf"] == 0 || + matches["application/json,application/yaml,application/vnd.kubernetes.protobuf"] == 0 || + matches["application/json,application/vnd.kubernetes.protobuf"] == 0 || matches["*/*"] == 0 || - len(matches) != 4 { + len(matches) != 5 { t.Errorf("unexpected mime types: %v", matches) } }