Merge pull request #73148 from liggitt/remove-deprecated-swagger-paths

remove deprecated openapi paths in favor of /openapi/v2
This commit is contained in:
Kubernetes Prow Robot
2019-01-23 22:06:21 -08:00
committed by GitHub
8 changed files with 10 additions and 42 deletions

View File

@@ -96,11 +96,11 @@ func TestOpenAPIDelegationChainPlumbing(t *testing.T) {
t.Fatalf("unexpected error: %v", err)
}
result := kubeclient.RESTClient().Get().AbsPath("/swagger.json").Do()
result := kubeclient.RESTClient().Get().AbsPath("/openapi/v2").Do()
status := 0
result.StatusCode(&status)
if status != http.StatusOK {
t.Fatalf("GET /swagger.json failed: expected status=%d, got=%d", http.StatusOK, status)
t.Fatalf("GET /openapi/v2 failed: expected status=%d, got=%d", http.StatusOK, status)
}
raw, err := result.Raw()