mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
remove mime AddExtensionType in discovery test
This commit is contained in:
parent
3e26e104bd
commit
50c6b6c86a
@ -19,7 +19,6 @@ package discovery
|
|||||||
import (
|
import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"fmt"
|
"fmt"
|
||||||
"mime"
|
|
||||||
"net/http"
|
"net/http"
|
||||||
"net/http/httptest"
|
"net/http/httptest"
|
||||||
"reflect"
|
"reflect"
|
||||||
@ -484,8 +483,6 @@ func openapiSchemaDeprecatedFakeServer(status int, t *testing.T) (*httptest.Serv
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mime.AddExtensionType(".pb-v1", "application/com.github.googleapis.gnostic.OpenAPIv2@68f4ded+protobuf")
|
|
||||||
|
|
||||||
output, err := proto.Marshal(returnedOpenAPI())
|
output, err := proto.Marshal(returnedOpenAPI())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errMsg := fmt.Sprintf("Unexpected marshal error: %v", err)
|
errMsg := fmt.Sprintf("Unexpected marshal error: %v", err)
|
||||||
@ -526,8 +523,6 @@ func openapiSchemaFakeServer(t *testing.T) (*httptest.Server, error) {
|
|||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
mime.AddExtensionType(".pb-v1", "application/com.github.googleapis.gnostic.OpenAPIv2@68f4ded+protobuf")
|
|
||||||
|
|
||||||
output, err := proto.Marshal(returnedOpenAPI())
|
output, err := proto.Marshal(returnedOpenAPI())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errMsg := fmt.Sprintf("Unexpected marshal error: %v", err)
|
errMsg := fmt.Sprintf("Unexpected marshal error: %v", err)
|
||||||
|
Loading…
Reference in New Issue
Block a user