mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-30 15:05:27 +00:00
Check for protobuf mimetype in apiserver
This commit is contained in:
parent
86fb71aba7
commit
58afaaafb1
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user