func TestGetServerVersion(t *testing.T) { … }
func TestGetServerGroupsWithV1Server(t *testing.T) { … }
func TestDiscoveryToleratesMissingCoreGroup(t *testing.T) { … }
func TestDiscoveryFailsWhenNonCoreGroupsMissing(t *testing.T) { … }
func TestGetServerGroupsWithBrokenServer(t *testing.T) { … }
func TestTimeoutIsSet(t *testing.T) { … }
func TestGetServerResourcesForGroupVersion(t *testing.T) { … }
func returnedOpenAPI() *openapi_v2.Document { … }
func openapiSchemaFakeServer(t *testing.T) (*httptest.Server, error) { … }
func openapiV3SchemaFakeServer(t *testing.T) (*httptest.Server, map[string]*spec3.OpenAPI, error) { … }
func TestGetOpenAPISchema(t *testing.T) { … }
func TestGetOpenAPISchemaV3(t *testing.T) { … }
func TestServerPreferredResources(t *testing.T) { … }
func TestServerPreferredResourcesRetries(t *testing.T) { … }
func TestServerPreferredNamespacedResources(t *testing.T) { … }
func TestAggregatedServerGroups(t *testing.T) { … }
func TestAggregatedServerGroupsAndResources(t *testing.T) { … }
func TestAggregatedServerGroupsAndResourcesWithErrors(t *testing.T) { … }
func TestAggregatedServerPreferredResources(t *testing.T) { … }
func TestDiscoveryContentTypeVersion(t *testing.T) { … }
func TestUseLegacyDiscovery(t *testing.T) { … }
func groupNames(groups []*metav1.APIGroup) []string { … }
func groupNamesFromList(groups *metav1.APIGroupList) []string { … }
func preferredVersionsFromList(groups *metav1.APIGroupList) []string { … }
func groupVersions(resources []*metav1.APIResourceList) []string { … }
func groupVersionsFromGroups(groups *metav1.APIGroupList) []string { … }
func groupVersionKinds(resources []*metav1.APIResourceList) []string { … }
func failedGroupVersions(err error) []string { … }